[web2py:11497] Re: Web2py added to GitHub.org

2008-11-09 Thread Yarko T
I'm not sure about version bazaar I'm guessing - like those other 2 projects I mentioned - once you start merging and including a lot of collaborators in source, you might want to move to mercurial / hg. Because of this - and even forseeing a long life for web2py, assume it could be longer

[web2py:11498] Re: How to have a global layout.html

2008-11-09 Thread mdipierro
No. response.view is the name of the default view file for the current action. You can change it. Massimo On Nov 9, 1:47 am, Phyo Arkar [EMAIL PROTECTED] wrote: response.view = layout.html defined at global scope (above all methods) ? On Sun, Nov 9, 2008 at 3:56 AM, Yarko T [EMAIL PROTECTED]

[web2py:11499] Re: Web2py added to GitHub.org

2008-11-09 Thread Yarko T
BTW - not all of this needs to be displayed - it can be used programmatically BUT! I think a link, just as so many desktop programs use the convention on about, I would write a t2 function to display a pop-up (ajax or otherwise) with info that can be copy-pasted. From admin, I'd show the

[web2py:11501] Re: How to have a global layout.html

2008-11-09 Thread mdipierro
yes On Nov 9, 2:16 am, Phyo Arkar [EMAIL PROTECTED] wrote: Sorry I mean like this in appadmin.py response.view=appadmin.html and that make all functions inside appadmin.py uses appadmin.html appadmin.html have {{extend layout.html}} So that make it global for whole appadmin rite? On

[web2py:11503] Web2Py mirrored on BitBucket

2008-11-09 Thread yarko
After the github.org announcement today, I've mirrored the source tree to: http://www.bitbucket.org/yarko/web2py/wiki You can get a zip shapshot there. If you want to do your bug fixes, enhancements, development using mercurial, take a branch of this, and work there. When you're ready to

[web2py:11504] Re: Web2Py mirrored on BitBucket

2008-11-09 Thread yarko
T2 is included in the mirror there, so if you just want an all-in-one source package you can download a zip (or gz or bz2) file there too. I'll mirror manually for a while, until I see how it goes. Ususally I take commits as soon as I see them, and make sure things still work on PC. It should

[web2py:11505] Re: Web2Py mirrored on BitBucket

2008-11-09 Thread yarko
Now, with options for submitting your work using bazaar, git, or mercurial - hopefully the barriers to more people contributing are reduced. Enjoy - we're lucky to be able to write software - it's fun! On Nov 9, 3:30 am, yarko [EMAIL PROTECTED] wrote: T2 is included in the mirror there, so if

[web2py:11506] Re: Web2Py mirrored on BitBucket

2008-11-09 Thread Jonathan Benn
On Nov 9, 12:27 pm, yarko [EMAIL PROTECTED] wrote: http://www.bitbucket.org/yarko/web2py/wiki If you want to do your bug fixes, enhancements, development using mercurial, take a branch of this, and work there.  When you're ready to submit your work for merging, see guidelines there.

[web2py:11507] Re: How to include html in a view?

2008-11-09 Thread billf
I love this group :-) On Nov 9, 7:15 am, Yarko T [EMAIL PROTECTED] wrote: Actually it has to do with what the helper function DIV expects / does with it's arguments... *arg expands a list, e.g. [a,b,c] and passes as 3 args;  that is, it unpacks the list object; Since python functions can

[web2py:11508] Re: using t2.search()

2008-11-09 Thread Yarko T
Oh! You downloaded the file! You need to download the package, and install it as applications/plugin_t2 (just copy it). To get the package, use this bazaar command: bzr branch lp:~mdipierro/t2/main I've mirrored t2 separately, so that people can grab a tarball - would you let me know if it

[web2py:11509] Re: using t2.search()

2008-11-09 Thread Yarko T
download (upper right of screen) from here: http://www.bitbucket.org/yarko/plugin_t2/ That should also be the name you use to install the plugin - plugin_t2 On Sun, Nov 9, 2008 at 4:11 AM, Yarko T [EMAIL PROTECTED] wrote: Oh! You downloaded the file! You need to download the package, and

[web2py:11510] Re: Web2Py mirrored on BitBucket

2008-11-09 Thread yarko
I've also mirrored t2 separately, so that people can grab a tarball - http://www.bitbucket.org/yarko/plugin_t2/ would you let me know if it works? If you grab one of the .gz or .bz2 archives these are compressed tar files - gunzip (or whatever the bz2 equivalent command is) and you should end

[web2py:11511] Re: How to have a global layout.html

2008-11-09 Thread achipa
Another way, maybe a bit more hackish is to have a soft link to the global view dir in your app view dir. If you're under linux or macos, that is. On Nov 9, 9:19 am, mdipierro [EMAIL PROTECTED] wrote: yes On Nov 9, 2:16 am, Phyo Arkar [EMAIL PROTECTED] wrote: Sorry I mean like this in

[web2py:11512] Re: Possible bug in IS_URL

