[KSS-checkins] r44607 - in kukit/KSSPylonsWiki/trunk: . kss/pylonswiki/config kss/pylonswiki/controllers kss/pylonswiki/public kss/pylonswiki/templates

jvloothuis at codespeak.net jvloothuis at codespeak.net
Thu Jun 28 22:09:50 CEST 2007


Author: jvloothuis
Date: Thu Jun 28 22:09:48 2007
New Revision: 44607

Added:
   kukit/KSSPylonsWiki/trunk/testing.ini
Modified:
   kukit/KSSPylonsWiki/trunk/kss/pylonswiki/config/routing.py
   kukit/KSSPylonsWiki/trunk/kss/pylonswiki/controllers/ksspage.py
   kukit/KSSPylonsWiki/trunk/kss/pylonswiki/public/quick.css
   kukit/KSSPylonsWiki/trunk/kss/pylonswiki/templates/edit.myt
   kukit/KSSPylonsWiki/trunk/setup.py
Log:

Started to move the package to a non namespace package. This is done
to avoid problems with Paste Script not looking at non toplevel
packages.

Added default parameter to the kss index controller


Modified: kukit/KSSPylonsWiki/trunk/kss/pylonswiki/config/routing.py
==============================================================================
--- kukit/KSSPylonsWiki/trunk/kss/pylonswiki/config/routing.py	(original)
+++ kukit/KSSPylonsWiki/trunk/kss/pylonswiki/config/routing.py	Thu Jun 28 22:09:48 2007
@@ -14,6 +14,7 @@
                 action='index', title='FrontPage')
     map.connect(':title', controller='page', action='index', title='FrontPage')
     map.connect('/kss/:action', controller='ksspage')
+    map.connect(':title', controller='kss', action='index', title='FrontPage')
     map.connect('*url', controller='template', action='view')
 
     return map

Modified: kukit/KSSPylonsWiki/trunk/kss/pylonswiki/controllers/ksspage.py
==============================================================================
--- kukit/KSSPylonsWiki/trunk/kss/pylonswiki/controllers/ksspage.py	(original)
+++ kukit/KSSPylonsWiki/trunk/kss/pylonswiki/controllers/ksspage.py	Thu Jun 28 22:09:48 2007
@@ -36,6 +36,12 @@
         core = commands.get_command_set('core')
         core.replace_inner_html(CSS('div.content'), html)
 
+        core.insert_html_as_first_child(
+            CSS('div.content'), '<div class="message">Page saved</div>')
+
+        effects = commands.get_command_set('effects')
+        effects.effect(CSS('div.message'), 'fade', delay=2)
+
         return render_kss_response(commands)
 
     def page(self):
@@ -48,16 +54,11 @@
         commands = KSSCommands()
         core = commands.get_command_set('core')
         
-        effects = commands.get_command_set('effects')
-        effects.effect(CSS('div.content'), 'fade', queue='front')
-        
         content_html = render('/page.myt', fragment=True)
         core.replace_inner_html(CSS('div.content'), content_html)
 
         footer_html = render('/footer.myt', fragment=True)
         core.replace_html(CSS('p.footer'), footer_html)
-
-        effects.effect(CSS('div.content'), 'appear', queue='end')
                 
         return render_kss_response(commands)
 

Modified: kukit/KSSPylonsWiki/trunk/kss/pylonswiki/public/quick.css
==============================================================================
--- kukit/KSSPylonsWiki/trunk/kss/pylonswiki/public/quick.css	(original)
+++ kukit/KSSPylonsWiki/trunk/kss/pylonswiki/public/quick.css	Thu Jun 28 22:09:48 2007
@@ -3,18 +3,24 @@
     margin: 25px;
 }
 div.content{
-    margin: 0;
+    margin-top: 0;
     margin-bottom: 10px;
+    margin-left: auto;
+    margin-right: auto;
+    width: 60em;
     background-color: #d3e0ea;
     border: 5px solid #333;
     padding: 5px 25px 25px 25px;
+    
 }
 h1.main{
     width: 100%;
     border-bottom: 1px solid #000;
 }
 p.footer{
-    width: 100%;
+    width: 60em;
+    margin-left: auto;
+    margin-right: auto;
     padding-top: 3px;
     border-top: 1px solid #000;
 }
@@ -23,3 +29,11 @@
     color: red;
 }
 
+.message {  
+    background-color: yellow; 
+    font-size: 120%; 
+    font-weight: bold;
+    padding: 0.2em;
+    text-align: center;
+}
+

Modified: kukit/KSSPylonsWiki/trunk/kss/pylonswiki/templates/edit.myt
==============================================================================
--- kukit/KSSPylonsWiki/trunk/kss/pylonswiki/templates/edit.myt	(original)
+++ kukit/KSSPylonsWiki/trunk/kss/pylonswiki/templates/edit.myt	Thu Jun 28 22:09:48 2007
@@ -7,6 +7,6 @@
 
 <% h.start_form(h.url_for(action='save', title=c.title), method="get") %>
     <% h.hidden_field('title', c.title)%> <br />
-    <% h.text_area(name='content', rows=7, cols=40, content=c.content)%> <br />
+    <% h.text_area(name='content', rows=16, cols=112, content=c.content)%> <br />
     <% h.submit(value="Save changes", name='commit') %>
 <% h.end_form() %>

Modified: kukit/KSSPylonsWiki/trunk/setup.py
==============================================================================
--- kukit/KSSPylonsWiki/trunk/setup.py	(original)
+++ kukit/KSSPylonsWiki/trunk/setup.py	Thu Jun 28 22:09:48 2007
@@ -15,11 +15,10 @@
     packages=find_packages(),
     include_package_data=True,
     test_suite = 'nose.collector',
-    package_data={'kss.pylonswiki': ['i18n/*/LC_MESSAGES/*.mo']},
-    namespace_packages=['kss'],
+    package_data={'ksspylonswiki': ['i18n/*/LC_MESSAGES/*.mo']},
     entry_points="""
     [paste.app_factory]
-    main=kss.pylonswiki:make_app
+    main=ksspylonswiki:make_app
     [paste.app_install]
     main=pylons.util:PylonsInstaller
     """,

Added: kukit/KSSPylonsWiki/trunk/testing.ini
==============================================================================
--- (empty file)
+++ kukit/KSSPylonsWiki/trunk/testing.ini	Thu Jun 28 22:09:48 2007
@@ -0,0 +1,2 @@
+[app:main]
+use = egg:KSSPylonsWiki


More information about the Kukit-checkins mailing list