Skip to content

Commit

Permalink
Sync => modules
Browse files Browse the repository at this point in the history
PE affiliation - basic data model
  • Loading branch information
nursix authored and flavour committed Feb 9, 2012
1 parent 941c941 commit b72637e
Show file tree
Hide file tree
Showing 12 changed files with 844 additions and 650 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION merge=keeplocal filter=version
VERSION merge=keeplocal
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
r3189 (2012-02-08 21:50:37)
1a3cd6a (2012-02-09 13:07:19)
12 changes: 12 additions & 0 deletions controllers/pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,18 @@ def pentity():

return s3_rest_controller()

# -----------------------------------------------------------------------------
def affiliation():
""" RESTful CRUD controller """

return s3_rest_controller()

# -----------------------------------------------------------------------------
def role():
""" RESTful CRUD controller """

return s3_rest_controller()

# -----------------------------------------------------------------------------
def tooltip():
""" Ajax tooltips """
Expand Down
5 changes: 2 additions & 3 deletions controllers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ def repository():
tabs = [(T("Configuration"), None),
(T("Resources"), "task"),
(T("Schedule"), "job"),
(T("Log"), "log"),
(T("Manual Sync"), "now")
(T("Log"), "log")
]

s3mgr.model.set_method("sync", "repository",
Expand Down Expand Up @@ -85,7 +84,7 @@ def postp(r, output):
return output
response.s3.postp = postp

rheader = lambda r: sync_rheader(r, tabs=tabs)
rheader = lambda r: s3db.sync_rheader(r, tabs=tabs)
output = s3_rest_controller(prefix, resourcename, rheader=rheader)
return output

Expand Down
2 changes: 2 additions & 0 deletions models/00_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import eden.support
import eden.survey
import eden.hms
import eden.sync
#import eden.patient

# =============================================================================
Expand Down Expand Up @@ -238,6 +239,7 @@ def s3_meta_fields():
scheduler_task_id = S3ReusableField("scheduler_task_id",
"reference %s" % s3base.S3Task.TASK_TABLENAME,
ondelete="CASCADE")
s3.scheduler_task_id = scheduler_task_id

# =============================================================================
# Reusable roles fields for map layer permissions management (GIS)
Expand Down
Loading

0 comments on commit b72637e

Please sign in to comment.