2008-11-09 Thread achipa
I guess this part clears that up: A URI is always in an escaped form, since escaping or unescaping a completed URI might change its semantics. In some cases, data that could be represented by an unreserved character may appear escaped; for example, some of the unreserved mark

[web2py:11514] Re: new in trunk

2008-11-09 Thread achipa
Maybe it would be nice to have this (and generally new stuff) also in a changelog, would be much easier to track what's new. I can see there was some effort in the README file but so many non-obvious goodies get introduced that it's easy to miss unless you really watch this group really

[web2py:11515] Re: How to define configuration items for apps

2008-11-09 Thread achipa
Massimo will correct me if I'm wrong, but I think there is something wrong with the general approach if one application needs to know/use an another application's model. You're either try ing to split something into two apps that is logically one, or you are trying to make an app from something

[web2py:11516] Re: How to define configuration items for apps

2008-11-09 Thread mdipierro
Yes, I agree with Attila. Anyway, if you want to have two apps access the same database there are two good reasons to redefine the modes: 1) they may see different tables of one database, different fields for the same tables, and/or have different requirements for those fields; 2) each of the

[web2py:11517] Re: Web2py added to GitHub.org

2008-11-09 Thread ceej
The best way to keep track of the version number using git is to add a 'tag' for the version and update the README, just like rails does :) On Nov 9, 12:12 am, Yarko T [EMAIL PROTECTED] wrote: BTW - not all of this needs to be displayed - it can be used programmatically BUT!   I think a

[web2py:11519] Re: Ajax call and response

2008-11-09 Thread mdipierro
$.ajax({ type: POST, url: {{=URL(request,f='callback')}}, success: function(msg) { alert( Data Saved: + msg ); } }); more here: http://docs.jquery.com/Ajax/jQuery.ajax#options Massimo On Nov 9, 10:41 am, Michal [EMAIL PROTECTED] wrote: I need to figure out one thing. After

[web2py:11521] IMPORTANT: Bill's patch

2008-11-09 Thread mdipierro
Finally I found the time to look into Bill's patch for custom forms. I like the idea a lot but for a number of reasons, independently on this patch, I had to change/improve the source code of gluon/html.py. I made lots of small changes for gluon/html.py! I put the patch-in compatibly with the

[web2py:11523] Re: Web2py added to GitHub.org

2008-11-09 Thread Yarko T
for releases I wouldn't disagree... but this is manual, and for managing man contributors, and for applications depending on plugins this feels wrong. On Sun, Nov 9, 2008 at 2:02 PM, ceej [EMAIL PROTECTED] wrote: The best way to keep track of the version number using git is to add a

[web2py:11531] Re: using t2.search()

2008-11-09 Thread Yarko T
I think you said you installed an empty directory. I looked at the generated tar file, and it's directory structure isn't quite what web2py expects. First, I think you need to confirm that you have installed a directory your-web2py-location/applications/plugin-t2... it should have several things

[web2py:11536] Re: New to web2py.. Invalid request?

2008-11-09 Thread kaos
I started out with the built in server but I didn't like it very much. I now have a Hello world app without any custom css and javascript... time to start building :) On Nov 10, 4:49 pm, Yarko T [EMAIL PROTECTED] wrote: :-) On Sun, Nov 9, 2008 at 9:48 PM, yarko [EMAIL PROTECTED] wrote: If

[web2py:11540] Re: IMPORTANT: Bill's patch

2008-11-09 Thread billf
1) tables over something else: it does seem to be a subject of great discussion that people get very energised about. But I guess that if you take out tables then someone else will object :-) Isn't the idea of custom forms that if you want labels you code your own view? 2) labels: personally

[web2py:11529] Re: Enhancement Request for Informix and DB2 Support

2008-11-09 Thread mdipierro
Hi Christopher, we do not have Informix nor DB2 support we can add that in one week if you are willing to run tests for us. Your contribution would be acknowledged. Let us know if you can do it. Massimo On Nov 9, 8:17 pm, epsilon [EMAIL PROTECTED] wrote: All: I have a project at work where

[web2py:11542] Re: IMPORTANT: Bill's patch

2008-11-09 Thread mdipierro
Attention!!! I posted in trunk a complete rewrite of gluon/html.py In my tests it does not break anything but please try it and let me know if it break something before I post an new web2py version. The reason for the rewrite is mainly to make form processing twice as fast and the code more

[web2py:11530] Re: Enhancement Request for Informix and DB2 Support

2008-11-09 Thread epsilon
Massimo, I'll work the test cycle for Informix support and would enjoy contributing to the project. Please let me know when the code is available to begin work. Thank you, Christopher Smiga PS. We don't have DB2 yet, but I suspect we'll go down that path later. mdipierro wrote: Hi

[web2py:11544] Re: using t2.search()

2008-11-09 Thread mdipierro
It is not a bad things but you have to be careful. The reason for the plugin is that is not not just a module. For it to work it requires some js, css and images and their paths are hardcoded in t2. You would need to more those static files as well and include them manually since

