[Checkins] SVN: megrok.layout/trunk/src/megrok/layout/ pep8
Souheil CHELFOUH
souheil at chelfouh.com
Mon Oct 18 05:59:41 EDT 2010
Log message for revision 117665:
pep8
Changed:
U megrok.layout/trunk/src/megrok/layout/components.py
U megrok.layout/trunk/src/megrok/layout/meta.py
-=-
Modified: megrok.layout/trunk/src/megrok/layout/components.py
===================================================================
--- megrok.layout/trunk/src/megrok/layout/components.py 2010-10-18 09:59:35 UTC (rev 117664)
+++ megrok.layout/trunk/src/megrok/layout/components.py 2010-10-18 09:59:41 UTC (rev 117665)
@@ -16,6 +16,7 @@
class UtilityView(object):
"""A view mixin with useful methods.
"""
+
def application_url(self, name=None):
"""Return the URL of the nearest site.
"""
@@ -161,6 +162,7 @@
grokcore.view.templatedir('templates')
+
class Form(LayoutAwareForm, grokcore.formlib.Form):
"""A form base class.
"""
Modified: megrok.layout/trunk/src/megrok/layout/meta.py
===================================================================
--- megrok.layout/trunk/src/megrok/layout/meta.py 2010-10-18 09:59:35 UTC (rev 117664)
+++ megrok.layout/trunk/src/megrok/layout/meta.py 2010-10-18 09:59:41 UTC (rev 117665)
@@ -8,14 +8,14 @@
class LayoutGrokker(martian.ClassGrokker):
-
martian.component(Layout)
martian.directive(grokcore.component.context)
martian.directive(grokcore.view.layer, default=IDefaultBrowserLayer)
def grok(self, name, factory, module_info, **kw):
factory.module_info = module_info
- return super(LayoutGrokker, self).grok(name, factory, module_info, **kw)
+ return super(LayoutGrokker, self).grok(
+ name, factory, module_info, **kw)
def execute(self, factory, config, context, layer, **kw):
# find templates
@@ -24,8 +24,7 @@
config.action(
discriminator=None,
callable=self.checkTemplates,
- args=(templates, factory.module_info, factory)
- )
+ args=(templates, factory.module_info, factory))
adapts = (layer, context)
config.action(
More information about the checkins
mailing list