Re: [web2py] Re: Many-to-many admin form

2011-12-25 Thread Bruce Wade
Hi Christopher, * * *That is pretty much what I am after.* * * *table = keywords values ('Art', 'Games', 'Money') # Used to find all ads related based on keywords they select* *table = ad (* * url,* * created_by* * keywords - can have 0 or more keywords, keywords can belong to 0 or more ad's* *)

[web2py] Re: Deployment problem on dotcloud with PostgreSQL

2011-12-25 Thread Massimo Di Pierro
very strange... can you send me your app (confidently of course)? Massimo On Dec 25, 10:47 pm, Thomas Dall'Agnese wrote: > Hi Massimo, > > That's what I thought, but I did not manually add any table called "user". > >    -  db.py  defines tables *auth_user* >    -  Edit  db_wizard.py  defines ta

Re: [web2py] Re: Many-to-many admin form

2011-12-25 Thread Christopher Steel
I think what you mean to say is that you are are looking for the ability to make multiple selections in one or more tables using a single form that allows you create a user record. So for example a table of users, a table of email address types and a table of email addresses but the user on se

[web2py] Re: Ext JS REST Grid + WEB2PY CRUD ?

2011-12-25 Thread Thomas Dall'Agnese
The screenshot: http://data.imagup.com/10/1139541911.PNG

[web2py] Re: Ext JS REST Grid + WEB2PY CRUD ?

