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
+
+
+
diff --git a/db/postgresql/output.xsl b/db/postgresql/output.xsl
index 4ca7866..39cc978 100644
--- a/db/postgresql/output.xsl
+++ b/db/postgresql/output.xsl
@@ -26,14 +26,14 @@
- CREATE TABLE "
+ CREATE TABLE
- " (
+ (
- "
+
- "
+
@@ -43,23 +43,23 @@
column with nextval(). see:
http://www.postgresql.org/docs/current/static/datatype-numeric.html#DATATYPE-SERIAL
-->
- SERIAL
+ SERIAL
-
+
- NOT NULL
+ NOT NULL
- DEFAULT
+ DEFAULT
-
+
@@ -75,10 +75,21 @@
+
+);
+
+
+
+
- ,
-
+ ALTER TABLE
+
+
+
+ ADD CONSTRAINT
+
+ _pkey
PRIMARY KEY (
UNIQUE (
@@ -86,18 +97,38 @@
- ""
+
,
- )
+ );
+
-
-
-);
+
+
+
+
+
+ ALTER TABLE
+
+ ADD CONSTRAINT
+
+ _
+
+ _fkey
+ FOREIGN KEY (
+
+ ) REFERENCES
+
+ (
+
+ );
+
+
+
COMMENT ON TABLE "
@@ -134,23 +165,5 @@
-
-
-
-
- ALTER TABLE "
-
- " ADD FOREIGN KEY ("
-
- ") REFERENCES "
-
- " ("
-
- ");
-
-
-
-
-
diff --git a/js/config.js b/js/config.js
index afcd8b0..09cf99c 100644
--- a/js/config.js
+++ b/js/config.js
@@ -1,11 +1,11 @@
var CONFIG = {
- AVAILABLE_DBS: ["mysql", "sqlite", "web2py", "mssql", "postgresql", "oracle", "sqlalchemy", "vfp9", "cubrid"],
+ AVAILABLE_DBS: ["mysql", "sqlite", "web2py", "mssql", "postgresql", "oracle", "sqlalchemy", "vfp9", "cubrid", "web2py"],
DEFAULT_DB: "mysql",
AVAILABLE_LOCALES: ["ar", "cs", "de", "el", "en", "eo", "es", "fr", "hu", "it", "ja", "nl", "pl", "pt_BR", "ro", "ru", "sv", "zh"],
DEFAULT_LOCALE: "en",
- AVAILABLE_BACKENDS: ["php-mysql", "php-blank", "php-file", "php-sqlite", "php-mysql+file", "php-postgresql", "php-pdo", "perl-file", "php-cubrid", "asp-file"],
+ AVAILABLE_BACKENDS: ["php-mysql", "php-blank", "php-file", "php-sqlite", "php-mysql+file", "php-postgresql", "php-pdo", "perl-file", "php-cubrid", "asp-file", "web2py"],
DEFAULT_BACKEND: ["php-mysql"],
RELATION_THICKNESS: 2,