[web2py] Re: duplicate ids on using auth.login and auth.register forms on same page

2010-05-12 Thread Rohan
i am using latest version 1.77.3 (2010-04-20 02:48:54) On May 12, 8:29 pm, mdipierro wrote: > This was fixed. What version of web2py are you using? > > On May 12, 5:51 am, Rohan wrote: > > > > >  I am using auth.login and auth.register forms on a single page and it > > is resulting in duplicate

[web2py] Re: duplicate ids on using auth.login and auth.register forms on same page

2010-05-12 Thread Rohan
i am using latest version 1.77.3 (2010-04-20 02:48:54) On May 12, 8:29 pm, mdipierro wrote: > This was fixed. What version of web2py are you using? > > On May 12, 5:51 am, Rohan wrote: > > > > >  I am using auth.login and auth.register forms on a single page and it > > is resulting in duplicate

[web2py] Re: ORM-like DAL

2010-05-12 Thread vihang
Maybe we could inherit in some way, but I need to inherit a bunch. Hence it does not help. On May 12, 8:08 pm, Thadeus Burgess wrote: > VirtualFields? > > -- > Thadeus > > On Tue, May 11, 2010 at 11:59 PM, vihang wrote: > > Some of the apps I am working currently are much more easy to build if >

[web2py] Re: ORM-like DAL

2010-05-12 Thread vihang
Cannot inherit virtualfields On May 12, 8:08 pm, Thadeus Burgess wrote: > VirtualFields? > > -- > Thadeus > > On Tue, May 11, 2010 at 11:59 PM, vihang wrote: > > Some of the apps I am working currently are much more easy to build if > > the models can be defined as a class with methods that act

[web2py] Django GenericForeignKey

2010-05-12 Thread vihang
Hello, would anyone know how would one implement GenericForeignKey using DAL?? Thanks Vihang

[web2py] Re: amfast rtmp example

2010-05-12 Thread Dane
Did you see the example of producer/consumer messaging on GAE? That's killer. On May 11, 12:26 am, mdipierro wrote: > you can already use pyqmf with web2py. I am not sure about rtmp. It is > not a protocol that should be encouraged. http already provide range > requests/partial content for stream

[web2py] Re: Routes.py on GAE

2010-05-12 Thread Dane
Looks like same problem I've been having. On May 10, 5:23 pm, Chris S wrote: > Does routes.py work on GAE?  I've recently deployed an app which used > the 5-line routes.py from the book for routing robots.txt and > favicon.icon.  I just wanted to get rid of that 100% error rate on > those two fil

[web2py] Re: jquery libraries

2010-05-12 Thread MaxDoesPython
When in a datepicker cell without opening the calendar you can enter + / - to increment or decrement the date. My application is using slickgrid for data entry, and there will be date columns that on adding a newrow to the grid will default to previous row, and in some cases the user may want to si

[web2py] Re: Why not session['key'] ?

2010-05-12 Thread mdipierro
You can create it in the view in web2py. It is not a good idea. It would not be visible in the model and controller until reload. On May 12, 11:20 pm, ionel wrote: > Yes, you are right! I was creating the session variable in the View, > not in the Controller. > Oh, poor me! This is my ASP backgro

[web2py] Re: Why not session['key'] ?

2010-05-12 Thread ionel
Yes, you are right! I was creating the session variable in the View, not in the Controller. Oh, poor me! This is my ASP background. There I can create a session variable anywhere. Thanks. ionel On May 13, 12:02 am, Thadeus Burgess wrote: > session['fav_color'] = "blue" works just fine. > > sess

[web2py] Re: Problem with IS_URL

2010-05-12 Thread mdipierro
They and synonymous but IS_EMPTY_OR is the newer syntax, more coherent. On May 12, 11:05 pm, weheh wrote: > OK, I'm seeing IS_EMPTY_OR in the online doc. Sorry, I've been away > from my desk for a few weeks. Is IS_NULL_OR deprecated? (Or does it > depend on what the meaning of IS is? ;^) > > On M

[web2py] Re: Problem with IS_URL

