Skip to content

Commit

Permalink
[svn] More doc string updates
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
bbangert committed Jun 3, 2006
1 parent 72b4c3c commit 7658262
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylons/decorators/__init__.py
@@ -1,4 +1,4 @@
"""Custom Decorators, currently ``jsonify``"""
"""Custom Decorators, currently ``jsonify``, ``validate``, and 2 REST decorators"""
import simplejson as json
import formencode.api as api
import pylons
Expand Down Expand Up @@ -76,4 +76,4 @@ def validate(func, self, *args, **kwargs):
return validate
return decorator(entangle)

__all__ = ['jsonify', 'validate']
__all__ = ['jsonify', 'validate', 'rest']
3 changes: 3 additions & 0 deletions pylons/helpers.py
Expand Up @@ -96,6 +96,9 @@ def formfill(m, defaults=None, errors=None):
around a ``<form>`` section. The formfill component will then parse
the Myghty content block and fill in errors and defaults as needed.
Formfill uses `FormEncode <http://formencode.org/>`_ to parse the
form and put in errors and defaults.
Example::
<&| @pylons.helpers:formfill &>
Expand Down
9 changes: 9 additions & 0 deletions pylons/templating.py
Expand Up @@ -161,6 +161,12 @@ class TemplateEngineMissing(Exception):
pass

class MyghtyTemplatePlugin(object):
"""Myghty Template Plugin
This Myghty Template Plugin varies from the official BuffetMyghty in that it will
properly populate all the default Myghty variables needed and render fragments.
"""
extension = "myt"

def __init__(self, extra_vars_func=None, options=None):
Expand Down Expand Up @@ -227,3 +233,6 @@ def render_response(*args, **kargs):

def render_response_fragment(*args, **kargs):
return pylons.Response(render_fragment(*args, **kargs))

__pudge_all__ = ['render', 'render_fragment', 'render_response',
'render_response_fragment', 'Buffet', 'MyghtyTemplatePlugin']

0 comments on commit 7658262

Please sign in to comment.