# HG changeset patch # User Marcin Kuzminski # Date 1285864503 -7200 # Node ID 3a567e329fb62715e6f60b910935312d6d896558 # Parent 6d0d5e7d73563b2662c83b2a905e285e8827967c updated whoosh deps, fixed templates, changelog and changeset stylings changed 8 letter password into 6 letter passwords required diff -r 6d0d5e7d7356 -r 3a567e329fb6 pylons_app/model/forms.py --- a/pylons_app/model/forms.py Thu Sep 30 17:11:58 2010 +0200 +++ b/pylons_app/model/forms.py Thu Sep 30 18:35:03 2010 +0200 @@ -256,7 +256,7 @@ password = UnicodeString( strip=True, - min=8, + min=6, not_empty=True, messages={ 'empty':_('Please enter a password'), @@ -273,10 +273,10 @@ filter_extra_fields = True username = All(UnicodeString(strip=True, min=1, not_empty=True), ValidUsername(edit, old_data)) if edit: - new_password = All(UnicodeString(strip=True, min=8, not_empty=False), ValidPassword) + new_password = All(UnicodeString(strip=True, min=6, not_empty=False), ValidPassword) admin = StringBoolean(if_missing=False) else: - password = All(UnicodeString(strip=True, min=8, not_empty=True), ValidPassword) + password = All(UnicodeString(strip=True, min=6, not_empty=True), ValidPassword) active = StringBoolean(if_missing=False) name = UnicodeString(strip=True, min=1, not_empty=True) lastname = UnicodeString(strip=True, min=1, not_empty=True) diff -r 6d0d5e7d7356 -r 3a567e329fb6 pylons_app/public/css/style.css --- a/pylons_app/public/css/style.css Thu Sep 30 17:11:58 2010 +0200 +++ b/pylons_app/public/css/style.css Thu Sep 30 18:35:03 2010 +0200 @@ -1161,7 +1161,7 @@ #content div.box div.message { margin: 0 0 0px 0; - padding: 0 0 10px 0; + padding: 10px 0 10px 0; clear: both; overflow: hidden; } @@ -3058,7 +3058,9 @@ } #changeset_content .container { - height: 120px; + min-height: 120px; + font-size: 1.2em; + } #changeset_content .container .left { @@ -3190,7 +3192,6 @@ border: 1px solid #DDDDDD; display: block; float: right; - font-size: 0.75em; text-align: center; min-width: 15px; } diff -r 6d0d5e7d7356 -r 3a567e329fb6 pylons_app/templates/changelog/changelog.html --- a/pylons_app/templates/changelog/changelog.html Thu Sep 30 17:11:58 2010 +0200 +++ b/pylons_app/templates/changelog/changelog.html Thu Sep 30 18:35:03 2010 +0200 @@ -3,7 +3,7 @@ <%inherit file="/base/base.html"/> <%def name="title()"> - ${_('Changelog - %s') % c.repo_name} + ${_('Changelog')} - ${c.repo_name} <%def name="breadcrumbs_links()"> diff -r 6d0d5e7d7356 -r 3a567e329fb6 pylons_app/templates/changeset/changeset.html --- a/pylons_app/templates/changeset/changeset.html Thu Sep 30 17:11:58 2010 +0200 +++ b/pylons_app/templates/changeset/changeset.html Thu Sep 30 18:35:03 2010 +0200 @@ -1,7 +1,7 @@ <%inherit file="/base/base.html"/> <%def name="title()"> - ${_('Changeset')} + ${_('Changeset')} - r${c.changeset.revision}:${c.changeset.short_id} - ${c.repo_name} <%def name="breadcrumbs_links()"> @@ -34,42 +34,56 @@ - -
-
-
-
${_('Date')}: ${c.changeset.date}
-
${_('Author')}: ${c.changeset.author}
-
${h.wrap_paragraphs(c.changeset.message)}
-
-
- %if len(c.changeset.parents)>1: -
- ${_('merge')} - merge -
- %endif - %for p_cs in reversed(c.changeset.parents): -
${_('Parent')} ${p_cs.revision}: ${h.link_to(p_cs.short_id, - h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.short_id),title=p_cs.message)} -
- %endfor - - - ${h.link_to(c.changeset.branch,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.short_id))} - %for tag in c.changeset.tags: - - ${h.link_to(tag,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.short_id))} - %endfor - -
-
- ${_('Files affected')} -
- %for change,filenode,diff,cs1,cs2 in c.changes: -
${h.link_to(filenode.path,h.url.current(anchor='CHANGE-%s'%filenode.path))}
- %endfor -
+
+
+
+
${_('commit')} ${c.changeset.revision}: ${c.changeset.short_id}@${c.changeset.date}
+
+
+ gravatar +
+ ${h.person(c.changeset.author)}
+ ${h.email_or_none(c.changeset.author)}
+
+
+ ${h.link_to(h.wrap_paragraphs(c.changeset.message), + h.url('changeset_home',repo_name=c.repo_name,revision=c.changeset.short_id))} +
+
+
+
+ ${len(c.changeset.removed)} + ${len(c.changeset.changed)} + ${len(c.changeset.added)} +
+ %if len(c.changeset.parents)>1: +
+ ${_('merge')}merge +
+ %endif + %for p_cs in reversed(c.changeset.parents): +
${_('Parent')} ${p_cs.revision}: ${h.link_to(p_cs.short_id, + h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.short_id),title=p_cs.message)} +
+ %endfor + + + ${h.link_to(c.changeset.branch,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.short_id))} + %for tag in c.changeset.tags: + + ${h.link_to(tag,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.short_id))} + %endfor + +
+
+ ${_('Files affected')} +
+ %for change,filenode,diff,cs1,cs2 in c.changes: +
${h.link_to(filenode.path,h.url.current(anchor='CHANGE-%s'%filenode.path))}
+ %endfor +
+
+
%for change,filenode,diff,cs1,cs2 in c.changes: diff -r 6d0d5e7d7356 -r 3a567e329fb6 setup.py --- a/setup.py Thu Sep 30 17:11:58 2010 +0200 +++ b/setup.py Thu Sep 30 18:35:03 2010 +0200 @@ -20,11 +20,11 @@ "SQLAlchemy>=0.6", "babel", "Mako>=0.3.2", - "vcs>=0.1.6", + "vcs>=0.1.7", "pygments>=1.3.0", "mercurial>=1.6", "pysqlite", - "whoosh==1.0.0b17", + "whoosh==1.0.0b19", "py-bcrypt", "celery", ],