2011-12-25 Thread Thomas Dall'Agnese
Hi, Has anything be updated to use ExtJS libraries in web2py? I am using some ExtJS 4 grids on my application, feeding the grids through JSON outputs from web2py, but not using the CRUD feature. Which means I am manually parsing the SORT and PAGING information from the ExtJS calls (through JSON

[web2py] Re: ExtJS / qooxdoo - Python wrapper

2011-12-25 Thread Thomas Dall'Agnese
You can have a look at the Django-ExtJS plugin (using ExtJS 3).

[web2py] Re: Deployment problem on dotcloud with PostgreSQL

2011-12-25 Thread Thomas Dall'Agnese
Hi Massimo, That's what I thought, but I did not manually add any table called "user". - db.py defines tables *auth_user* - Edit db_wizard.py defines tables *balise*, *balise_archive*, * comment*, *comment_archive*, *episode*, *episode_archive*, *error_type*, *error_type_archiv

[web2py] Re: Advice needed from Git users...

2011-12-25 Thread lyn2py
Thanks for the additional tip! I'll check out the book and pay attention to the commands used :) On Dec 26, 3:45 am, Bruce Wade wrote: > Git by default only makes changes to your local branch. if you want to make > changes to your remote repository you need to specifically tell git that. > > For

Re: [web2py] Re: Advice needed from Git users...

2011-12-25 Thread chandrakant kumar
That post is mercurial bashing without any real example or proof. I like mercurial because i don't have to remember 129 commands, and i can concentrate on my real work. It is also about personal taste. Happy Holidays! On Mon, Dec 26, 2011 at 12:38 AM, lyn2py wrote: > @Chandrakant, I jumped stra

Re: [web2py] Re: Advice needed from Git users...

2011-12-25 Thread Bruce Wade
Not sure what problem is with GIT? I prefer it over all other source control that I have tried, including mercurial. On Sun, Dec 25, 2011 at 12:50 PM, Gour wrote: > On Sun, 25 Dec 2011 16:30:16 +0530 > chandrakant kumar > wrote: > > > That is why i gave up trying to learn git and moved to mercu

[web2py] Re: new style virtual fields and autocomplete

2011-12-25 Thread Anthony
I don't think virtual fields can be used for searching. You might need to use a computed field instead. Anthony On Sunday, December 25, 2011 1:45:29 AM UTC-5, ニコノコ wrote: > > Thanks to Anthony for correcting my virtual field definition from > geo.ad1.vname=Field.Virtual(lambda r: "%s, %s" % (r

[web2py] Re: How to use response.optimize_css?

2011-12-25 Thread szimszon
who == how sorry

[web2py] who to use response.optimize_css?

2011-12-25 Thread szimszon
I found in the book this: response.optimize_css: if can be set to "concat,minify,inline" to concatenate, minity and inline the CSS files included by web2py. (http://web2py.com/books/default/chapter/29/4?search=optimize) But if I set I see nothing to change with firebug. :( I miss something? I

[web2py] Re: Merry christmas

2011-12-25 Thread Stefaan Himpe
Vrolijk kerstfeest en gelukkig nieuwjaar!

[web2py] Re: One suggestion to formstyle=lambda

2011-12-25 Thread Ray (a.k.a. Iceberg)
It works! On Dec 26, 4:03 am, Massimo Di Pierro wrote: > In trunk. Please check it. > > On Dec 25, 1:16 pm, "Ray (a.k.a. Iceberg)" wrote: > > > > > > > > > Here you are. And merry Chrismas! > > > diff -r 80b2c74561c0 gluon/sqlhtml.py--- a/gluon/sqlhtml.py     Mon Sep 26 > > 00:53:12 2011 -0500++

[web2py] Re: Advice needed from Git users...

2011-12-25 Thread Gour
On Sun, 25 Dec 2011 16:30:16 +0530 chandrakant kumar wrote: > That is why i gave up trying to learn git and moved to mercurial. I never ever bothered to learn git...Mercurial is less dangerous and there is hg-git when needed. Sincerely, Gour -- One who is able to withdraw his senses from se

[web2py] Re: Many-to-many admin form

2011-12-25 Thread Cliff
>> That example doesn't look like a true many-to-many it looks like a >> one-to-many. Because in the example it searches for both id's already being >> in the many-to-many table and if they are it only updates. Where as a true >> many to many you would have multiple entries IE: (1, 1, 20), (1, 1, 4

[web2py] Re: One suggestion to formstyle=lambda

2011-12-25 Thread Massimo Di Pierro
In trunk. Please check it. On Dec 25, 1:16 pm, "Ray (a.k.a. Iceberg)" wrote: > Here you are. And merry Chrismas! > > diff -r 80b2c74561c0 gluon/sqlhtml.py--- a/gluon/sqlhtml.py     Mon Sep 26 > 00:53:12 2011 -0500+++ b/gluon/sqlhtml.py       Mon Dec 26 03:14:58 2011 > +0800 > @@ -978,8 +978,8 @@

Re: [web2py] Re: Advice needed from Git users...

2011-12-25 Thread Bruce Wade
Git by default only makes changes to your local branch. if you want to make changes to your remote repository you need to specifically tell git that. For example: git branch -- list local branches git branch -a lists local and remote. HOWEVER if you have created branches from a different computer

[web2py] Re: One suggestion to formstyle=lambda

2011-12-25 Thread Ray (a.k.a. Iceberg)
Here you are. And merry Chrismas! diff -r 80b2c74561c0 gluon/sqlhtml.py--- a/gluon/sqlhtml.py Mon Sep 26 00:53:12 2011 -0500+++ b/gluon/sqlhtml.py Mon Dec 26 03:14:58 2011 +0800 @@ -978,8 +978,8 @@ elif type(self.formstyle) == type(lambda:None): table = TABLE()

[web2py] Re: Advice needed from Git users...

2011-12-25 Thread lyn2py
Thanks Bruce for replying this holiday season! Merry Xmas :) Regarding filter-branch: http://dalibornasevic.com/posts/2-permanently-remove-files-and-folders-from-a-git-repository It was supposed to remove the folders/files from the git repo, not sure if it was supposed to touch my local repo - bu

[web2py] Re: web2py for dummies

2011-12-25 Thread Phil Graham
Andrea, First post on web2py, but your circumstances are close enough to mine to jump in here. Background: Father was a COBOL developer, learned Tandy TRS basic in elementary school and pascal in high school, no code through grad school except some matlab fiddling. Taught myself enough Wordpress

[web2py] Re: One suggestion to formstyle=lambda

2011-12-25 Thread Massimo Di Pierro
I changed my mind about this and you are right. Can you send me a patch? I would like to see what you want to change it into. Massimo On Dec 24, 3:39 am, "Ray (a.k.a. Iceberg)" wrote: > Hi Massimo, > > I just discovered the lovely formstyle=lambda ... feature. (http:// > web2py.com/books/default

[web2py] Re: Deployment problem on dotcloud with PostgreSQL

2011-12-25 Thread Massimo Di Pierro
You have a table or a field called user. That is not allowed in postgresql because user is a reserved keyword. Massimo On Dec 25, 1:32 am, Thomas Dall'Agnese wrote: > Ticket report: > > syntax error at or near "user" LINE 4: > user INTEGER REFERENCES auth_user(id) ON DELETE CASCADE, ^VERSIONweb

Re: [web2py] Advice needed from Git users...

2011-12-25 Thread Bruce Wade
Git rm would do the trick. Besides that switching to a branch that never had them folders would also do the same thing. git rm -- removes files/folders git branch -- lists your current branch git checkout branch -- switches to a new branch and if that new branch didn't have the folders, then they

Re: [web2py] Re: best way to create a cert for web2py server?

2011-12-25 Thread Christopher Steel
:)

Re: [web2py] Re: Many-to-many admin form

2011-12-25 Thread Christopher Steel
OK, If your database table is setup correctly then in the database examples section you should be able to create a form similar to the one in example 33 for a many to many relationship. http://web2py.com/examples/database_examples/buy ( http://web2py.com/examples/default/examples#database_exampl

[web2py] Re: (Another) Blog Engine in web2py

2011-12-25 Thread Christopher Steel
+1

Re: [web2py] Merry christmas

2011-12-25 Thread Gerd
Frohe Weihnachten und gutes neues Jahr Gerd

[web2py] Re: Merry christmas

2011-12-25 Thread Jacek Wojtkowski
Good & Joyful Christmas On 24 Gru, 19:21, Richard Vézina wrote: > :) > > Richard > > PS.: Thank you all for helps, particularly Anthony, Massimo...

Re: [web2py] Advice needed from Git users...

2011-12-25 Thread chandrakant kumar
On Sun, Dec 25, 2011 at 4:21 PM, lyn2py wrote: > I was playing around with some Git commands and accidentally deleted > the folders on my local machine that were set to "untrack" in > my .gitignore (is this coincidental?) > > I didn't realize they got deleted until after the entire session of > t

[web2py] Advice needed from Git users...

2011-12-25 Thread lyn2py
I was playing around with some Git commands and accidentally deleted the folders on my local machine that were set to "untrack" in my .gitignore (is this coincidental?) I didn't realize they got deleted until after the entire session of trying out Git commands. I have been trying to retrace my st