[gen] Added the possibility to define dict someClass.styles (with, currently, a single entry 'title'), allowing to specify alternative CSS classes for class-related elements (here, 'title' allows to define an alternative CSS class for the link allowing to click on some instance of the class on a query or ref).
This commit is contained in:
parent
ca16f8989c
commit
1c3555fd28
8 changed files with 61 additions and 42 deletions
gen/wrappers
|
@ -43,8 +43,9 @@ class ToolWrapper(AbstractWrapper):
|
|||
|
||||
def computeConnectedUsers(self):
|
||||
'''Computes a table showing users that are currently connected.'''
|
||||
res = '<table cellpadding="0" cellspacing="0" class="list"><tr>' \
|
||||
'<th></th><th>%s</th></tr>' % self.translate('last_user_access')
|
||||
res = '<table cellpadding="0" cellspacing="0" class="list">' \
|
||||
'<tr><th></th><th>%s</th></tr>' % \
|
||||
self.translate('last_user_access')
|
||||
rows = []
|
||||
for userId, lastAccess in loggedUsers.items():
|
||||
user = self.search1('User', noSecurity=True, login=userId)
|
||||
|
|
|
@ -118,6 +118,7 @@ class AbstractWrapper(object):
|
|||
return self.search1('User', noSecurity=True,
|
||||
login=self.o.getUser().getId())
|
||||
elif name == 'fields': return self.o.getAllAppyTypes()
|
||||
elif name == 'siteUrl': return self.o.getTool().getSiteUrl()
|
||||
# Now, let's try to return a real attribute.
|
||||
res = object.__getattribute__(self, name)
|
||||
# If we got an Appy type, return the value of this type for this object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue