Changeset 11979 for main/waeup.ikoba
- Timestamp:
- 17 Nov 2014, 12:26:33 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/browser/pages.py
r11977 r11979 274 274 self.request.principal.id] 275 275 rel_link = '/customers/%s' % self.request.principal.id 276 # Maybe we need this in Ikoba too 276 277 #if customer.personal_data_expired: 277 278 # rel_link = '/customers/%s/edit_personal' % ( -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py
r11977 r11979 206 206 @action('Set password now', style='primary') 207 207 def setPassword(self, *args, **data): 208 kofa_utils = getUtility(IIkobaUtils)209 password = kofa_utils.genPassword()208 ikoba_utils = getUtility(IIkobaUtils) 209 password = ikoba_utils.genPassword() 210 210 self.context.setTempPassword(self.request.principal.id, password) 211 211 self.context.writeLogMessage( … … 287 287 usertype = getattr(self.request.principal, 288 288 'user_type', 'system').title() 289 kofa_utils = getUtility(IIkobaUtils)290 success = kofa_utils.sendContactForm(289 ikoba_utils = getUtility(IIkobaUtils) 290 success = ikoba_utils.sendContactForm( 291 291 self.request.principal.title,email, 292 292 self.context.display_fullname,self.context.email, … … 489 489 return 490 490 491 kofa_utils = getUtility(IIkobaUtils)492 password = kofa_utils.genPassword()491 ikoba_utils = getUtility(IIkobaUtils) 492 password = ikoba_utils.genPassword() 493 493 mandate = PasswordMandate() 494 494 mandate.params['password'] = password … … 501 501 url_info = u'Confirmation link: %s' % mandate_url 502 502 msg = _('You have successfully requested a password for the') 503 if kofa_utils.sendCredentials(IUserAccount(customer),503 if ikoba_utils.sendCredentials(IUserAccount(customer), 504 504 password, url_info, msg): 505 505 email_sent = customer.email -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/basemanagepage.pt
r11971 r11979 1 1 <form action="." tal:attributes="action request/URL" method="post" 2 i18n:domain="waeup. kofa" enctype="multipart/form-data"2 i18n:domain="waeup.ikoba" enctype="multipart/form-data" 3 3 autocomplete="off"> 4 4 -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/changepassword.pt
r11977 r11979 1 1 <form action="." tal:attributes="action request/URL" method="post" 2 i18n:domain="waeup. kofa" enctype="multipart/form-data">2 i18n:domain="waeup.ikoba" enctype="multipart/form-data"> 3 3 4 4 <input type="hidden" name="customer_id" value="" -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/containermanagepage.pt
r11958 r11979 1 <form method="POST" i18n:domain="waeup. kofa" class="form-inline">1 <form method="POST" i18n:domain="waeup.ikoba" class="form-inline"> 2 2 <br /> 3 3 <div class="form-group"> … … 31 31 32 32 <br /><br /> 33 <table class=" kofa-data-table dataTableManage">33 <table class="ikoba-data-table dataTableManage"> 34 34 <thead> 35 35 <tr> -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/containerpage.pt
r11958 r11979 1 <form method="POST" i18n:domain="waeup. kofa" class="form-inline">1 <form method="POST" i18n:domain="waeup.ikoba" class="form-inline"> 2 2 <br /> 3 3 <div class="form-group"> … … 29 29 <input type="hidden" name="old_searchtype" 30 30 tal:attributes="value view/searchtype" /> 31 <table class=" kofa-data-table dataTable">31 <table class="ikoba-data-table dataTable"> 32 32 <thead> 33 33 <tr> -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/imageupload.pt
r11971 r11979 1 <tr i18n:domain="waeup. kofa">1 <tr i18n:domain="waeup.ikoba"> 2 2 <td class="fieldname"> 3 3 <span tal:replace="viewlet/label">FILENAME</span>: -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/loginasstep1.pt
r11967 r11979 1 <form i18n:domain="waeup. kofa" method="post">1 <form i18n:domain="waeup.ikoba" method="post"> 2 2 <p i18n:translate="login_as_intro_1"> 3 3 Kofa is creating a temporary customer password which will replace the -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/requestpw.pt
r11967 r11979 1 1 <form action="." tal:attributes="action request/URL" method="post" 2 i18n:domain="waeup. kofa" enctype="multipart/form-data">2 i18n:domain="waeup.ikoba" enctype="multipart/form-data"> 3 3 4 4 <table class="form-table"> -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/requestpwmailsent.pt
r11967 r11979 1 <tal:only_email condition = "not: view/password" i18n:domain="waeup. kofa">1 <tal:only_email condition = "not: view/password" i18n:domain="waeup.ikoba"> 2 2 <p tal:condition = "view/email"> 3 3 <span i18n:translate=""> An email with your user name and password … … 17 17 </tal:only_email> 18 18 19 <tal:credentials condition = "view/password" i18n:domain="waeup. kofa">19 <tal:credentials condition = "view/password" i18n:domain="waeup.ikoba"> 20 20 <h3 i18n:translate="">Your login credentials are:</h3> 21 21 <table class="bordered-table span6"> -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/viewlets.py
r11977 r11979 127 127 url = self.view.url(self.context.customer, self.link) 128 128 # Here we know that the cookie has been set 129 lang = self.request.cookies.get(' kofa.language')130 text = translate(self.text, 'waeup. kofa',129 lang = self.request.cookies.get('ikoba.language') 130 text = translate(self.text, 'waeup.ikoba', 131 131 target_language=lang) 132 132 if not self.link:
Note: See TracChangeset for help on using the changeset viewer.