steki:~$ cat routes.py
routes_in=(
('/backend/.*/(?P<file>.*)','/init/default/backend\g<file>'),
('/designer.html','/init/static/designer/index.html'),
('/images/(?P<file>.*)','/init/static/designer/images/\g<file>'),
('/db/(?P<file>.*)','/init/static/designer/db/\g<file>'),
('/js/(?P<file>.*)','/init/static/designer/js/\g<file>'),
('/locale/(?P<file>.*)','/init/static/designer/locale/\g<file>'),
('/styles/(?P<file>.*)','/init/static/designer/styles/\g<file>'),
('/doc/','/init/static/designer/doc/index.html'),
)
routes_out=()
steki:~$ cd models; cat 0.py
db.define_table("data",
SQLField("tblname", "string"),
SQLField("created", "datetime", notnull=True, default=datetime.datetime.now()),
SQLField("tbldata", "blob", notnull=True, default=None))
steki:~$ cd controllers; cat default.py
def index():
redirect('designer.html')
def backend():
return dict(request.SOMETHING)
steki:~$ cat ../static/designer/js/config.js
var CONFIG = {
AVAILABLE_DBS:["mysql","sqlite","web2py","mssql"],
DEFAULT_DB:"web2py",
AVAILABLE_LOCALES:["en","fr","de","cs","pl","pt_BR","es"],
DEFAULT_LOCALE:"en",
AVAILABLE_BACKENDS:["php-mysql","php-blank","php-file","php-sqlite","web2py-db"],
DEFAULT_BACKEND:["web2py-db"],
RELATION_THICKNESS:2,
RELATION_SPACING:15
}
problem with code above is that i can't really catch post vars (i do not know how?)
as there is only raw post performed by javascript... with no param names or stuff like that.
so if you can tell me how to capture raw POST data i'll finish my code from above :)
If you just need functionality of creating tables for web2py than it should work as it is (no saving :( )
http://steki-host.appspot.com/ (will change url in some moment to more meaning full