2010-05-12 Thread weheh
OK, I'm seeing IS_EMPTY_OR in the online doc. Sorry, I've been away from my desk for a few weeks. Is IS_NULL_OR deprecated? (Or does it depend on what the meaning of IS is? ;^) On May 13, 12:00 am, weheh wrote: > Jonathan: Is this something new? Isn't this the way to do it? > > IS_NULL_OR(IS_URL(

[web2py] Re: Auth not showing all my custome feilds...

2010-05-12 Thread mdipierro
Not sure this should have ever worked. It needs This: self.settings.table_user = db.users should be: self.settings.table_user_name = 'users' Honestly I have not tested much what happens if you rename the auth_user table. Please let us know if you encouter ther problems. On May 12, 10:19 pm, Jas

Re: [web2py] Re: Why not session['key'] ?

2010-05-12 Thread Thadeus Burgess
session['fav_color'] = "blue" works just fine. session is just a gluon/storage.Storage() class. which is a subclass of "dict" and it only provides an extra method to give you the attribute access to make things easier. Otherwise works exactly like any other python dictionary. You can use the sess

[web2py] Re: Problem with IS_URL

2010-05-12 Thread weheh
Jonathan: Is this something new? Isn't this the way to do it? IS_NULL_OR(IS_URL())

[web2py] Re: Why not session['key'] ?

2010-05-12 Thread ionel
Ok, I understand. I create a session variable with session.my_var = "some content" but not with session['some_id'] = "some content" (web2py will raise an exception if the session variable does not exists), and I get the content with another_var = session.my_var or another_var = session['my_var']

[web2py] Re: Catch and replace vars

2010-05-12 Thread Iceberg
As I said at the end of my previous post: "Of course the latter case should have better approach. Here I am just demostrating when and when not to use Field(..., compute=...) " The point here is I wanna figure out the scenario for all those not-so- obvious parameters of Field(...), such as compute

[web2py] Re: Routes.py on GAE

2010-05-12 Thread Richard
I have a GAE app that successfully uses routes.py, though it was with an older version of web2py. On May 11, 7:23 am, Chris S wrote: > Does routes.py work on GAE?  I've recently deployed an app which used > the 5-line routes.py from the book for routing robots.txt and > favicon.icon.  I just wan

[web2py] Re: Review my web2py app: Radbox.me

2010-05-12 Thread JorgeRpo
yeah bookmarklets are known for like 12 years or so, now. On May 12, 11:19 am, Adi wrote: > Its called a bookmarklet and I believe it was popularized by blogs > like Wordpress and Tumblr - by clicking their bookmarklet you can > create a new post for example. We faced a lot of challenge in trying

[web2py] Re: Review my web2py app: Radbox.me

2010-05-12 Thread JorgeRpo
yeah On May 12, 11:19 am, Adi wrote: > Its called a bookmarklet and I believe it was popularized by blogs > like Wordpress and Tumblr - by clicking their bookmarklet you can > create a new post for example. We faced a lot of challenge in trying > to extract embedded video from the server side -

[web2py] Re: Running a script with Google App Engine

2010-05-12 Thread howesc
Massimo, yes there are a ton of issues in my example - but it was a run-one- time upgrade script that i monitored for completionand at the same time was not overly concerned if a couple of records fell through the cracks. all valid and correct points though for building something that runs re

Re: [web2py] hello

2010-05-12 Thread Álvaro Justen
On Tue, May 11, 2010 at 18:39, ciprian wrote: > i used this script to install web2py: > http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh > > so i have everything in www-data > and everything works fine. > > now..what do i have to install to make php work on the same folder? or > what

[web2py] Re: hello

2010-05-12 Thread ciprian
anyone please? any tip ? On May 11, 5:39 pm, ciprian wrote: > i used this script to install > web2py:http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh > > so i have everything in www-data > and everything works fine. > > now..what do i have to install to make php work on the same f

Re: [web2py] Re: SSL Error on windows

