~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/makeuser.py

  • Committer: me at id
  • Date: 2009-01-15 02:29:04 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:branches%2Fstorm:1148
ivle.makeuser: svn auth manipulation functions now use storm as much as
    possible.
usrmgt-server: All actions now get a store, and the store is committed if
    the action returns succes. We use this to pass stores into ivle.makeuser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
 
74
74
    chown_to_webserver(path)
75
75
 
76
 
def rebuild_svn_config():
 
76
def rebuild_svn_config(store):
77
77
    """Build the complete SVN configuration file.
78
78
    """
79
 
    conn = ivle.db.DB()
80
 
    users = conn.get_users()
 
79
    users = store.find(ivle.database.User)
81
80
    groups = {}
82
81
    for u in users:
83
82
        role = str(u.role)
103
102
    os.rename(ivle.conf.svn_conf + ".new", ivle.conf.svn_conf)
104
103
    chown_to_webserver(ivle.conf.svn_conf)
105
104
 
106
 
def rebuild_svn_group_config():
 
105
def rebuild_svn_group_config(store):
107
106
    """Build the complete SVN configuration file for groups
108
107
    """
109
108
    conn = ivle.db.DB()