Thanks Boris -

I can't wait to look at this some more!

Just a note:

In your controllers/default.py,  you should use URL, so that this will
work from app names other than "init" - this worked for me:

  def index():
      # redirect('designer.html')
      redirect(URL(r=request,c='static',f='designer/index.html'))

I have not run through the backend part of this yes, but it will be
interesting to have this called from the admin interface for any
application.

Regards,
Yarko

On Oct 18, 12:56 pm, "Boris Manojlovic" <[EMAIL PROTECTED]>
wrote:
> here u go... (it is already working as appengine app 
> athttp://designer.bojanka.net/
> examples:http://designer.bojanka.net/designer.html?keyword=defaulthttp://designer.bojanka.net/designer.html?keyword=web2pydesigner
>
> (or if you would like to put it on your google hosted account use steki-host
> as application ID)
>
> source code can be downloaded fromhttp://bojanka.net/w2p-massimo.tar.gz,
> or attached to this message if google allows "big" messages on google groups
> This is still work in progress as i'm trying to create project that will
> allow anyone to use this as a service - look at web2pydesigner example
> project :)
>
> Boris
>
>
>
> On Thu, Oct 16, 2008 at 11:27 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> > I think your problem is that the JS only submits war posts. no
> > variables. You can find the raw post data in
>
> > request.body.read()
>
> > I do not what to generate web2py code because I am building something
> > that works on GAE. This means I want an abstract representation of the
> > tables (for example in XML or JSON), I want to store that in the
> > datastore and  convert it into web2py tables dynamically. I am
> > thinking of a VB like interface running on GAE.
>
> > Massimo
>
> > On Oct 16, 4:08 pm, "Boris Manojlovic" <[EMAIL PROTECTED]>
> > wrote:
> > > 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<http://steki-host.appspot.com/*%28will>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
>
> --
> "Only two things are infinite, the universe and human stupidity, and I'm not
> sure about the former."-Albert Einstein
>
>  w2p-massimo.tar.gz
> 2823KViewDownload
--~--~---------~--~----~------------~-------~--~----~
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