[gen] Added Config.discreetLogin allowing to put a discreet link on the main page for logging in, instead of the login form in the central strip, for sites where logged users do not represent the majority of visitors (only some admins).
This commit is contained in:
parent
8a0ee2c131
commit
820d3ef241
11 changed files with 94 additions and 86 deletions
|
@ -89,9 +89,13 @@ class ToolMixin(BaseMixin):
|
|||
'inline;filename="%s"' % res.name)
|
||||
return res.content
|
||||
|
||||
def getAttr(self, name):
|
||||
def getAttr(self, name, source='appy'):
|
||||
'''Gets attribute named p_name.'''
|
||||
return getattr(self.appy(), name, None)
|
||||
if source == 'config':
|
||||
obj = self.getProductConfig()
|
||||
else:
|
||||
obj = self.appy()
|
||||
return getattr(obj, name, None)
|
||||
|
||||
def getAppName(self):
|
||||
'''Returns the name of the application.'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue