fedora-updates-system/updatessystem __init__.py, NONE, 1.1 controllers.py, NONE, 1.1 json.py, NONE, 1.1 model.py, NONE, 1.1 new.py, NONE, 1.1 release.py, NONE, 1.1
Luke Macken (lmacken)
fedora-extras-commits at redhat.com
Sun Nov 12 20:08:05 UTC 2006
- Previous message: fedora-updates-system/Fedora_Updates_System.egg-info PKG-INFO, NONE, 1.1 SOURCES.txt, NONE, 1.1 dependency_links.txt, NONE, 1.1 not-zip-safe, NONE, 1.1 paster_plugins.txt, NONE, 1.1 requires.txt, NONE, 1.1 sqlobject.txt, NONE, 1.1 top_level.txt, NONE, 1.1
- Next message: fedora-updates-system/updatessystem/config __init__.py, NONE, 1.1 app.cfg, NONE, 1.1 log.cfg, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: lmacken
Update of /cvs/fedora/fedora-updates-system/updatessystem
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18300/updatessystem
Added Files:
__init__.py controllers.py json.py model.py new.py release.py
Log Message:
initial import
--- NEW FILE __init__.py ---
***** Error reading new file: [Errno 2] No such file or directory: 'controllers.py'
--- NEW FILE json.py ---
# This module provides helper functions for the JSON part of your
# view, if you are providing a JSON-based API for your app.
# Here's what most rules would look like:
# @jsonify.when("isinstance(obj, YourClass)")
# def jsonify_yourclass(obj):
# return [obj.val1, obj.val2]
# The goal is to break your objects down into simple values:
# lists, dicts, numbers and strings
from turbojson.jsonify import jsonify
from turbojson.jsonify import jsonify_sqlobject
from updatessystem.model import User, Group, Permission
@jsonify.when('isinstance(obj, Group)')
def jsonify_group(obj):
result = jsonify_sqlobject( obj )
result["users"] = [u.user_name for u in obj.users]
result["permissions"] = [p.permission_name for p in obj.permissions]
return result
@jsonify.when('isinstance(obj, User)')
def jsonify_user(obj):
result = jsonify_sqlobject( obj )
del result['password']
result["groups"] = [g.group_name for g in obj.groups]
result["permissions"] = [p.permission_name for p in obj.permissions]
return result
@jsonify.when('isinstance(obj, Permission)')
def jsonify_permission(obj):
result = jsonify_sqlobject( obj )
result["groups"] = [g.group_name for g in obj.groups]
return result
***** Error reading new file: [Errno 2] No such file or directory: 'model.py'
***** Error reading new file: [Errno 2] No such file or directory: 'new.py'
***** Error reading new file: [Errno 2] No such file or directory: 'release.py'
- Previous message: fedora-updates-system/Fedora_Updates_System.egg-info PKG-INFO, NONE, 1.1 SOURCES.txt, NONE, 1.1 dependency_links.txt, NONE, 1.1 not-zip-safe, NONE, 1.1 paster_plugins.txt, NONE, 1.1 requires.txt, NONE, 1.1 sqlobject.txt, NONE, 1.1 top_level.txt, NONE, 1.1
- Next message: fedora-updates-system/updatessystem/config __init__.py, NONE, 1.1 app.cfg, NONE, 1.1 log.cfg, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list