[gen] Bugfixes.

This commit is contained in:
Gaetan Delannay 2014-02-27 12:54:05 +01:00
parent c002b5cb59
commit fe56ee27a0
10 changed files with 19 additions and 18 deletions

View file

@ -1263,7 +1263,7 @@ class ToolMixin(BaseMixin):
fields that need to be shown on a page displaying query results.'''
# Skip this if we are searching multiple content types.
if ',' in contentType: return ()
return [f.__dict__ for f in self.getAllAppyTypes(contentType) \
return [f for f in self.getAllAppyTypes(contentType) \
if (f.type == 'Pod') and (f.show == 'result')]
def formatDate(self, aDate, withHour=True):

View file

@ -326,7 +326,7 @@ msgstr "XLS (Microsoft Excel)"
#. Default: "Welcome to this Appy-powered site."
msgid "front_page_text"
msgstr "Bienvenue sur HubSessions pour le Collège communal de Schaerbeek (site 'Additions')."
msgstr "Bienvenue sur ce site fabriqué avec <a href=\"http://appyframework.org\" target=\"_blank\">Appy</a>"
#. Default: "Please type \"${text}\" (without the double quotes) in the field besides, but without the character at position ${number}."
msgid "captcha_text"

View file

@ -66,9 +66,9 @@ img { border: 0; vertical-align: middle }
background-color: #dbdde1; font-weight: bold }
.navigate td { padding: 4px 9px }
.login { margin: 3px; color: black }
.button { border-width: 0 !important; color: #666666; height: 23px; width: 150px;
cursor:pointer; font-size: 90%; padding: 1px 0 0 10px;
background-color: transparent !important }
input.button { border-width: 0 !important; color: #666666; height: 23px;
width: 150px; cursor:pointer; font-size: 90%; padding: 1px 0 0 10px;
background-color: transparent !important }
.buttons { margin-left: 4px }
.message { position: absolute; top: -40px; left: 50%; font-size: 90%;
width: 600px; border: 1px #F0C36D solid; padding: 6px;

View file

@ -441,7 +441,7 @@ class ToolWrapper(AbstractWrapper):
if="zobjects and fields" align=":dright">
<tr>
<td var="zobj=zobjects[0]; obj=zobj.appy()"
for="field in fields">:field.pxView</td>
for="field in fields">:field.pxRender</td>
</tr>
</table>

View file

@ -33,7 +33,7 @@ class TranslationWrapper(AbstractWrapper):
sourceMsg = sourceMsg.replace('<','&lt;').replace('>','&gt;')
sourceMsg = sourceMsg.replace('\n', '<br/>')
return '<div class="translationLabel"><acronym title="%s" ' \
'style="margin-right: 5px"><img src="help.png"/></acronym>' \
'style="margin-right: 5px"><img src="/ui/help.png"/></acronym>' \
'%s</div>' % (fieldName, sourceMsg)
def show(self, field):

View file

@ -189,7 +189,7 @@ class AbstractWrapper(object):
</tr>
<!-- The user strip -->
<tr height="28px">
<tr height=":discreetLogin and '5px' or '28px'">
<td>
<table class="userStrip">
<tr>