[web2py] Re: Trouble starting web2py

2010-04-20 Thread szimszon
Okay. I'll wait :) 1.77.3 isn't working yet... On ápr. 19, 22:58, mdipierro mdipie...@cs.depaul.edu wrote: Mind that this is not the end of the story. The simplejson that ships with web2py was modified to handle date/datetime/time. By replacing with the latest official simplejson you will may

[web2py] Re: Customizing Retrieve password process

2010-04-20 Thread Rohan
Hi mdipierro, After setting auth.settings.reset_password_requires_verification to True, I got the mail with the below content Click on the link http://...reset_password/1271747658-828516dd-150c-43a9-bfe3-fb8f8986b6fb to reset your password however I am not able to load the link

[web2py] Re: Customizing Retrieve password process

2010-04-20 Thread Rohan
Followup question on this, After email is sent, user is navigated to the login page, but I want user to head back to homepage. Can you please share the settings for this? Thanks Rohan On Apr 20, 12:19 pm, Rohan yourbuddyro...@gmail.com wrote: Hi mdipierro, After setting

[web2py] Re: storing sessions for auth users

2010-04-20 Thread selecta
well kind of ... the users should get their old customization back once they are logged in this is the easy part, I just have to load the pickled session from the db (I guess), but my question is how to store it properly if I store the session information on logout is not enough I would like to

[web2py] Re: Customizing Retrieve password process

2010-04-20 Thread Rohan
Hi mdipierro, If i override the text of email by setting auth.messages.reset_password and replace http://...reset_password/ 1271747658-828516dd-150c-43a9-bfe3-fb8f8986b6fb with http://domain/ application/default/user/reset_password/ 1271747658-828516dd-150c-43a9-bfe3-fb8f8986b6fb, it works. Is

[web2py] Auth bug when registration requires approval

2010-04-20 Thread SergeyPo
In gluon/tools.py function register() starting from line 1246 must read: elif self.settings.registration_requires_approval: table_user[form.vars.id] = dict(registration_key='pending') Currently it is: elif self.settings.registration_requires_approval: user[form.vars.id] =

[web2py] Debian Packaging

2010-04-20 Thread Mark Breedveld
Hello Massimo, I'm almost done with my exames, so i've a little sparetime left. What brings me back to webpy packaging. Well I'm fairly new to web2p development. And have no clue how the process goes. I read somewhere in the mailinglist that you approve changes. And publish them into a new

[web2py] Re: recaptcha in LOAD not working

2010-04-20 Thread selecta
I found out that if the java scrip files (.js files) are loaded in the initial load of the page the embedded javascript of the ajax loaded pages is executed e.g. default.py def index(): response.files.append(URL(request.application,'static/jquery- autocomplete','jquery.autocomplete.pack.js'))

[web2py] ValueError: invalid literal for int() with base 10:

2010-04-20 Thread annet
In db.py I defined the following tables: db.define_table('company', Field('company',length=54,default='',notnull=True), migrate=False) db.define_table('application', Field('application',length=24,default='',notnull=True,unique=True), migrate=False)

Re: [web2py] rocket performance

2010-04-20 Thread Timothy Farrell
Thank you. It's always good to see the fruits of one's labor come out. On 4/19/2010 3:57 PM, elffikk wrote: a simple test loading one by one the same link, leaving concurrency and advanced testing to Tim and others :) just wanted to feel the improvement, and I have to say Tim did his job

[web2py] Re: getting started with fbconnect

2010-04-20 Thread mdipierro
Looks good to me. On Apr 20, 12:37 am, Rohan yourbuddyro...@gmail.com wrote: I found some code onhttp://codepad.org/tadGosTd I want to know if below piece of code is sufficient for creating a record in auth.user table and creating a session for a user connected using facebook connect?      

[web2py] Re: Auth bug when registration requires approval

2010-04-20 Thread mdipierro
This is fixed in 1.77.x On Apr 20, 3:05 am, SergeyPo ser...@zarealye.com wrote: In gluon/tools.py function register() starting from line 1246 must read: elif self.settings.registration_requires_approval:     table_user[form.vars.id] = dict(registration_key='pending') Currently it is:

[web2py] Re: Customizing Retrieve password process

2010-04-20 Thread mdipierro
Look at the first code example in this page: http://docs.python.org/library/email.header.html Massimo On Apr 20, 3:00 am, Rohan yourbuddyro...@gmail.com wrote: Hi mdipierro, If i override the text of email by setting auth.messages.reset_password and replace http://...reset_password/

