Convert to string with commas for thousands, millions etc
Convers the given string date to user_format
Returns the CSV value of v, For example:
Get dictionary of default values from the Control Panel, or a value if key is passed
Returns the first day of the month for the date specified by date object Also adds d_years and d_months if specified
Returns last day of the month using: get_first_day(dt, 0, 1) + datetime.timedelta(-1)
Coverts string date (yyyy-mm-dd) to datetime.date object
Returns true if there are common elements in lists l1 and l2
Returns string in words with currency and fraction currency.
Send an email. For more details see email_lib.sendmail()
Returns true if same the two string timestamps are same
User format specified in Control Panel
Examples:
Simple Caching:
Stores key-value pairs in database and enables simple caching
get_item(key).get() returns the cached value if not expired (else returns null) get_item(key).set(interval = 60000) sets a value to cache, expiring after x seconds get_item(key).clear() clears an old value setup() sets up cache
XTEA Block Encryption Algorithm Author: Paul Chakravarti (paul_dot_chakravarti_at_gmail_dot_com) License: Public Domain
Simple Scheduler
This scheduler is used to fire events across multiple databases. A database master_scheduler is maintained with one event and one log table
Events are added by different databases in the master scheduler using the set_event method and they are executed by the cron.
__main__ will call run
python install_lib.py [root] [password] master_scheduler
Connect to a remote server via HTTP (webservice).