diff --git a/backend/web2py/datatypes.xml b/backend/web2py/datatypes.xml new file mode 100644 index 0000000..9933b52 --- /dev/null +++ b/backend/web2py/datatypes.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/backend/web2py/output.xsl b/backend/web2py/output.xsl new file mode 100644 index 0000000..cf05da0 --- /dev/null +++ b/backend/web2py/output.xsl @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbOBJECT.define_table(" + + ", + + + + + Field(" + + + + ", + + + " + + ", length= + + + + , + + + " + + ", + + + + notnull=True, + + + + default= + + + None + + + + + + + + default=None + + + + + + ", dbOBJECT. + + + + + + + + + ) + + + + , + + + + + + + + unique=True + + + ) + + + + + """ database class object creation (initialization) """ + if request.env.web2py_runtime_gae: # if running on Google App Engine + db = DAL('gae') # connect to Google BigTable + session.connect(request, response, db=db) # and store sessions and tickets there + else: # else use a normal relational database + dbOBJECT = SQLDB("sqlite://dbOBJECT.db") + + + + + + + + + + + + + + + + + + + + """ Relations between tables (remove fields you don't need from requires) """ + + + + + + + + dbOBJECT. + + . + + .requires=IS_IN_DB( dbOBJECT, ' + + .id', ' + + + + + + + + %( + + )s + + + + + ') + + + + + diff --git a/backend/web2py/web2pydesigner.xml b/backend/web2py/web2pydesigner.xml new file mode 100644 index 0000000..76a7e73 --- /dev/null +++ b/backend/web2py/web2pydesigner.xml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + integer + NULL + + + string(50) + 'newproject' + + + datetime + 'request.now' + + + integer + NULL + + + + integer + NULL + + + + boolean + False + + + id + +
+ + + integer + NULL + + + integer + NULL + + + + datetime + 'request.now' + + + blob + + + id + +
+ + + integer + NULL + + + string + + + id + +
+ + + integer + NULL + + + integer + NULL + + + + integer + NULL + + + + id + +
+ + + integer + NULL + + + string + + + id + +
+ + + integer + NULL + + + string(50) + + + string(50) + + + string + string(80) + 'email@domain.com' + + + string(50) + + + password + + + id + +
+