[web2py] Re: Congratulations to this mailing list

2011-04-04 Thread Mengu
it's because they beat us on the number of irc users. :) as of april 4, 2011, 10:33 am gmt +2, #django has 289 users, #rubyonrails has 498 users, #web2py has 16 users. we are definitely more than that. just come to irc, especially yourself massimo. of course we cannot underestimate the number of p

[web2py] Re: eliminate 'column-header' titles from query response?

2011-04-04 Thread james c.
HI Anthony, Thanks for the follow up and comments. I found a simple solution, described just below. I consider my problem solved. However, you asked for more information which is also below. If you really wish to take this on to investigate further for a possible bug report - let me know and I'll

[web2py] main menu z-index

2011-04-04 Thread Manuele Pesenti
Hi * I have inserted a map inside the index page of my application but I realized that the map overlap all scrolls of the main menu in default web2py theeme. I've tyied to set style="z-index:-10;" for the div of my map but without results. Can you tell me how to resolve it? Thenkyou very mutc

[web2py] SyntaxError: setting key 'change_password_onvalidation' does not exist

2011-04-04 Thread Ab...
Hello, In an application that allows password column in auth_user table to be null as it uses facebook login also, I have a change password auth form where I'd like to force validation that new password can not be blank.. Based on http://web2py.com/book/default/chapter/08#Authentication a few lin

[web2py] Re: Congratulations to this mailing list

2011-04-04 Thread selecta
ah i was just about to complain that the main page still links to a strange irc channel, but that finally changed i guess this is one of the reasons why there are so few people in the irc channel, it was just not linked properly On Apr 4, 9:38 am, Mengu wrote: > it's because they beat us on the n

Re: [web2py] Re: MongoDB and Web2Py

2011-04-04 Thread Ahmed Bani
I will test it for my new application: x2py = a web2py-powered web-based email client. Yet, another web-based email client!

[web2py] Re: Funny behavior with referenced Field display if writable=False