[web2py:11547] web2py and htaccess

2008-11-09 Thread morningovermidnight
I am setting up htaccess to rewrite requests into http to be changed to https where I need sessions to be passed over a secure channel. In which folder do I place my htaccess file? I've tried the root web2py folder, the applications folder, and even the individual application folder without

[web2py:11543] Migrations on server upload

2008-11-09 Thread morningovermidnight
A question...also wondering if anyone else is having the same issue...when I upload my local web2py development files to the server, for some reason the database migrations on the server side are not created. I tried removing .table files in the database folder and it still didn't work for

[web2py:11518] Ajax call and response

2008-11-09 Thread Michal
I need to figure out one thing. After I call ajax functions I would like to know when the reponse has been received to perform different task that depends on result returned by ajax call. What is good way to handle this? For now I was using setTimeout, but that's not the way to go. Thank you for

[web2py:11537] Re: IMPORTANT: Bill's patch

2008-11-09 Thread DenesL
Regarding this subject, I have been running some tests as time permits. May I suggest the following (which I might have mentioned before): 1) The form needs to be more CSS friendly (following the MVC pattern). This means no tables. In my tests I have been able to trim the fields to: label...

[web2py:11527] Re: Enhancement Request for Informix and DB2 Support

2008-11-09 Thread Yarko T
You might want to take a look at gluon/sql.py - If you search for oracle, that seems to most consistently have special handling - this will give you a hint at what you might need to graft. Mappings in SQL_DIALECTS; connections in SQLDB:__init__(); SQLTable:SQLDB_insert(); SQLSet: SQLDB:_select();

[web2py:11545] Re: Migrations on server upload

2008-11-09 Thread mdipierro
If you upload the .table files, then web2py will certainly NOT create the tables. If you remove them, it should create the tables and new .table files. Look in the sql.log and let us know. Massimo On Nov 10, 1:03 am, morningovermidnight [EMAIL PROTECTED] wrote: A question...also wondering if

[web2py:11534] Re: New to web2py.. Invalid request?

2008-11-09 Thread yarko
If you're doing localhost, start out easy - web2py comes with it's own server builtin - cherrypy. All you need to do is install somewhere by itself, and start web2py.py. You should see a browser come up with the same welcome path On Nov 9, 9:16 pm, kaos [EMAIL PROTECTED] wrote: I have

[web2py:11533] Re: New to web2py.. Invalid request?

2008-11-09 Thread kaos
Nvm, got it :) you need to run web2py.pl :) On Nov 10, 4:16 pm, kaos [EMAIL PROTECTED] wrote: I have setup Apache2.2/Python2.5 and the latest mod_wsgi and the server is running well with basic hello world app (Windows Vista). I then extracted web2py source to wsgi root and set up

[web2py:11535] Re: New to web2py.. Invalid request?

2008-11-09 Thread Yarko T
:-) On Sun, Nov 9, 2008 at 9:48 PM, yarko [EMAIL PROTECTED] wrote: If you're doing localhost, start out easy - web2py comes with it's own server builtin - cherrypy. All you need to do is install somewhere by itself, and start web2py.py. You should see a browser come up with the same

[web2py:11538] Re: Enhancement Request for Informix and DB2 Support

2008-11-09 Thread mdipierro
1) install web2py from source 2) install informixdb from source 3) replace gluon/sql.py with this (experimental informixdb support) http://groups.google.com/group/web2py/web/sql.py 4) cd gluon 5) edit the doctest at the bottom and use the proper connection string like the following:

[web2py:11546] Re: IMPORTANT: Bill's patch

2008-11-09 Thread mdipierro
(*) means this is not a feature. Has always been there. On Nov 10, 1:01 am, mdipierro [EMAIL PROTECTED] wrote: Attention!!! I posted in trunk a complete rewrite of gluon/html.py In my tests it does not break anything but please try it and let me know if it break something before I post an

[web2py:11528] Re: using t2.search()

2008-11-09 Thread mdipierro
I may have misunderstood the question. Try this db.define_table('mytable',SQLField('a'),SQLField('b')) db.mytable.a.requires=IS_IN_SET(['one','two','three']) def index(): form=SQLFORM(db.mytable,fields=['a']) if FORM.accepts(form,request.vars):

[web2py:11539] Re: IMPORTANT: Bill's patch

2008-11-09 Thread mdipierro
fine with everything but what's the problem of table in form. You can use CSS to completely override the table layout and more the TD anywhere you like on the screen as if they were a DIV. Am I wrong? Massimo On Nov 9, 10:30 pm, DenesL [EMAIL PROTECTED] wrote: Regarding this subject, I have

[web2py:11520] Re: new in trunk

2008-11-09 Thread mr.freeze
Thanks Massimo. For those interested, my patch is just a link to edit the controller of the current view. Look for it on the right side of the screen when editing a view. On Nov 8, 4:27 pm, mdipierro [EMAIL PROTECTED] wrote: I also included patches from Mark Larsen and Nathan Freeze. I let