[web2py] Re: ValueError: invalid literal for int() with base 10:

2010-04-20 Thread mdipierro
The error refer to a field Supplier and I do not see it defined. Some other part of the code is causing the problem and I cannot help tell without look at it all. On Apr 20, 6:51 am, annet annet.verm...@gmail.com wrote: In db.py I defined the following tables: db.define_table('company',    

[web2py] Re: can I hook my code to db.connect() ?

2010-04-20 Thread mdipierro
I think I understand better the problem. Oracle uses the same time for DATE and DATETIME, i.e. DATE. I made in trunk the change you suggested. Can you please check this does not break insert and select of Field('somename','date')? On Apr 20, 12:37 am, Alexey Nezhdanov snak...@gmail.com wrote:

[web2py] Re: rocket performance

2010-04-20 Thread mdipierro
I made a mistake. Left references to cherry in some of the pages in applications/example. Could you help me locate them and suggest changes? Massimo On Apr 20, 8:11 am, Timothy Farrell tfarr...@swgen.com wrote: Thank you.  It's always good to see the fruits of one's labor come out. On

[web2py] Re: Debian Packaging

2010-04-20 Thread Mark Breedveld
My excuses, that was not what I ment. I ment was. How do you package the application before publish it? Is there a repo? Do have a script to do that? It is a question about the process, not a technical web2py question. And my second question was how should we develop the deb package? Is there

[web2py] Re: Debian Packaging

2010-04-20 Thread mdipierro
I have a script to make the binaries but for the source, I just zip the mercurial source. I do not have an answer to the second question. Massimo On Apr 20, 9:34 am, Mark Breedveld m.breedv...@solcon.nl wrote: My excuses, that was not what I ment. I ment was. How do you package the

[web2py] Re: ValueError: invalid literal for int() with base 10:

2010-04-20 Thread annet
Massimo, The error refer to a field Supplier and I do not see it defined. 'Supplier is the value I enter for the Field application in the application table. Some other part of the code is causing the problem and I cannot help tell without look at it all. Yes, the validator defined after the

[web2py] Re: ValueError: invalid literal for int() with base 10:

2010-04-20 Thread mdipierro
In this line: IS_NOT_IN_DB(db(db.companyapplication.application==request.vars.application), db.companyapplication.application is a reference field (i.e. an integer) request.vars.application is a string 'Supplier'. That is the problem. Please explain in words what these table represent and what

[web2py] Re: Debian Packaging

2010-04-20 Thread Yarko Tymciurak
On Apr 20, 9:34 am, Mark Breedveld m.breedv...@solcon.nl wrote: My excuses, that was not what I ment. I ment was. How do you package the application before publish it? Is there a repo? Do have a script to do that? Mark - Perhaps this will help: - The repo is

[web2py] Re: http://www.web2py.com doesnt load

2010-04-20 Thread mdipierro
This is easier than I thought. Thanks to yarko for insisting about this. Please make sure I do it properly. On Apr 20, 10:27 am, Thadeus Burgess thade...@thadeusb.com wrote: You mean, I will finally have a way to run stable versions of web2py but easily update them !? w00t! -- Thadeus On

[web2py] Webfaction rocks

2010-04-20 Thread Thadeus Burgess
I just wanted to pass along how awesome webfaction rocks! I just signed up for an account with them. During the signup process they ask what software you will be using with the service. I specified OTHER-web2py. When I got the email of the server, I went to the URL and there was already a web2py

[web2py] Re: Webfaction rocks

2010-04-20 Thread mr.freeze
Nice. So no more slicehost or is this an additional account? On Apr 20, 11:47 am, Thadeus Burgess thade...@thadeusb.com wrote: I just wanted to pass along how awesome webfaction rocks! I just signed up for an account with them. During the signup process they ask what software you will be

[web2py] Re: Debian Packaging

2010-04-20 Thread Mark Breedveld
Thank you very much, This are some of the answers I was looking for. I'll dive into it, tomorrow. But this gives me an idea about how the release cicle is done. And how we could implement the debian packages in it. Which has been discussed in an earlier.

Re: [web2py] Re: Webfaction rocks

2010-04-20 Thread Thadeus Burgess
This is an additional account for a client I am working with. I have heard the most success with webfaction and web2py so I wanted to try it out. So good so far. I would have preferred GAE for this project, but the client did not agree. I would still use slicehost hands down if cost/time is not

[web2py] lighttpd + mod_rewrite question/issue

2010-04-20 Thread zxynax
would like the following behavior: request = http://www.example.com/ to go to http://www.example.com/exampleapplication instead of what it would do normally which would be http://www.example.com/welcome/default/index But I would like this to be entirely unseen by the user. -- Subscription

[web2py] Re: GAE, parents, and row objects.

2010-04-20 Thread howesc
is parent a GAE thing? if not, then wouldn't parent be setup as a reference to book (in this example), and db.review.insert(parent = book.id, text = 'The book was great) would work? cfh On Apr 18, 9:15 pm, Matt mjwat...@gmail.com wrote: Thanks Massimo. Matt On Apr 19, 1:53 pm, mdipierro

[web2py] Re: getting started with fbconnect

2010-04-20 Thread howesc
you are missing the creation of the default group when you create a new user (that is done for you in auth automagically), so if you want/ need those groups you would want to add a block like: if auth.settings.create_user_groups: group_id = auth.add_group(user_%s %

[web2py] Re: Webfaction rocks

2010-04-20 Thread annet
Hi Thadeus, You're right, WebFaction rocks. However, when you want to upload and install a packed application you will have to proceed as follows: 1. Log on to WebFaction via terminal/ssh 2. cd to your remote web2py/application directory 3. Make a directory by the name of the packed

[web2py] Re: Webfaction rocks

2010-04-20 Thread Yarko Tymciurak
On Apr 20, 12:08 pm, Thadeus Burgess thade...@thadeusb.com wrote: This is an additional account for a client I am working with. I have heard the most success with webfaction and web2py so I wanted to try it out. So good so far. I would have preferred GAE for this project, but the client did

[web2py] Re: ValueError: invalid literal for int() with base 10:

2010-04-20 Thread annet
Companies in the company table can apply for one or more applications, therefore I defined the combination table companyapplication. The company table contains records like: 1 Butson Consultancy 2 Dreamwall 3 Preston Counselors The application table contains records like: 1 Supplier 2

Re: [web2py] Re: http://www.web2py.com doesnt load

2010-04-20 Thread Álvaro Justen [Turicas]
On Tue, Apr 20, 2010 at 13:27, mdipierro mdipie...@cs.depaul.edu wrote: This is easier than I thought. Thanks to yarko for insisting about this. Please make sure I do it properly. On Apr 20, 10:27 am, Thadeus Burgess thade...@thadeusb.com wrote: You mean, I will finally have a way to run

[web2py] Re: http://www.web2py.com doesnt load

2010-04-20 Thread Yarko Tymciurak
RE: using R- as a prefix to release number (especially if adding RELEASE as a tag that always points to the LATEST RELEASE): Note that the RELEASE tag will move: it essentially will be re- tagging at each release. As relases move along, having a R- prefix will leave past releases marked

[web2py] Re: lighttpd + mod_rewrite question/issue

2010-04-20 Thread zxynax
Took a bit of playing/searching but I've got it now. No worries. Love the framework Massimo! On Apr 20, 12:17 pm, zxynax zxy...@gmail.com wrote: would like the following behavior: request =http://www.example.com/ to go tohttp://www.example.com/exampleapplication instead of what it would do

Re: [web2py] Re: Webfaction rocks

2010-04-20 Thread Thadeus Burgess
I did have trouble getting admin to work properly, it complains about request.env.http_host being a None type, so I was unable to use admin without patching its security checks. However I am comfortable enough with ssh to publish the app manually. -- Thadeus On Tue, Apr 20, 2010 at 1:24 PM,

[web2py] Re: recaptcha in LOAD not working

2010-04-20 Thread DenesL
On Apr 20, 7:01 am, selecta gr...@delarue-berlin.de wrote: I found out that if the java scrip files (.js files) are loaded in the initial load of the page the embedded javascript of the ajax loaded pages is executed e.g. default.py def index():  

[web2py] Re: Webfaction rocks

2010-04-20 Thread Yarko Tymciurak
On Apr 20, 3:43 pm, Thadeus Burgess thade...@thadeusb.com wrote: I did have trouble getting admin to work properly, it complains about request.env.http_host being a None type, so I was unable to use admin without patching its security checks. However I am comfortable enough with ssh to publish

Re: [web2py] Re: rocket performance

2010-04-20 Thread Timothy Farrell
Ton's of references in epydoc. Those will be there as long as wsgiserver.py is in the distro. Otherwise, run epydoc and sphinx. Other than that, theres: \examples\views\default\index.html:line 35 - change link to http://launchpad.net/rocket \examples\views\default\who.html:line 77 - remove

Re: [web2py] Re: Webfaction rocks

2010-04-20 Thread Thadeus Burgess
That might be it. I had not enabled SSL. However, since I will not be using admin, I do not have time to test if that fixes it. -- Thadeus On Tue, Apr 20, 2010 at 3:58 PM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Apr 20, 3:43 pm, Thadeus Burgess thade...@thadeusb.com wrote: I

[web2py] Re: rocket performance

2010-04-20 Thread mdipierro
ok. will fix this soon. On Apr 20, 4:03 pm, Timothy Farrell tfarr...@swgen.com wrote: Ton's of references in epydoc.  Those will be there as long as wsgiserver.py is in the distro.  Otherwise, run epydoc and sphinx. Other than that, theres: \examples\views\default\index.html:line 35 -

[web2py] Re: Webfaction rocks

2010-04-20 Thread Christopher Steel
Hi Annet, np. The reason you might not want to create sites on your web faction account using the web interface is because you some day you might find yourself doing a merge from the command line on your production server (if you start doing versioning with hg or some other system) which can be a

[web2py] Re: lighttpd + mod_rewrite question/issue

2010-04-20 Thread Richard
would you mind posting your solution here? On Apr 21, 6:02 am, zxynax zxy...@gmail.com wrote: Took a bit of playing/searching but I've got it now. No worries. Love the framework Massimo! On Apr 20, 12:17 pm, zxynax zxy...@gmail.com wrote: would like the following behavior: request

[web2py] Re: Webfaction rocks

2010-04-20 Thread Richard
previously a webfaction admin said: If we ever get enough interest in web2py to warrant an installer in our control panel, then we'll go ahead and add a forum for it. http://forum.webfaction.com/viewtopic.php?id=3216 Has that happened? On Apr 21, 9:10 am, Christopher Steel chris.st...@gmail.com

[web2py] Re: Webfaction rocks

2010-04-20 Thread Richard
how do you find webfaction speed? It has been slow for me lately, particularly ssh. On Apr 21, 3:08 am, Thadeus Burgess thade...@thadeusb.com wrote: This is an additional account for a client I am working with. I have heard the most success with webfaction and web2py so I wanted to try it

Re: [web2py] Re: Webfaction rocks

2010-04-20 Thread Thadeus Burgess
It was ok... not as fast as my slicehost servers... but workable. They do not have a installer for it on their control panel, however if you tell them you want web2py while signing up, they will run the web2py installer script on file. Basically, it grabs the latest source of web2py_src.zip and

[web2py] Re: Webfaction rocks

2010-04-20 Thread Yarko Tymciurak
FYI - this thread shows the discussion around the installer. You can have them do it, or you can grab it yourself from the wiki, and use it. http://forum.webfaction.com/viewtopic.php?pid=15862#p15862 The installers (for all sorts of applications on webfaction):

[web2py] Re: Webfaction rocks

2010-04-20 Thread mdipierro
I asked yesterday (it is the second time I ask): I manage the web2py mailing list. There are 1750 members there are many of them are interested in using web2py on webfaction. I see you have explicit support for django, rails and some other frameworks but not web2py. If you are interested I

[web2py] Re: Webfaction rocks

2010-04-20 Thread Yarko Tymciurak
I saw - I think it is nice / good that they provide an installer for users to use; that's a nice plus. On Apr 20, 9:37 pm, mdipierro mdipie...@cs.depaul.edu wrote: I asked yesterday (it is the second time I ask): I manage the web2py mailing list. There are 1750 members there are many of

[web2py] Re: optgroup support

2010-04-20 Thread Iceberg
Massimo's answer makes sense but does not entirely solve the problem. Using SELECT(...) instead of TAG.SELECT(...) in my previous sample code, does not render proper html output. There are two unnecessary blank option with wrong value. I guess SELECT(...) need to be fixed to support

[web2py] Re: optgroup support

2010-04-20 Thread mdipierro
Now I see the problem: do this class MYSELECT(SELECT): def _fixup(self): pass and use MYSELECT On Apr 20, 10:41 pm, Iceberg iceb...@21cn.com wrote: Massimo's answer makes sense but does not entirely solve the problem. Using SELECT(...) instead of TAG.SELECT(...) in my previous sample