2011-04-04 Thread szimszon
Can I help with something? On márc. 30, 08:55, szimszon wrote: > Any progress / comment? > > On márc. 27, 22:04, szimszon wrote: > > > > > > > > > Hi! > > > I use Version 1.94.6 (2011-03-27 18:20:38). > > > I have in db: > > - > > db.define_table( 'mail_domain', > >      

Re: [web2py] main menu z-index

2011-04-04 Thread Martín Mulone
can you show us a screenshot of the problem and the code where do you put the map? 2011/4/4 Manuele Pesenti > Hi * > I have inserted a map inside the index page of my application but I > realized that the map overlap all scrolls of the main menu in default web2py > theeme. I've tyied to set styl

Re: [web2py] New b2b site using web2py

2011-04-04 Thread Martín Mulone
Congrats, looks very nice. 2011/4/4 JimK > Hello Everyone! > > I've been working on a business for some time and have finally > launched it! The web server for the main app and CAS are running on > appengine using the web2py framework. Please check it out and let me > know what you think. The

[web2py] Re: Congratulations to this mailing list

2011-04-04 Thread Mengu
also people are not couraged to join the irc room. that's one of the reasons. On Apr 4, 12:26 pm, selecta wrote: > ah i was just about to complain that the main page still links to a > strange irc channel, but that finally changed > i guess this is one of the reasons why there are so few people i

[web2py] Re: New b2b site using web2py

2011-04-04 Thread Mengu
hi, i cannot access http://qakit.com in istanbul, turkey. are you using google app engine? On Apr 4, 8:12 am, JimK wrote: > Hello Everyone! > > I've been working on a business for some time and have finally > launched it!  The web server for the main app and CAS are running on > appengine using

Re: [web2py] Re: Congratulations to this mailing list

2011-04-04 Thread Marin Pranjic
I can join if you need idlers :P On Mon, Apr 4, 2011 at 12:46 PM, Mengu wrote: > also people are not couraged to join the irc room. that's one of the > reasons. > > On Apr 4, 12:26 pm, selecta wrote: > > ah i was just about to complain that the main page still links to a > > strange irc channel

Re: [web2py] Congratulations to this mailing list

2011-04-04 Thread Sebastian E. Ovide
On Mon, Apr 4, 2011 at 12:53 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I mined some data from: > > http://groups.google.com/group/web2py/about > http://groups.google.com/group/django-users/about > > This web2py users group had 56,283 messages posted since 1/1/2009. The > Django-

Re: [web2py] url rewriting

2011-04-04 Thread Ahmed Sharkawy
*I use GAE and I use the app.yaml to solve this but there is anther problem I have more than one function in the file so I want to point to the specific function the code in app.yaml is - url: /login script: applications\init\controllers\login.py but if I have a script contain 2 functions how t

[web2py] Re: PostgreSQL Error "SELECT DISTINCT, ORDER BY expressions must appear in select list"

2011-04-04 Thread Ross Peoples
Showing us the model would help too, especially if you are connecting to a legacy database.

[web2py] Re: vote for Pycharm support for Web2py

2011-04-04 Thread Ross Peoples
I certainly did. We need a good IDE for web2py.

[web2py] Get last inserted field value

2011-04-04 Thread Neveen Adel
Hello, I have the following table: db.define_table("member", SQLField("membership_id", "integer",notnull=True), SQLField("first_name", "string", notnull=True) ) and i want the membership id to be incremented automatically. the way i used : every time i inserted it , i select th

[web2py] Re: Get last inserted field value

2011-04-04 Thread Anthony
Your table already includes an 'id' field by default, which is an auto-increment integer field starting at 1. Why do you need a separate 'membership_id' field? If it's a legacy database and you need the name of the 'id' field to be 'membership_id', you can simply define the field type as 'id' (

Re: [web2py] Re: Congratulations to this mailing list

2011-04-04 Thread Ross Peoples
I do have to say that the first time I went looking for help, I went to the IRC channel, that had 7 people in it, all of which were idle. The IRC channel would be great for answering quick questions for new users, and joining a mailing list does require a bit of commitment. For the more in dept

[web2py] Re: Get last inserted field value

2011-04-04 Thread Neveen Adel
Thanks Anthony for your reply. The table already have an old data so i can't remove the column id or change in the database structure. Is there another solution in controller level not database level? Thanks in Advance On Apr 4, 2:54 pm, Anthony wrote: > Your table already includes an 'id' fie

[web2py] T usage

2011-04-04 Thread niknok
I tried: Field('color', 'list:string', default=answer, requires=IS_IN_SET(T(question['choices']), zero=None, multiple=True)) I would like to display the choices in the translated language but the selection will be stored in the database in the orginal language. For example: choices = ['Gold', 'Si

[web2py] Re: extra element in form toggles automatically

2011-04-04 Thread Massimo Di Pierro
It is because of this value=True If you remove it will not be always set to true. On Apr 4, 1:20 am, Rohan wrote: > I am creating an extra element in form as per > guidehttp://web2py.com/book/default/chapter/07#Adding-extra-form-elements-... > > here is the code > > controller > settings_form

[web2py] .represent = ... in left join

2011-04-04 Thread Johann Spies
I want to get a proper representation of a field in the result of a left join but am struggling to do so. Here is a simplified version of the problem. db.define_table('courses', Field('week','integer', requires=IS_IN_SET([1,2]), widget = SQLFORM.widgets.r

[web2py] Re: SyntaxError: setting key 'change_password_onvalidation' does not exist

2011-04-04 Thread Massimo Di Pierro
oops. Bug. fixed in trunk. On Apr 4, 3:58 am, "Ab..." wrote: > Hello, > > In an application that allows password column in auth_user table to be > null as it uses facebook login also, I have a change password auth > form where I'd like to force validation that new password can not be > blank.. >

[web2py] Re: MongoDB and Web2Py

2011-04-04 Thread Massimo Di Pierro
DAL allows to do: db=DAL('mongodb://127.0.0.1:5984/db') it allows to define_table and allows db.table.insert(...) other methods have not been implemented because the above was never tested. If you help us with testing I can implement the other methods (select, count, update). On Apr 1, 9:55 am,

[web2py] Re: Funny behavior with referenced Field display if writable=False

2011-04-04 Thread Massimo Di Pierro
It would help to have a smaller example to understand the problem better. Can you reproduce it with one table with 1-2 fields and one action? On Apr 4, 5:30 am, szimszon wrote: > Can I help with something? > > On márc. 30, 08:55, szimszon wrote: > > > > > > > > > Any progress / comment? > > > On

[web2py] Re: New b2b site using web2py

2011-04-04 Thread Massimo Di Pierro
Look great. I will be using this! On Apr 4, 12:12 am, JimK wrote: > Hello Everyone! > > I've been working on a business for some time and have finally > launched it!  The web server for the main app and CAS are running on > appengine using the web2py framework.  Please check it out and let me > k

[web2py] Re: Get last inserted field value

2011-04-04 Thread Massimo Di Pierro
how about db.define_table("member", SQLField("membership_id", "id"), SQLField("first_name", "string", notnull=True) ) and "membership_id" would be your "id" field? On Apr 4, 8:03 am, Neveen Adel wrote: > Thanks Anthony for your reply. > > The table already have an old data so i can'

[web2py] linked in group

2011-04-04 Thread Massimo Di Pierro
We had a linkedin group for some time. I now made it open (new linked in feature). perhaps we should use it to post jobs. massimo

[web2py] Re: Get last inserted field value

2011-04-04 Thread Neveen Adel
Thanks a lot Massimo :) The problem with this solution is that i have a table has member_id as foreign key and by this solution that data will be lost. so i searched for a solution on controller level. Thanks On Apr 4, 3:31 pm, Massimo Di Pierro wrote: > how about > > db.define_table("member"

[web2py] Re: extra element in form toggles automatically

2011-04-04 Thread Rohan
If not always setting it to true, it's toggling it. Once on then off then on and so on, I modified code and set value based on boolean variable but had same issue. custom_checkbox = TR(LABEL(), TD(INPUT(_name='agree',value=session.dummy, _type='checkbox'), LABEL('Some setting'))) settings

Re: [web2py] linked in group

2011-04-04 Thread Bruno Rocha
Can you post the link to the group please? I see more than one web2py group on linkedin, and more than one web2py page/group in facebook On Mon, Apr 4, 2011 at 10:36 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > We had a linkedin group for some time. I now made it open (new link

[web2py] Re: Get last inserted field value

2011-04-04 Thread Ross Peoples
Massimo's idea would work, but the table would need to have "membership_id" set up as an identity field. If your existing structure requires you to manually fill in this value yourself, then you would have to do your inserts manually using executesql: db.executesql("INSERT INTO member (membersh

[web2py] Re: add / remove form field

2011-04-04 Thread DenesL
Could you explain a bit more? I am not sure I understand. Maybe an example. On Apr 3, 10:39 pm, 黄祥 wrote: > hello, > > i want to input many data simutanously in web2py to database. > did anyone knows how to add / remove form field in web2py and then > input it on database? > > thank you so much

[web2py] PDF writing under GAE

2011-04-04 Thread Arbie Samong
Did anyone figure out how to let users download pdf's that contains data from the database under GAE? Appengine does not allow file writing, and most pdf writing libraries I've tried involves temporarily writing in the disk.

[web2py] Re: linked in group

2011-04-04 Thread Massimo Di Pierro
oops. http://www.linkedin.com/groups?mostPopular=&gid=143976 On Apr 4, 8:43 am, Bruno Rocha wrote: > Can you post the link to the group please? > > I see more than one web2py group on linkedin, and more than one web2py > page/group in facebook > > On Mon, Apr 4, 2011 at 10:36 AM, Massimo Di Pier

[web2py] Re: PDF writing under GAE

2011-04-04 Thread Massimo Di Pierro
does myfpdf require file writing? I did not check? If it does it should be easy to change it to use a StringIO instead. On Apr 4, 9:08 am, Arbie Samong wrote: > Did anyone figure out how to let users download pdf's that contains > data from the database under GAE? Appengine does not allow file >

Re: [web2py] .represent = ... in left join

2011-04-04 Thread Richard Vézina
Are course_week1 and course_week2 not null?? If not you need ...requires=IS_NULL_OR(IS_IN_DB(your requires) and in ...represent= you should use zero option (see book about that) or something like that : db.t_registration_form.course_week1.represent=\ lambda value: (value!=None and "%(code)s"

[web2py] Re: PDF writing under GAE

2011-04-04 Thread Arbie Samong
When trying it out on localhost:8080 using the appengine sdk it returns an IO error pointing out that writes aren't allowed. I'll be looking into StringIO, thanks for the tip Massimo Regards, Arbie On Apr 4, 10:10 pm, Massimo Di Pierro wrote: > does myfpdf require file writing? I did not check?

Re: [web2py] Re: PostgreSQL Error "SELECT DISTINCT, ORDER BY expressions must appear in select list"

2011-04-04 Thread fuga
I attach argument-variables that is passed to BaseAdapter.select() (by using pydev). Do you mean as such? I'm working for sahana-eden project. It will be used for the earthquake rescue of Japan. http://eden.sahanafoundation.org/wiki PostgreSQL errors are caused by some querys which succeeds o

Re: [web2py] url rewriting

2011-04-04 Thread Jonathan Lundell
On Apr 4, 2011, at 5:02 AM, Ahmed Sharkawy wrote: > I use GAE and I use the app.yaml to solve this > but there is anther problem > I have more than one function in the file so I want to point to the specific > function > > the code in app.yaml is > - url: /login > script: applications\init\cont

[web2py] Re: Get last inserted field value

2011-04-04 Thread Neveen Adel
Thanks a lot all of you for your help :) Am thinking to make the default value of membership_id equal to id and by that duplicates will never occurred and also am not need to remove id column. Thanks again for ur help :) On Apr 4, 3:44 pm, Ross Peoples wrote: > Massimo's idea would work, but

[web2py] Re: PDF writing under GAE

2011-04-04 Thread Arbie Samong
OK what I'm trying right now is something straight out of the wiki: html = response.render('default/download.html', locals()) class MyFPDF(FPDF, HTMLMixin): def header(self): self.set_font('Arial','B',15) self.cell(0,10, response.title ,1,0,'C') self.ln(20) def footer(self):

[web2py] Re: PDF writing under GAE

2011-04-04 Thread Arbie Samong
OK update, PIL is being required because I have an image tag in my view, I removed the tag and the pdf was downloaded fine. Would love to have images written properly, though. Regards, Arbie On Apr 4, 10:30 pm, Arbie Samong wrote: > OK what I'm trying right now is something straight out of the w

[web2py] Re: Get last inserted field value

2011-04-04 Thread Anthony
On Monday, April 4, 2011 9:39:31 AM UTC-4, Neveen Adel wrote: > > Thanks a lot Massimo :) > > The problem with this solution is that i have a table has member_id as > foreign key and by this solution that data will be lost. Are you saying in the legacy database, the 'member' table has a 'me

[web2py] Re: T usage

2011-04-04 Thread DenesL
Use choices = {'Gold':T('Gold'), 'Silver':T('Silver')} and update your language translations strings. Not sure how "answer" is obtained. On 4 abr, 09:16, niknok wrote: > I tried: > Field('color', 'list:string', default=answer, > requires=IS_IN_SET(T(question['choices']), zero=None, multiple=T

[web2py] 1.94.6 site-packages

2011-04-04 Thread Will Stevens
I just wanted to point out that the 'site-packages' directory is missing in the source download of the 1.94.6 version. I added the directory in my project and added back in my libs and everything is working. It just looks like the empty directory was left out in this last version. Cheers...

[web2py] Bug in openid_auth.py

2011-04-04 Thread Will Stevens
I am not sure where I should be putting bug reports, so please let me know. There is a bug in 'gluon/contrib/login_methods/openid_auth.py'. On line 244: - self.db.alt_logins.insert(username=oid, user=user) + self.db.alt_logins.insert(username=oid, user=user.id) # there is a DB error when trying t

[web2py] Re: eliminate 'column-header' titles from query response?

2011-04-04 Thread Anthony
Hi James, Yes, why don't you send a simple app that replicates the errors you are seeing. A few comments below... On Monday, April 4, 2011 4:22:22 AM UTC-4, james c. wrote: > thanks, james c. > > > > Late Friday, while grasping at things like string output conversions > a

[web2py] Re: PDF writing under GAE

2011-04-04 Thread Arbie Samong
Follow-up question, how do I get PIL to be recognized as installed? I tried easy_install on the whole system, then on the virtual env, then copying the PIL/ folder to site-packages, but nothing seems to work. Thanks, Arbie On Apr 4, 10:35 pm, Arbie Samong wrote: > OK update, PIL is being require

[web2py] Re: Congratulations to this mailing list

2011-04-04 Thread Mengu
i don't believe that you've said this on purpose yet you would wish something more for web2py. however have you ever joined the django irc room or the mailing list? have you ever seen the questions asked over and over of which answers already said in that -really- great documentation? On Apr 4, 2:

Re: [web2py] Re: MongoDB and Web2Py

2011-04-04 Thread David J.
Thanks Massimo; I never thought to even try this; I will make a sample project and test this; (For me the other way works; so I wouldn't ask that you implement it in DAL; (but I am happy to test it;) Thanks for your great software. David. On 4/4/11 9:24 AM, Massimo Di Pierro wrote: DAL

Re: [web2py] main menu z-index

2011-04-04 Thread ron_m
Are you using IE as the browser? I had a similar problem show up with video displayed in an ActiveX control but it worked fine in anything but IE. In the end it was presumed this was an IE issue with CSS based menu posting so I went away from pull down submenus with having to support IE8.

Re: [web2py] Re: PDF writing under GAE

2011-04-04 Thread Martín Mulone
Perhaps changing this line in fpdf: http://code.google.com/p/pyfpdf/source/browse/fpdf.py#21 with this one work from google.appengine.api import images 2011/4/4 Arbie Samong > Follow-up question, how do I get PIL to be recognized as i

Re: [web2py] Re: linked in group

2011-04-04 Thread Bruno Rocha
This group needs a profile image. On Mon, Apr 4, 2011 at 11:08 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > oops. > > http://www.linkedin.com/groups?mostPopular=&gid=143976 > > On Apr 4, 8:43 am, Bruno Rocha wrote: > > Can you post the link to the group please? > > > > I see mor

[web2py] Re: PDF writing under GAE

2011-04-04 Thread Arbie Samong
Hi Martin, that worked flawlessly ;) Thanks! Regards, Arbie On Apr 4, 11:56 pm, Martín Mulone wrote: > Perhaps changing this line in fpdf: > > http://code.google.com/p/pyfpdf/source/browse/fpdf.py#21 > > with this one work > > from google.appengine.api import images >

Re: [web2py] Re: Making my own decorator...

2011-04-04 Thread pbreit
What do decorators have access to? Full DB access?

[web2py] Web2py version 1.94.6 bug?

2011-04-04 Thread Christopher Steel
Running the latest version of Web2py and Python 2.7 on OS X the I get the following error when running wizard created applicaitons: File "/Users/username/webapps/2010_04_04/web2py/applications/a/models/ menu.py", line 8, in (T('Index'),URL('default','index').xml()==URL().xml(),URL('default','i

[web2py] FAQ topic(s) on typical Web2py FUD

2011-04-04 Thread mikech
I'd like to see some FAQ topics that can be pointed to on the usual FUD about Web2py. For instance: In web2py the code you write for the controller layer (views) goes into files that are not Python modules because they don't include any imports to give context to external identifiers. Web2py l

[web2py] Re: Web2py version 1.94.6 bug?

2011-04-04 Thread Anthony
Are you running from 1.94.6 or from trunk? I ask because a recent change was made to URL in trunk so it returns a string instead of an XML object (so, no more xml() method). Anthony On Monday, April 4, 2011 12:45:56 PM UTC-4, Christopher Steel wrote: > Running the latest version of Web2py and

[web2py] Re: PostgreSQL Error "SELECT DISTINCT, ORDER BY expressions must appear in select list"

2011-04-04 Thread Massimo Di Pierro
We need to see the web2py expression that generates the problematic query. From your comment it seems to me the problem is there. On Apr 4, 9:24 am, fuga wrote: > I attach argument-variables that is passed to BaseAdapter.select() (by > using pydev). > > Do you mean as such? > > I'm working for sa

[web2py] Re: 1.94.6 site-packages

2011-04-04 Thread Massimo Di Pierro
Problem is mercurial does not version control empty folder. It should have been created at startup. Was it not? On Apr 4, 9:46 am, Will Stevens wrote: > I just wanted to point out that the 'site-packages' directory is > missing in the source download of the 1.94.6 version. > > I added the directo

[web2py] Re: Bug in openid_auth.py

2011-04-04 Thread Massimo Di Pierro
Thank you. It is now fixed in trunk. On Apr 4, 9:57 am, Will Stevens wrote: > I am not sure where I should be putting bug reports, so please let me > know. > > There is a bug in 'gluon/contrib/login_methods/openid_auth.py'. > > On line 244: > - self.db.alt_logins.insert(username=oid, user=user) >

[web2py] Re: MongoDB and Web2Py

2011-04-04 Thread Massimo Di Pierro
If it is an option you may want to try with couchdb. That is very close to completed. Only date/datetime/time/boolean fields do not work. On Apr 4, 10:37 am, "David J." wrote: > Thanks Massimo; > > I never thought to even try this; > I will make a sample project and test this; > (For me the other

[web2py] Re: FAQ topic(s) on typical Web2py FUD

2011-04-04 Thread Massimo Di Pierro
I too have lots of issues with searching google groups. On Apr 4, 12:21 pm, mikech wrote: > I'd like to see some FAQ topics that can be pointed to on the usual FUD > about Web2py.  For instance: > > In web2py the code you write for the controller layer (views) goes into > files that are not Pytho

[web2py] Re: Web2py version 1.94.6 bug?

2011-04-04 Thread Massimo Di Pierro
I just fixed this in trunk. please remove the .xml(). The wizard is still experimental and small things like this may still change. Sorry about the trouble but there were good reasons for this change. Massimo On Apr 4, 11:45 am, Christopher Steel wrote: > Running the latest version of Web2py and

[web2py] Re: FAQ topic(s) on typical Web2py FUD

2011-04-04 Thread pbreit
Mikech, here's one thread: https://groups.google.com/d/topic/web2py/uIYf-dTjd88/discussion I guess it could be helpful to note that the framework design may impede certain development aspects such as IDE code-completion. "unjustified" is unjustified as the justification has been published sever

[web2py] components and args

2011-04-04 Thread Richard Vézina
Hello, It seems that I have to modified completly my app to make it work with components, I would just like to confirm it... Here a my url : myapp/mycontroller/myfunction/mytable or args 0 When I try {{=LOAD(c='mycontroller',f='myfunction',args='mytable',extension='.load',ajax=True)}} It keeps

[web2py] Re: FAQ topic(s) on typical Web2py FUD

2011-04-04 Thread pbreit
Also, there are options for what you are looking for: http://wingware.com/doc/howtos/web2py

Re: [web2py] Re: 1.94.6 site-packages

2011-04-04 Thread Jonathan Lundell
On Apr 4, 2011, at 11:03 AM, Massimo Di Pierro wrote: > > Problem is mercurial does not version control empty folder. It should > have been created at startup. Was it not? We put __init__.py (otherwise unnecessary) in site-packages partly to fix that, I thought. Maybe that doesn't work because _

Re: [web2py] components and args

2011-04-04 Thread Anthony
I'm not sure if this is your only problem, but isn't it supposed to be extension='load' rather than extension='.load'? Also, have you actually created a 'myfunction.load' view file (inside the /views/mycontroller/ folder)? If not, web2py should attempt to use the 'generic.load' view. Anthony

Re: [web2py] Re: PDF writing under GAE

2011-04-04 Thread howesc
hopefully not a red herring, but google gave us gifts last week, one of them was file "reading" and "writing" from the blobstore: http://googleappengine.blogspot.com/2011/03/announcing-app-engine-143-release_30.html i have not looked at how to connect things to it, but might help here. cfh

[web2py] Re: url rewriting

2011-04-04 Thread Shark
can you help me by writing an example ? Thanks On Apr 4, 4:25 pm, Jonathan Lundell wrote: > On Apr 4, 2011, at 5:02 AM, Ahmed Sharkawy wrote: > > > I use GAE and I use the app.yaml to solve this > > but there is anther problem > > I have more than one function in the file so I want to point to

Re: [web2py] Re: url rewriting

2011-04-04 Thread Jonathan Lundell
On Apr 4, 2011, at 12:50 PM, Shark wrote: > > can you help me by writing an example ? Sure. Just copy router.example.py to routes.py, and change the default_application (in the BASE router) from "welcome" to "init". > > Thanks > > On Apr 4, 4:25 pm, Jonathan Lundell wrote: >> On Apr 4, 201

[web2py] New Slice: Create a Form Wizard

2011-04-04 Thread Bruno Rocha
I Just forked a post[0] in to a slice[1] [0] http://motanet.com.br/python/form-wizard-com-web2py/ [1] http://web2pyslices.com/main/slices/take_slice/127 -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ]

Re: [web2py] components and args

2011-04-04 Thread Richard Vézina
Hello Anthony, I have no problem using generic.load view for now... My problem is mostly related to the fact I use table name as args in my url and without args 0 my function can't do anything... That why I tried with extension='.load' Here some code : ## CONTROLLER : @auth.requires_login() d

Re: [web2py] url rewriting

2011-04-04 Thread Bruno Rocha
I dont if it helps, but I use the autoroutes which works very fine for me: http://snipt.net/rochacbruno/routesconf http://snipt.net/rochacbruno/routespy -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Sun, Apr 3, 2011 at 1:01 PM, Shark wrote: > Hello > > I am asking about url re

Re: [web2py] New Slice: Create a Form Wizard

2011-04-04 Thread David J.
Just one issue; On step 2 it asks for email again; But email was already filled in... But the data is not in the form; Either the filed should be removed or the data should be there; The data does appear if you submit the form even if it is blank. On 4/4/11 4:06 PM, Bruno Rocha wrote: I

Re: [web2py] components and args

2011-04-04 Thread Richard Vézina
.load or load doesn't change anything... I noted the proper syntax. Richard On Mon, Apr 4, 2011 at 3:08 PM, Anthony wrote: > I'm not sure if this is your only problem, but isn't it supposed to be > extension='load' rather than extension='.load'? Also, have you actually > created a 'myfunction.l

[web2py] problems with python 2.6 (i think)

2011-04-04 Thread pk
hi together, on my local system (i use python 2.5) all works fine. but since i installed my app on the webserver (python 2.6.6) i get the follow error: 88.64.63.144.2011-04-04.21-57-50.b68db5d8-aa6c-497c-93f4-f596f726dbc4 Version web2py™ Version 1.94.6 (2011-03-27 18:20:38) Python Python

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread Massimo Di Pierro
This looks like a user error something like f(a=1,a=2) look into the ticket for line 58 of /var/www/web2py/applications/ Kundenportal/views/bewertung/mitarbeiter.html after conversion to .py On Apr 4, 3:47 pm, pk wrote: > hi together, > > on my local system (i use python 2.5) all works fine. >

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
hmmm, but i some blogs the people means, that should be a bug in python 2.6. this is my code (line 58): On 4 Apr., 22:53, Massimo Di Pierro wrote: > This looks like a user error something like > > f(a=1,a=2) > > look into the ticket for line 58 of /var/www/web2py/applications/ >

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
here is a link of the bug: http://bugs.python.org/issue3219 On 4 Apr., 23:00, pk wrote: > hmmm, but i some blogs the people means, that should be a bug in > python 2.6. > > this is my code (line 58): > > >     >     > > > On 4 Apr., 22:53, Massimo Di Pierro > wrote: > > > > > > > > > This

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
my view: {{for angestellte in mitarbeiter:}} {{pass}} On 4 Apr., 23:00, pk wrote: > here is a link of the bug:http://bugs.python.org/issue3219 > > On 4 Apr., 23:00, pk wrote: > > > > > > > > > hmmm, but i some blogs the people means, that should be a bug in > > python 2.6.

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
hi massimo, but if it is a user error, why it works fine on my local system??? peter On 4 Apr., 23:04, pk wrote: > my view: > > >     >     > > {{for angestellte in mitarbeiter:}} >     >     src="{{=URL(r=request,f='download',args=[angestellte.picture])}}" >    alt="" class="i-portfolio p-le

Re: [web2py] url rewriting

2011-04-04 Thread Ahmed Sharkawy
*@*Bruno Rocha * t is very good site but the answer is so complicated !* On 4 April 2011 22:13, Bruno Rocha wrote: > I dont if it helps, but I use the autoroutes which works very fine for me: > > http://snipt.net/rochacbruno/routesconf > > http://snipt.net/rochacbruno/routespy > > > -- > Bruno

[web2py] Re: FAQ topic(s) on typical Web2py FUD

2011-04-04 Thread mikech
Thanks all. I'm participating in the Linkedin conversation, and trying to redirect the questioners to places that these issues have already been adressed, rather than let the detractor's comments stand.

Re: [web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread Jonathan Lundell
On Apr 4, 2011, at 2:04 PM, pk wrote: > > my view: > > > > > > {{for angestellte in mitarbeiter:}} > >src="{{=URL(r=request,f='download',args=[angestellte.picture])}}" > alt="" class="i-portfolio p-left"/> > > {{pass}} > > On 4 Apr., 23:00, pk wrote: >> here is a link of the

[web2py] Re: FAQ topic(s) on typical Web2py FUD

2011-04-04 Thread cjrh
On Apr 4, 7:21 pm, mikech wrote: > I'd like to see some FAQ topics that can be pointed to on the usual FUD > about Web2py.   Why even bother addressing the FUD? It is better to let others stew in their own FUD, while we concentrate on writing awesome applications. This has always been my view.

Re: [web2py] New Slice: Create a Form Wizard

2011-04-04 Thread Bruno Rocha
I tested here without problems, at the step2 all fields are in the form, but in the view we show just 2 fields. I dont understand the issue.. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ]

Re: [web2py] url rewriting

2011-04-04 Thread Bruno Rocha
at the web2py root folde I just created a file called routes.conf with this http://snipt.net/rochacbruno/routesconf (replace my domain with your domain and application) at the web2py root folder create a file calles routes.py with: http://snipt.net/rochacbruno/routespy Restart web2py and www.

[web2py] Re: FAQ topic(s) on typical Web2py FUD

2011-04-04 Thread mikech
Agreed. Really can't argue with your point. And, anyone who is serious enough about researching their options would find out that these issues are never mentioned in this group, except when they are made by people unfamiliar with the framework. So, they are either non-issues or we're all in

[web2py] Re: FAQ topic(s) on typical Web2py FUD

2011-04-04 Thread ron_m
Agreed, I looked at all the usual suspects for a Python framework and came to the conclusion web2py was the best integrated of any and represented the path of least resistance to getting work done with well chosen defaults in the design and a well defined way of implementing applications. The ad

Re: [web2py] url rewriting

2011-04-04 Thread Ahmed Sharkawy
*thanks for your answer but I want to change many urls so I think your script can do so ?! I want init/account/get to be init/account init/login/index to be init/login * On 4 April 2011 23:20, Bruno Rocha wrote: > at the web2py root folde I just created a file called routes.conf with this > > ht

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
oh ok i will try it, but why works that fine on my local system??? 8] it is both the same app / file On 4 Apr., 23:15, Jonathan Lundell wrote: > On Apr 4, 2011, at 2:04 PM, pk wrote: > > > > > my view: > > > > >   > >   > > > > {{for angestellte in mitarbeiter:}} > >   > >   > src="{{=URL(r

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
ok now it works fine ;) thanks for your help!!! peter On 4 Apr., 23:15, Jonathan Lundell wrote: > On Apr 4, 2011, at 2:04 PM, pk wrote: > > > > > my view: > > > > >   > >   > > > > {{for angestellte in mitarbeiter:}} > >   > >   > src="{{=URL(r=request,f='download',args=[angestellte.pictur

Re: [web2py] url rewriting

2011-04-04 Thread Jonathan Lundell
On Apr 4, 2011, at 2:50 PM, Ahmed Sharkawy wrote: > thanks for your answer but I want to change many urls so I think your script > can do so ?! > > I want init/account/get to be init/account > init/login/index to be init/login You'll find it easier if you make the default function in each contro

Re: [web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread Jonathan Lundell
On Apr 4, 2011, at 2:54 PM, pk wrote: > > oh ok i will try it, but why works that fine on my local system??? 8] > it is both the same app / file The Python bug you linked to was that some versions did *not* give the error you're getting. Fixed in 2.6. > > On 4 Apr., 23:15, Jonathan Lundell wr

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread Mathew Grabau
The way that I read that bug report, the problem is that it is an error in Python 2.5 that it works; the (at the time) beta of Python 2.6 was patched to make it fail. The behaviour that you are witnessing is therefore correct (and it makes sense - why should you give two values to the same keyword

[web2py] Re: problems with python 2.6 (i think)

2011-04-04 Thread pk
ok that makes sense! thank you guys ;) you are great! peter On 5 Apr., 00:01, Mathew Grabau wrote: > The way that I read that bug report, the problem is that it is an > error in Python 2.5 that it works; the (at the time) beta of Python > 2.6 was patched to make it fail. > > The behaviour that yo

  1   2   >