Exemplo n.º 1
0
# GIS Module
gis = s3base.GIS()
current.gis = gis

# S3RequestManager
s3mgr = s3base.S3RequestManager()
current.manager = s3mgr
s3_request = s3base.s3_request

# S3XML
s3xml = s3base.S3XML()
current.xml = s3xml

# Messaging
msg = s3base.S3Msg()
current.msg = msg

# Sync
sync = s3base.S3Sync()
current.sync = sync


# -----------------------------------------------------------------------------
def s3_clear_session():

    # S3ResourceManager last seen records (rcvars)
    s3mgr.clear_session()

    # Session-owned records
    if "owned_records" in session:
Exemplo n.º 2
0
Arquivo: 00_db.py Projeto: sahana/eden
#s3_logged_in_person = auth.s3_logged_in_person

# Calendar
current.calendar = s3base.S3Calendar()

# CRUD
s3.crud = Storage()

# GIS Module
current.gis = gis = s3base.S3GIS()

# S3XML
current.xml = s3xml = s3base.S3XML()

# Messaging
current.msg = msg = s3base.S3Msg()

# Sync
current.sync = sync = s3base.S3Sync()

# Frequently used S3 utilities imported into the global namespace for use by controllers
from s3 import FS, s3_action_buttons, s3_redirect_default, s3_str


# -----------------------------------------------------------------------------
def s3_clear_session():

    # CRUD last opened records (rcvars)
    from s3 import s3_remove_last_record_id
    s3_remove_last_record_id()