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

On Thu, Oct 16, 2008 at 10:14 PM, mdipierro <[EMAIL PROTECTED]> wrote:

>
> I am working on T3 (something on top of T2) and it is cool and I would
> like to use SQLDesigner.
>
> Does anybody have a simple web2py app that packages the latest
> SQLDesigner and saved/loads the model server side in XML?
>
> I am not looking for something that creates a web2py schema and I need
> something that has no options about exporting at all. It should load
> from the server, by default, always the same model and only one button
> to save serverside in XML.
>
> Anybody?
>
> Massimo
> >
>


-- 
"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."-Albert Einstein

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to