- Timestamp:
- 13 Nov 2014, 16:54:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/pages.py
r11952 r11954 46 46 IkobaDisplayFormPage, NullValidator) 47 47 from waeup.ikoba.browser.interfaces import ( 48 I Institution, ICaptchaManager, IChangePassword)48 ICompany, ICaptchaManager, IChangePassword) 49 49 from waeup.ikoba.browser.layout import jsaction, action, UtilityView 50 50 from waeup.ikoba.interfaces import MessageFactory as _ … … 325 325 class ContactAdminForm(IkobaForm): 326 326 grok.name('contactadmin') 327 #grok.context(I Institution)327 #grok.context(ICompany) 328 328 grok.template('contactform') 329 329 grok.require('waeup.Authenticated') … … 405 405 406 406 # 407 # Institutionrelated pages...407 # Company related pages... 408 408 # 409 409 410 class InstitutionPage(IkobaDisplayFormPage):411 """ The main institutionpage.410 class CompanyPage(IkobaDisplayFormPage): 411 """ The main company page. 412 412 """ 413 413 grok.require('waeup.Public') 414 414 grok.name('index') 415 grok.context(I Institution)415 grok.context(ICompany) 416 416 pnav = 0 417 417 label = '' … … 434 434 """ 435 435 grok.name('administration') 436 grok.context(I Institution)436 grok.context(ICompany) 437 437 grok.require('waeup.managePortal') 438 438 label = _(u'Administration') … … 443 443 """ 444 444 grok.name('feed.rss') 445 grok.context(I Institution)445 grok.context(ICompany) 446 446 grok.require('waeup.Public') 447 grok.template(' institutionrss20feed')447 grok.template('companyrss20feed') 448 448 449 449 name = 'General news feed' … … 457 457 @property 458 458 def title(self): 459 return getattr(grok.getSite(), 'name', u'Sample Institution')459 return getattr(grok.getSite(), 'name', u'Sample Company') 460 460 461 461 @property … … 1568 1568 """Captcha'd page for all kind of users to request a password change. 1569 1569 """ 1570 grok.context(I Institution)1570 grok.context(ICompany) 1571 1571 grok.name('changepw') 1572 1572 grok.require('waeup.Anonymous')
Note: See TracChangeset for help on using the changeset viewer.