2010-05-12 Thread Timothy Farrell
This is the error that Jon Lundell's guys found already. Note that it's trying to connect to port 8000 as HTTP. Connect as HTTPS and it should work. Also try upgrading to trunk, that should issue a "400 Bad Request". -tim On 5/12/2010 1:32 PM, mdipierro wrote: yes please On May 12, 1:16

[web2py] Re: Routes.py on GAE

2010-05-12 Thread mdipierro
On May 12, 1:36 pm, Chris S wrote: > This only errors on the live.  I've been running on the development > server with no problem. > > Do I simply copy trunk over my working copy and deploy? yes > Where do I find the extra error information?  Does it just show up in > the error log same as abo

[web2py] Re: Routes.py on GAE

2010-05-12 Thread Chris S
This only errors on the live. I've been running on the development server with no problem. Do I simply copy trunk over my working copy and deploy? Where do I find the extra error information? Does it just show up in the error log same as above? I'll try and get this updated in a the next couple

[web2py] Re: jquery libraries

2010-05-12 Thread mdipierro
datepicker only depends on jquery base. What features did you add? On May 12, 1:23 pm, MaxDoesPython wrote: > I have added a feature to jquery datepicker and need to integrate it > into the js libraries that are loaded, so need to know what is > included in jquery-ui.custom. I will be using lates

[web2py] Re: SSL Error on windows

2010-05-12 Thread mdipierro
yes please On May 12, 1:16 pm, Miguel Lopes wrote: > On Tue, May 11, 2010 at 9:41 PM, mr.freeze wrote: > > Do you have the win32 extension for Python installed? > >http://sourceforge.net/projects/pywin32/ > > > On May 11, 3:33 pm, Miguel Lopes wrote: > >  > On Tue, May 11, 2010 at 7:54 PM, mdi

[web2py] jquery libraries

2010-05-12 Thread MaxDoesPython
I have added a feature to jquery datepicker and need to integrate it into the js libraries that are loaded, so need to know what is included in jquery-ui.custom. I will be using latest jquery libs so can you tell me if I need to also get corresponding libs for rule and event.drag.custom and any oth

Re: [web2py] Re: SSL Error on windows

2010-05-12 Thread Miguel Lopes
On Tue, May 11, 2010 at 9:41 PM, mr.freeze wrote: > Do you have the win32 extension for Python installed? > http://sourceforge.net/projects/pywin32/ > > On May 11, 3:33 pm, Miguel Lopes wrote: > > On Tue, May 11, 2010 at 7:54 PM, mdipierro > wrote: > > > This is concerns me more: > > > > > WAR

[web2py] Re: web2py - shared host issue

2010-05-12 Thread mdipierro
A user Shu-I Huang has reported a problem with modpythonhandler.py and proposed the following fix: if 'SCRIPT_NAME' in options: # Override SCRIPT_NAME and PATH_INFO if requested. env['SCRIPT_NAME'] = options['SCRIPT_NAME'] req.uri = env['SCRIPT_NAME']# <

Re: [web2py] web2py - shared host issue

2010-05-12 Thread Mauricio Darocha
Hi Alvaro. Thank you for your prompt answer, but I'm still having issues with it. I don't have access to any configuration file. So I'm using .htaccess. .htaccess = SetHandler python-program PythonHandler web2py_modpython PythonDebug Off PythonPath "['/home/mauricio/public_html/'] + sys.path" we

Re: [web2py] web2py - shared host issue

2010-05-12 Thread Álvaro Justen
On Wed, May 12, 2010 at 13:23, Mauricio wrote: > Hi Everyone! > > First of all, I would like to congratulate Massimo Di Pierro. If you > can read this, you are the man! I loved web2py. > > Unfortunately, I'm a beginner from Brazil and I'm having a hard time > to set it up in a shared host. > > If

[web2py] web2py - shared host issue

2010-05-12 Thread Mauricio
Hi Everyone! First of all, I would like to congratulate Massimo Di Pierro. If you can read this, you are the man! I loved web2py. Unfortunately, I'm a beginner from Brazil and I'm having a hard time to set it up in a shared host. If someone can help me out, I greatly appreciate. I made some res

[web2py] grooverwiki revisited

2010-05-12 Thread blye
the grooverwiki appliance has been subject of previous discussion. My install is still not working, although it has improved (allows wiki pages to be entered under admin) when I applied a change suggested in the thread. I think I have isolated the problem to the following section: try:

[web2py] Re: Review my web2py app: Radbox.me

2010-05-12 Thread Adi
Its called a bookmarklet and I believe it was popularized by blogs like Wordpress and Tumblr - by clicking their bookmarklet you can create a new post for example. We faced a lot of challenge in trying to extract embedded video from the server side - because various sites use very different mechani

[web2py] Re: Review my web2py app: Radbox.me

2010-05-12 Thread blackthorne
I think those are called "bookmarklets" On May 12, 4:45 pm, mdipierro wrote: > I did not know that you can put  javascript in a bookmark instead of > simply a URL and when you click on the bookmark the JS code is > executed on the page you are currently visiting. > > On May 12, 10:42 am, Adi wro

[web2py] Re: ToscaWidgets

2010-05-12 Thread mdipierro
I do not think anybody did and here is why: ToscaWidget example import tw.forms as twf movie_form = twf.TableForm('movie_form', action='save_movie', children=[ twf.HiddenField('id'), twf.TextField('title'), twf.TextField('year', size=4), twf.CalendarDatePicker('release_date'),

Re: [web2py] Looping in the browser?

2010-05-12 Thread Andrew Evans
ty this is exactly what I need ty very much

[web2py] Re: Review my web2py app: Radbox.me

2010-05-12 Thread mdipierro
I did not know that you can put javascript in a bookmark instead of simply a URL and when you click on the bookmark the JS code is executed on the page you are currently visiting. On May 12, 10:42 am, Adi wrote: > We don't intend to open source the application. We're flirting with > the idea of

[web2py] Re: Review my web2py app: Radbox.me

2010-05-12 Thread Adi
We don't intend to open source the application. We're flirting with the idea of putting up some of these features as slices/recipes/ plugins for easy reuse by the community. This might take a while though. If you need something specific I'll be happy to copy-paste the code and walk you over the imp

[web2py] Re: Video on How to deploy web2py on VPS.net

2010-05-12 Thread mdipierro
http://vimeo.com/10377947 On May 12, 9:47 am, GoldenTiger wrote: > Hi Massimo, I am Juan, from Spain. > > Some months ago, I read a message from you like that: > > "I use vps.net and I cannot be happier. I will make a video on how to > deploy web2py there" > > I am very interested in that video.

[web2py] Re: Review my web2py app: Radbox.me

2010-05-12 Thread Adi
We have not tested much with Opera - there may be some issues specific to the browser. I added the same video to my account (I use Chrome on Ubuntu 9.10) and I could add it: http://radbox.me/watch/video/502 I'll test it on Opera some time. Perhaps try in a webkit-based browser (Firefox/Chrome/Safa

[web2py] Video on How to deploy web2py on VPS.net

2010-05-12 Thread GoldenTiger
Hi Massimo, I am Juan, from Spain. Some months ago, I read a message from you like that: "I use vps.net and I cannot be happier. I will make a video on how to deploy web2py there" I am very interested in that video. Did you make that video? Thanks a lot (PD: Web2Py is my favourite framework i

[web2py] Re: ToscaWidgets

2010-05-12 Thread stefaan
> Nobody know Toscawidgets and have try it with web2py ? Hello Lannick, Given the lack of answers it is safe to assume that no-one has tried it with web2py... Best regards, Stefaan.

[web2py] Re: Catch and replace vars

2010-05-12 Thread mdipierro
Why would you want web2py to auto-compute a field when you have asked the user for its value? unless you want the computation BEFORE you prompt the user for a value. But in this case it cannot depend on other fields because they have not been insrted yet. On May 12, 9:30 am, Iceberg wrote: > So i

[web2py] Re: session configuration

2010-05-12 Thread mdipierro
On May 12, 8:59 am, Śląski wrote: > The only thinks I found is: > For Auth operatons -> set  auth.settings.expiration > For all session -> set   response.cookies[response.session_id_name] > ['expires']= > For permanently delete session -> >           auth.logout(); os.remove(response.session_filen

[web2py] Re: duplicate ids on using auth.login and auth.register forms on same page

2010-05-12 Thread mdipierro
This was fixed. What version of web2py are you using? On May 12, 5:51 am, Rohan wrote: >  I am using auth.login and auth.register forms on a single page and it > is resulting in duplicate ids for email and password rows. > similar discussions were going on this > threadhttp://groups.google.com/g

Re: [web2py] Re: ORM-like DAL

2010-05-12 Thread Thadeus Burgess
VirtualFields? -- Thadeus On Tue, May 11, 2010 at 11:59 PM, vihang wrote: > Some of the apps I am working currently are much more easy to build if > the models can be defined as a class with methods that act on them. > > > On May 12, 5:51 am, Álvaro Justen wrote: >> On Tue, May 11, 2010 at

Re: [web2py] Re: New to web app development -- is web2py a good choice

2010-05-12 Thread Thadeus Burgess
We need tutorials, a beginners, intermediate, and expert level on web2py apps, each going into different details of web2py step by step line by line. -- Thadeus On Wed, May 12, 2010 at 4:17 AM, cjrh wrote: > On May 12, 6:11 am, Richard wrote: >> The book was a huge improvement but there i

[web2py] Re: Do you use web2py in your company?

2010-05-12 Thread drelyn86
United States. They are a 3rd party distribution and logistics company. On May 11, 8:39 pm, mdipierro wrote: > Glad to hear about this. > Can you tell us in which country and in which field your previous > employer was operating? > > On May 11, 7:34 pm, drelyn86 wrote: > > > > > With my previous

[web2py] Re: Catch and replace vars

2010-05-12 Thread Iceberg
So if I understand it correctly, the Field(..., compute=...) is only suitable for defining a field which is not supposed to be showed in SQLFORM(), neither supposed to be filled by human. For example, this case can use Field(..., compute=...). db.define_table('circles', Field('radius

[web2py] Re: Do you use web2py in your company?

2010-05-12 Thread drelyn86
United States On May 11, 8:39 pm, mdipierro wrote: > Glad to hear about this. > Can you tell us in which country and in which field your previous > employer was operating? > > On May 11, 7:34 pm, drelyn86 wrote: > > > > > With my previous employer, I used web2py to build a few basic > > applicat

[web2py] Re: Review my web2py app: Radbox.me

2010-05-12 Thread blackthorne
great app! congratulations! Very good work! You mention a set of features which is often asked in this group. Is your app open source so that it can help answering them? If yes, would you please tell us where to find it? Thank you, Best Regards On May 12, 1:25 pm, selecta wrote: > I cannot get

[web2py] Re: session configuration

2010-05-12 Thread Śląski
The only thinks I found is: For Auth operatons -> set auth.settings.expiration For all session -> set response.cookies[response.session_id_name] ['expires']= For permanently delete session -> auth.logout(); os.remove(response.session_filename); session=None; del res

Re: [web2py] Problem with IS_URL

2010-05-12 Thread Jonathan Lundell
On May 12, 2010, at 6:09 AM, Sverre wrote: > I have a field in DB to store URLs. But for the user this is optional. > So the user should put in nothing or a URL. But if I use IS_URL in the > database specification this field is demands always an URL. Is there a > solution? IS_EMPTY_OR(IS_URL())

[web2py] Re: Question about implementation of document storage

2010-05-12 Thread Sverre
Yes, you are right. The document is deleted. Thank you for the answer. My question was a little bit stupid, but I had my code was not ready. On 12 Mai, 15:05, mdipierro wrote: > The old one should be deleted. Please try it and let is know if you > have any problem with it. > > On May 12, 4:25 am

[web2py] Problem with IS_URL

2010-05-12 Thread Sverre
I have a field in DB to store URLs. But for the user this is optional. So the user should put in nothing or a URL. But if I use IS_URL in the database specification this field is demands always an URL. Is there a solution? Thanks in advance

[web2py] Re: Question about implementation of document storage

2010-05-12 Thread mdipierro
The old one should be deleted. Please try it and let is know if you have any problem with it. On May 12, 4:25 am, Sverre wrote: > I have an upload field with the attribute autodelete=true. But what > will happen to a document fiel if I upload a new document instead of > delete the old one and the

[web2py] Re: session configuration

2010-05-12 Thread mdipierro
sessions themselves never expires in web2py. Auth does. You can change the expiration-time in the session cookie and you can change the auth.expiration time on a per user basis. Let me look more into this is and repost. On May 12, 3:30 am, Śląski wrote: > Hi, >   Is it possible to configure sessi

[web2py] Re: Question about sequences

2010-05-12 Thread mdipierro
postgresql http://www.postgresql.org/docs/8.1/interactive/datatype.html serial 4 bytes autoincrementing integer1 to 2147483647 We made sure they all start at 1. On May 12, 1:38 am, Sverre wrote: > In the database administration a query to select all is (id>0). But > some databases like

[web2py] Re: Review my web2py app: Radbox.me

2010-05-12 Thread selecta
I cannot get I to work I went to http://vimeo.com/10149605 pressed my bookmarklet, it said saving but I cannot find any videos on my radbox page? did I do something wrong? I am using opera 10.53 Internal on ubuntu 10.04 On May 11, 11:40 am, Adi wrote: > I saw some discussions flying around about

[web2py] duplicate ids on using auth.login and auth.register forms on same page

2010-05-12 Thread Rohan
I am using auth.login and auth.register forms on a single page and it is resulting in duplicate ids for email and password rows. similar discussions were going on this thread http://groups.google.com/group/web2py/browse_frm/thread/e43c1203d8749630 Is there any update on this?

[web2py] Re: SQLFORM generating duplicate ids in HTML

2010-05-12 Thread Rohan
Any update on this? I am using auth.login and auth.register forms on a single page and it is resulting in duplicate ids for email and password rows. Original thread - http://groups.google.com/group/web2py/browse_thread/thread/e43c1203d8749630?tvc=2

[web2py] Question about implementation of document storage

2010-05-12 Thread Sverre
I have an upload field with the attribute autodelete=true. But what will happen to a document fiel if I upload a new document instead of delete the old one and then uploading a new document?

[web2py] Re: New to web app development -- is web2py a good choice

2010-05-12 Thread cjrh
On May 12, 6:11 am, Richard wrote: > The book was a huge improvement but there is certainly more to be > done. Unfortunately this kind of work is not fun so happens slowly. I am happy to volunteer help for documentation. I enjoy improving documentation. > Would it be worth migrating useful cont

[web2py] Re: Using LOAD from a controller?

2010-05-12 Thread selecta
Typo, it should be cursor:pointer; use this css style rather and href="#" so the page will not jump when you click the "link" On May 12, 10:42 am, selecta wrote: > or you could do > > onclick="web2py_component('{{=URL(request.application,'todo','todo_form')}}­­', > 'mytarget');">New form > >

[web2py] Re: Using LOAD from a controller?

2010-05-12 Thread selecta
or you could do New form On May 12, 10:38 am, selecta wrote: > onclick="web2py_component('{{=URL(request.application,'todo','todo_form')}}­', > 'mytarget');">New todo > > > no need for def new(): > > On May 11, 10:16 pm, Keith Edmunds wrote: > > > > > I was to display a form using Ajax in re

[web2py] Re: Using LOAD from a controller?

2010-05-12 Thread selecta
New todo no need for def new(): On May 11, 10:16 pm, Keith Edmunds wrote: > I was to display a form using Ajax in response to a click on a link on the > page. I have tried putting this in the view: > > New todo > > > with this in the controller: > > def new(): > >     return = LOAD('todo','tod

[web2py] session configuration

2010-05-12 Thread Śląski
Hi, Is it possible to configure session in some clear way? Different than changing some hard coded values. I just want to customize sessions for different users (for example user A has 5 min session expiration time, use B 30 min, user C has no session). The only solution I see now is to add a fu