[web2py] Re: * web2py's Brand *

2010-03-05 Thread weheh
My 2 cents: - The road to success for web2py is more / better doc and more / better apps, whether private or public. - John Heenan is correct in stating that web2py will only be successful if, long term, there is support for its development and enhancement by more than Massimo. I believe there is

[web2py] Re: Problem with postgresql like query? [CLOSED]

2010-03-05 Thread weheh
On Mar 5, 9:46 pm, weheh richard_gor...@verizon.net wrote: Hi Mr. Freeze, this seems to work, now. Thanks! -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from

[web2py] ticket FLOAT8

2010-03-04 Thread weheh
This didn't used to issue a ticket until today. The only change I made was to add a new table to my db. Any idea what might be causing this? The db field is this: db.Field('offset','double',requires=IS_FLOAT_IN_RANGE(-12.0,12.0)), Traceback (most recent call last): File gluon/restricted.py,

[web2py] Re: ticket FLOAT8 [CLOSED]

2010-03-04 Thread weheh
urg. thanks. I just moved from MySQL to postgresql, so that must be why it's being flagged, now. On Mar 4, 11:46 pm, mdipierro mdipie...@cs.depaul.edu wrote: 'offset' is a keyword and cannot be used as a field name On Mar 4, 10:34 pm, weheh richard_gor...@verizon.net wrote: This didn't used

[web2py] jQuery autocomplete -- need simple example using url

2010-02-28 Thread weheh
Anybody used jQuery autocomplete plugin with web2py? I am trying to get it to work with a url (localhost first, then my server), but can't seem to get it to run. If you wouldn't mind sharing a simple example it would be appreciated. Thanks. -- You received this message because you are subscribed

[web2py] Re: jQuery autocomplete -- need simple example using url [CLOSED]

2010-02-28 Thread weheh
it. Results are sweet. Thanks again. Mr. Freeze puts another one on ice! Yeah! On Feb 28, 11:01 pm, mr.freeze nat...@freezable.com wrote: Here's a slice that may work for you (this isn't the pengoworks plugin):http://www.web2pyslices.com/main/slices/take_slice/66 On Feb 28, 8:47 pm, weheh

[web2py] Re: Multiple Select Widget

2010-02-23 Thread weheh
+1 on the need for the many 2 many relationship. I plan an admin interface where admin gets to assign users to groups so many to many is key functionality for me. The plugin looks handy. I will have to investigate further. On Feb 23, 1:40 am, mdipierro mdipie...@cs.depaul.edu wrote: I do not

[web2py] question about uploads

2010-02-23 Thread weheh
I used to have a db structure with an upload field in a table, xyz. I uploaded some images that are now under uploads/xyz.picture.cypher. Later, I decided to drop the upload field from table xyz and create a totally new table abc that had an equivalent picture field. the sql.log file shows the

[web2py] Re: congratulations for documentation

2010-02-22 Thread weheh
Well, of course, that makes sense. Now I see the login area for editors. Very nice. On Feb 21, 4:04 pm, mdipierro mdipie...@cs.depaul.edu wrote: I thought the point was that you'd'd be making the updates. ;-) On Feb 21, 11:40 am, weheh richard_gor...@verizon.net wrote: Massimo, wonderful

[web2py] Re: congratulations for documentation

2010-02-21 Thread weheh
Massimo, wonderful to have the book online. I can't say that strongly enough. I think it will help grow the community by leaps and bounds. How frequently do you expect to be making updates to the online book? -- You received this message because you are subscribed to the Google Groups

[web2py] trying to set default value in form

2010-02-20 Thread weheh
I'm trying to set the default value of a form ... something like this: form=FORM(T('Title: '), INPUT(_name='title',default=session.data['title']), INPUT(_type='submit',_value='Set')) But when the form pops up in the view, the title field is blank, even though the

[web2py] Re: trying to set default value in form

2010-02-20 Thread weheh
Thanks DenesL, I had tried that already and it doesn't really work properly. If I fill in the form repeatedly, it gets out of synch. Next, I'm going to try form.accepts(...keepvalues=True). I'll let you know how it went. -- You received this message because you are subscribed to the Google

[web2py] Re: trying to set default value in form [SOLVED]

2010-02-20 Thread weheh
Yup, form.accepts(... keepvalues=True ...) works like a charm! Case closed. On Feb 20, 8:22 pm, weheh richard_gor...@verizon.net wrote: Thanks DenesL, I had tried that already and it doesn't really work properly. If I fill in the form repeatedly, it gets out of synch. Next, I'm going to try

[web2py] Re: trying to set default value in form [SOLVED]

2010-02-20 Thread weheh
OK, actually, I really need both: INPUT(_name='title',_value=session.data['title']), ... and form.accepts(... keepvalues=True ...) Now that combo really works like a charm. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group,

[web2py] autocompletion

2010-02-20 Thread weheh
I'm in the middle of doing my first autocompletion. I've read and reread doc v2 example. But I've also gone to the jQuery site and looked at their example. Q1) Does anyone have any experience with both and can you recommend which method to use? The doc v2 example sure looks a lot more complicated

[web2py] csv import

2010-02-15 Thread weheh
During csv import via the admin interface, do I need to have all the fields from the db table present in the csv input file, or can I have just a few of the columns? Also, do validators get run during import? I'm trying to import a csv file from a legacy database but it's not being read in and I'm

[web2py] how to disable field access if not authorized

2010-02-07 Thread weheh
I'm using crud and want to disable access to certain fields if user is not a member of the admin group. For instance, content can only be approved by admin. I want to register the id of the user who approved the content, too. So I'd like to say: if not

[web2py] Re: how to disable field access if not authorized

2010-02-07 Thread weheh
It's possible, but according to MDB, that would result in crud.update turning into crud.create. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send

[web2py] Re: Login form

2010-02-07 Thread weheh
On item 2, you should be using css. give the string class a width in ems or %. Stylize the font by setting font-size: 85%; or you can set it to a certain number of ems or pt. On Feb 5, 12:20 pm, sveinh sve...@gmail.com wrote: Thanks Massimo Your hint pointed me in the right direction.  It had

[web2py] Re: how to disable field access if not authorized

2010-02-07 Thread weheh
they do not if they are not writable and not readable. On Feb 7, 2:02 am, weheh richard_gor...@verizon.net wrote: I'm using crud and want to disable access to certain fields if user is not a member of the admin group. For instance, content can only be approved by admin. I want to register

[web2py] Re: how to disable field access if not authorized

2010-02-07 Thread weheh
. Most likely they do not if they are not writable and not readable. On Feb 7, 2:02 am, weheh richard_gor...@verizon.net wrote: I'm using crud and want to disable access to certain fields if user is not a member of the admin group. For instance, content can only be approved by admin. I

[web2py] crud links to default, not the calling controller

2010-02-07 Thread weheh
I'm building an admin interface of my own, which mostly looks like the web2py admin interface. Therefore, in my admin controller, I have @auth.requires_membership('Admin') def groups(): form=crud.update(db.auth_group,request.args(2),deletable=True) groups=crud.select(db.auth_group) return

[web2py] Re: crud links to default, not the calling controller [SOLVED]

2010-02-07 Thread weheh
Right on Mr. Freeze. Works. Thx. On Feb 7, 3:05 pm, mr.freeze nat...@freezable.com wrote: I think you need to set crud.settings.controller = 'admin' On Feb 7, 2:01 pm, weheh richard_gor...@verizon.net wrote: I'm building an admin interface of my own, which mostly looks like the web2py

[web2py] Can crud update more than one table at a time?

2010-02-07 Thread weheh
Can I do this? form=crud.update(db.table1,db.table2,db.table3,request.args(2)) or is SQLFORM.factory the only way to do that? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To

[web2py] multi-site architecture

2010-02-06 Thread weheh
How should one architect a web2py site that serves multiple domains with different apps? Should I have one web2py instance with multiple apps, or multiple web2py instances, each with one app? Is routes.py the right way to direct traffic to the right app in the case of one web2py instance? (I know

[web2py] Why is first element in IS_IN_SET pull-down always blank?

2010-02-06 Thread weheh
In a crud form (or other form) where I have a field declared as a string that requires=IS_IN_SET(['A','B','C']), the first item in the automatically-generated pull-down for that enumerated field is a blank. Why is that, if there is no blank in my set, and especially, since a blank setting on that

[web2py] need help with routes regex

2010-02-06 Thread weheh
I'm serving up a bunch of pages via a crm-like function that makes for url's that look like this: http://mydomain.com/myapp/page/index/page_name and I want to reduce this to: http://mydomain.com/page_name Anybody know a simple routes.py that'll do that? I've tried a bunch of things but I'm

[web2py] Re: cancel button

2010-02-06 Thread weheh
Is it reasonable to expect this to work on crud forms, as well? I would think so, but I'm having difficulty getting it to work. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To

[web2py] Re: Why is first element in IS_IN_SET pull-down always blank?

2010-02-06 Thread weheh
Thanks, Iceberg. Sorry, I utterly missed that thread. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] Re: immediate web2py job opening

2010-02-06 Thread weheh
@villas: lol. @ Jason B: the team will be as small as possible so there will be more models to go around. On Feb 6, 7:38 am, villas villa...@gmail.com wrote: On Feb 3, 9:24 am, Jason Brower encomp...@gmail.com wrote: Sounds fun Yes, you can just imagine the banter... Now you finish off the

[web2py] function that lists all members of a group

2010-02-06 Thread weheh
Is there a built-in function that will list all members of a group, or do I need to write a query to do that? Seems like such a function should exist, but I can't find it in the doc. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this

[web2py] Re: Why is first element in IS_IN_SET pull-down always blank? [SOLVED]

2010-02-06 Thread weheh
Thanks, Iceberg. Sorry, I utterly missed that thread. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] Re: proposal for online documentation

2010-02-05 Thread weheh
I can't comment technically on the idea of converting docstring to wiki pages, although it sounds good. The problem with doc that I think needs solving, however, is that of not being able to easily find items in the doc. The v2 doc index is missing a ton of links -- really important thinks like

[web2py] Re: trying to get email to work

2010-02-03 Thread weheh
...@cs.depaul.edu wrote: Can you try? mail.settings.server='localhost:25' On Feb 3, 12:02 am, weheh richard_gor...@verizon.net wrote: I'm trying to get the email module to work. In my model I say: #model mail.settings.server='localhost'            # your SMTP server

[web2py] Re: trying to get email to work

2010-02-03 Thread weheh
. I tried that with web2py but it didn't work. On Feb 3, 10:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: You need a background process and database queue of tasks for this to work well. On Feb 3, 8:50 pm, weheh richard_gor...@verizon.net wrote: I tried the mail.settings.server

[web2py] Re: trying to get email to work

2010-02-03 Thread weheh
Yes, I have implemented queuing mechanisms. The issue here is that web2py isn't sending any email. In tmy example above, I'm actually sending only a single email ... to me ... for testing purposes, not production. Bottom line, I'm not getting any email and none is being sent. I looked at the email

[web2py] immediate web2py job opening

2010-02-02 Thread weheh
I have an immediate opening for a web2py-saavy user interface designer with proximity to the Flatiron District in NYC. You will be working with a very cool bunch of guys and there will be many sightings of movie stars and extremely beautiful women and men. If you're interested, email me privately

[web2py] trying to get email to work

2010-02-02 Thread weheh
I'm trying to get the email module to work. In my model I say: #model mail.settings.server='localhost'# your SMTP server mail.settings.login=None# your credentials mail.settings.sender='no-re...@foobar.com' # your email #controller admin.py def email_blast():

[web2py] Re: immediate web2py job opening

2010-02-02 Thread weheh
I just want to note that my post is not an exaggeration. The enterprise which I represent is routinely visited by top supermodels and movie stars and is in the same building as a top modeling agency. Not that that would make any difference to a serious web2py coder, now would it? -- You received

[web2py] Re: Code that used to work now fails in 1.74.8 -- Part 2 [SOLVED]

2010-02-01 Thread weheh
Thanks, that did the trick. All fixed. On Feb 1, 12:33 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, same problem as above. On Jan 31, 10:29 pm, weheh richard_gor...@verizon.net wrote: After I dropped the assignment__tmp column, I still got a ticket from web2py and this time it's

[web2py] Re: Yet another installation problem

2010-02-01 Thread weheh
:17 PM, weheh richard_gor...@verizon.net wrote: Oh, I forgot to mention that I ran easy_install-2.3 -U hashlib and the OS returned 'easy_install-2.3' is not recognized as an internal or external command, operable program or batch file. -- You received this message because you

[web2py] Re: How can I change database records together?

2010-02-01 Thread weheh
Try this: db.defint_table(... Field('previous_planet','reference planet'), ...) Then after the table definition: db.planet.previous_planet.requires=IS_NULL_OR(IS_IN_DB (db.db.planet.id)) On Feb 1, 7:12 am, Carl carl.ro...@gmail.com wrote: If I want a planet record to point to another planet

[web2py] Yet another installation problem

2010-01-31 Thread weheh
I'm trying to install web2py 1.74.8 from source on my windows server. When I try to run python web2py.py I get the following traceback: Traceback (most recent call last): File web2py.py line 16, in ? import gluon.import_all File D:\web2py\gluon\import_all.py, lion 104, In ? raise

[web2py] Re: Yet another installation problem

2010-01-31 Thread weheh
Oh, I forgot to mention that I ran easy_install-2.3 -U hashlib and the OS returned 'easy_install-2.3' is not recognized as an internal or external command, operable program or batch file. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post

[web2py] Re: jquery tools

2010-01-31 Thread weheh
Sounds great! Do you have an example online that we could look at? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] How to change field name without losing data?

2010-01-31 Thread weheh
Is there an easy way to rename a field without losing all the data behind it? I'm not sure I want to go through the trouble of writing all the data out, reformatting, and then reading it back in. -- You received this message because you are subscribed to the Google Groups web2py-users group. To

[web2py] Code that used to work now fails on 1.74.8

2010-01-31 Thread weheh
Traceback (most recent call last): File C:\web2py\gluon \restricted.py, line 173, in restricted exec ccode in environment File C:/web2py/applications/myapp/controllers/admin.py, line 962, in module File C:\web2py\gluon\globals.py, line 96, in lambda self._caller = lambda f: f() File

[web2py] Re: How to change field name without losing data?

2010-01-31 Thread weheh
But of course. I'm getting so used to working exclusively in web2py I forgot I knew MySQL ;^) Should I assume that if I change a field in my model, too, so that it corresponds to this new field name that the two will become one? -- You received this message because you are subscribed to the

[web2py] Re: jquery tools

2010-01-31 Thread weheh
Motto favoloso, MDP. Genio. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit

[web2py] Code that used to work now fails in 1.74.8

2010-01-31 Thread weheh
Traceback (most recent call last): File C:\web2py\gluon \restricted.py, line 173, in restricted exec ccode in environment File C:/web2py/applications/myapp/controllers/admin.py, line 962, in module File C:\web2py\gluon\globals.py, line 96, in lambda self._caller = lambda f: f() File

[web2py] Re: Code that used to work now fails in 1.74.8

2010-01-31 Thread weheh
OK, I found out what is wrong. I'm using a represent statement that reformats the datetime to be more concise. In the process, the datetime becomes a string. Why this is the case I am still investigating. I have a field 'start'. I do db.mytable.start.represent=lambda value: dts2myhm(value) def

[web2py] Re: Code that used to work now fails in 1.74.8

2010-01-31 Thread weheh
...@cs.depaul.edu wrote: Does you field have a default set as a string instead of a datetime? On Jan 31, 12:42 pm, weheh richard_gor...@verizon.net wrote: OK, I found out what is wrong. I'm using a represent statement that reformats the datetime to be more concise. In the process, the datetime

[web2py] Code that used to work now fails in 1.74.8 -- Part 2

2010-01-31 Thread weheh
OK, so I took the code that runs on my development machine and tried it out on my server. Now, on the server, I get a ticket that I don't get on my development machine: 2.3.4.5.6.7.8.9.10.11. Traceback (most recent call last): File gluon/restricted.py, line 173, in restricted File

[web2py] Re: How to change field name without losing data?

2010-01-31 Thread weheh
Nice. Totally makes sense. I should have thought of that. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] Re: How to change field name without losing data? [SOLVED]

2010-01-31 Thread weheh
Nice. Totally makes sense. I should have thought of that. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] Re: Code that used to work now fails in 1.74.8 -- Part 2

2010-01-31 Thread weheh
Yes, it is my intention to move to postgresql. Unfortunately, I have a lot of legacy data on mySQL that keeps me there for the time being. I don't think it's practical for me to change right at this moment. I'm not sure I know what you're recommending? I have no unwanted tables in my db. At

[web2py] Re: Code that used to work now fails in 1.74.8 -- Part 2

2010-01-31 Thread weheh
you trying to change the type of field assignment. You only run into the problem if you attempted to change the type into an incompatible type. On Jan 31, 2:22 pm, weheh richard_gor...@verizon.net wrote: Yes, it is my intention to move to postgresql. Unfortunately, I have a lot of legacy

[web2py] CMS content upload

2010-01-31 Thread weheh
This is not precisely a web2py question. But there are knowledgeable people here who may know the answer. I'm adding CMS functionality to my site. As it is currently implemented, I have a text field that an admin can type html into and then upload it to the site where it is displayed. My concern

[web2py] Re: Code that used to work now fails in 1.74.8 -- Part 2

2010-01-31 Thread weheh
After I dropped the assignment__tmp column, I still got a ticket from web2py and this time it's complaining about a duplicate column name 'reset_password_key'. But when I look for it in auth_user, I only see one column by that name. Should I drop that one, too? -- You received this message

[web2py] Re: crud delete_record checkbox [RESOLVED]

2010-01-30 Thread weheh
I think form.custom.label['deletable'] should be built in. It is different from other labels in that during a create, it's hidden, whereas during an update, it shows. This should be consistent with the form.custom.deletable boolean field. What do you think Massimo? -- You received this message

[web2py] Re: user profile form

2010-01-30 Thread weheh
I don't really understand why you would require a calss extension to Auth when you can just have a separate table that points to the auth_user table? The problem I know I'm going to run into is how to do a self-submission on an Auth class where two tables are involved. How am I going to deal with

[web2py] Re: auth membership

2010-01-30 Thread weheh
Thanks. Now I see it in the doc. I knew it was there, just couldn't seem to find it late at night. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send

[web2py] Re: auth membership [ SOLVED]

2010-01-30 Thread weheh
Thanks. Now I see it in the doc. I knew it was there, just couldn't seem to find it late at night. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send

[web2py] Re: crud delete_record checkbox [SOLVED]

2010-01-30 Thread weheh
I think form.custom.label['deletable'] should be built in. It is different from other labels in that during a create, it's hidden, whereas during an update, it shows. This should be consistent with the form.custom.deletable boolean field. What do you think Massimo? -- You received this message

[web2py] Re: jquery tools

2010-01-30 Thread weheh
There are some really nice effects in there. I haven't done much research into this kind of stuff, but I sure could use it for my current project. Right now, I'm searching piecemeal through the web for special jquery effects. This is nice because it groups it all in one place. How do you think it

[web2py] Re: user profile form

2010-01-30 Thread weheh
Do you have any suggestion for how to do user the user profile stuff I asked in my question above at 3:56pm? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this

[web2py] Trouble installing web2py 1.74.8

2010-01-30 Thread weheh
I decided to do a clean start and install web2py 1.74.8 from scratch using the following procedure: - First I downloaded, unzipped, and copied web2py_win 1.74.8 to my c: drive - Then I downloaded, unzipped, and copied web2py_src1.74.8 to the c: drive, overwriting whatever common files and folders

[web2py] Re: jquery tools

2010-01-30 Thread weheh
Re Jonathan's comment about needing sortable lists and tables, I +1 the motion. I have done sortable table and it's nice. But what I really need is to re-order a sequence of things. For instance, in a CMS, you would upload images and content for a page and put them under a link. You might have

[web2py] Re: user profile form

2010-01-30 Thread weheh
It is the latter case, so I will create another controller for it. Too bad, but I understand. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email

[web2py] Re: Trouble installing web2py 1.74.8

2010-01-30 Thread weheh
Massimo, I did cd web2py/gluon; python; import wsgiserver; and got a prompt with no error message. The installation is binary with source written over it. I will try a clean install from source only and report back. -- You received this message because you are subscribed to the Google Groups

[web2py] Re: Trouble installing web2py 1.74.8

2010-01-30 Thread weheh
Darn, nevermind. I screwed up the installation ... again. I re- installed from source and now I'm OK. We need something idiot proof, 'cause idiots like me keep sticking their thumb in their eye. On Jan 30, 9:49 pm, weheh richard_gor...@verizon.net wrote: Massimo, I did cd web2py/gluon; python

[web2py] Re: crud newbie question regarding update

2010-01-29 Thread weheh
OK, I see the problem. The .id link created by crud.select points to the default controller. I need it to point to admin. What's the method for informing crud to do that? Obviously, I can do a redirect, but that seems kludgy. Why wouldn't crud.select automatically set the controller to be the same

[web2py] Re: crud newbie question regarding update [ALMOST THERE]

2010-01-29 Thread weheh
On Jan 29, 1:40 pm, weheh richard_gor...@verizon.net wrote: OK, I see the problem. The .id link created by crud.select points to the default controller. I need it to point to admin. What's the method for informing crud to do that? Obviously, I can do a redirect, but that seems kludgy. Why

[web2py] Re: crud newbie question regarding update [ALMOST THERE]

2010-01-29 Thread weheh
OK, I see the problem. The .id link created by crud.select points to the default controller. I need it to point to admin. What's the method for informing crud to do that? Obviously, I can do a redirect, but that seems kludgy. Why wouldn't crud.select automatically set the controller to be the same

[web2py] crud delete_record checkbox

2010-01-29 Thread weheh
How to get the delete_record field to show on a custom form? I tried variants of form.custom.label['delete_record'] and form.custom.widget.delete_record in the case where controller has crud.update(...,deletable=True) -- You received this message because you are subscribed to the Google Groups

[web2py] Re: crud delete_record checkbox [RESOLVED]

2010-01-29 Thread weheh
It works. Thanks. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group

[web2py] Re: crud delete_record checkbox [RESOLVED]

2010-01-29 Thread weheh
Massimo, does it have a label? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options,

[web2py] Re: crud delete_record checkbox [RESOLVED]

2010-01-29 Thread weheh
I'm not sure I understood what you wrote, sorry. My question, really, is what is the name of the key used to access the delete label in form.custom.label[''] ='delete_label' doesn't work. ='deletable' doesn't work, either. -- You received this message because you are subscribed to

[web2py] user profile form

2010-01-29 Thread weheh
I'm building an app where anyone from the general public can join and gain access to some of the site's functionality, while paying members gain access to more functionality. Pretty typical. Since I expect lots more non-paying members than paying members, I don't want to clutter up auth_user with

[web2py] auth membership

2010-01-29 Thread weheh
What's the most concise syntax to find out if a user belongs to a group called paying_member? From the looks of it, it seems like I'd have to do something like this: group_id=db(db.auth_group.role=='Member').select()[0].id if auth.has_membership(group_id,auth.user.id):

[web2py] Re: user profile form

2010-01-29 Thread weheh
Would I put this class extension in the modules folder? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] Re: crud delete_record checkbox [RESOLVED]

2010-01-29 Thread weheh
Yes, I see that. But URGH, do I really want to start leaving footprints in gluon? What happens when there's a new release. Do they get wiped out and then I have to do it over again? Seems like the deletable field label should be a permanent fixture, no? -- You received this message because you

[web2py] Stupid translation question

2010-01-28 Thread weheh
I haven't really worked with translation, yet. But I'm going to be getting into it in a big way. I have db.define_table('content',Field('title'),Field('body')) I want to enter title and body in English, but then translate to other languages. Let's say I do this: rows=db(db.content.id0).select()

[web2py] Re: crud newbie question regarding update

2010-01-28 Thread weheh
already be testing that condition, no? On Jan 28, 10:02 am, mdipierro mdipie...@cs.depaul.edu wrote: form = crud.update(db.person, request.args(0), ...) this will do an update if you havehttp://.../action/[id] and a create ifhttp://.../action On Jan 28, 1:53 am, weheh richard_gor

[web2py] Re: Stupid translation question

2010-01-28 Thread weheh
wrote: everything is passed by T('anything') go to languages/my_ln.py (like en_us.py). So you have to manually translate the strings on that file. 2010/1/28 weheh richard_gor...@verizon.net I haven't really worked with translation, yet. But I'm going to be getting into it in a big way. I

[web2py] Re: Stupid translation question

2010-01-28 Thread weheh
Thanks, understood. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this

[web2py] Re: Stupid translation question [ RESOLVED]

2010-01-28 Thread weheh
Thanks, Massimo. Understood. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit

[web2py] Re: crud newbie question regarding update

2010-01-28 Thread weheh
Hi Massimo, I'm sorry, but I don't understand how to do this. I tried the following: #controller def junk(): form = crud.update(db.content,request.args(2),next=request.url) rows=crud.select(...) return dict(form=form,rows=rows) Record creation works OK. But when I click on a rows record

[web2py] Re: Stupid translation question

2010-01-28 Thread weheh
Hi Chris - super write up. Thanks. I'll be referring to it in the next few days. - RG -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] Re: crud newbie question regarding update

2010-01-28 Thread weheh
http://127.0.0.1:8000/spin/default/junk/read/content/4 -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] Re: crud newbie question regarding update

2010-01-28 Thread weheh
The URL is automatically generated by the crud.select and is attached to the record id. Here's the URL: http://127.0.0.1:8000/spin/default/marketing/read/content/4 -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email

[web2py] Re: crud newbie question regarding update

2010-01-28 Thread weheh
Oh, Massimo, one other thing. The crud.select is returning the auth.user.id, whereas I would like to get auth.user.email in the rows listing. How would I go about doing that? My db.content table has a field named email: Field('user',db.auth_user,requires=IS_IN_DB(db,'auth_user.id','%(email) s'))

[web2py] crud newbie getting invalid function

2010-01-27 Thread weheh
I'm a crud newbie. I've read the doc v2 on crud and think I understand it. So I tried the following: #model db = DAL('sqlite://storage.sqlite') from gluon.tools import * crud=Crud(globals(),db) db.define_table('test',Field('name','string')); #default.py controller def data: return

[web2py] crud newbie

2010-01-27 Thread weheh
I'm using crud to create a mini CMS type of functionality. I'm using the example on p. 218 of the doc v2 as a guide. (I'm reproducing it here for reference.) 1 # assuming db.define_table('person', Field('name')) 2 def people(): 3 form = crud.create(db.person, next=request.url, 4 message=T(record

[web2py] crud newbie question regarding update

2010-01-27 Thread weheh
changing subject line -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this

[web2py] Re: Serious issue with upgrading to latest version

2010-01-26 Thread weheh
I just re-downloaded the source from http://www.web2py.com/examples/default/download (not the latest dev snapshot) and re-installed it. I couldn't even get web2py to start. It looked like an incomplete set of files to me. So, I installed the Windows version on the server and then restarted

[web2py] Re: Serious issue with upgrading to latest version

2010-01-26 Thread weheh
it into a date, sqlite does not support alter table and you end up with corrupted data. A different database would not have permitted you to do such conversion at all. I need to look at the code to help you more. Massimo On Jan 26, 2:31 am, weheh richard_gor...@verizon.net wrote: I just

[web2py] Re: Serious issue with upgrading to latest version

2010-01-26 Thread weheh
since they become part of your app. Nevertheless there was an issue with very early appadmin that was fixed and may be causing the last one of your problems. On Jan 26, 12:00 pm, weheh richard_gor...@verizon.net wrote: Massimo, the db is MySQL, not SQLITE. I think this is going to be more

[web2py] Re: Serious issue with upgrading to latest version

2010-01-26 Thread weheh
I hear you and it makes perfect sense. However, I just quadruple- checked the model file and I guarantee (no lying this time) that every IS_DATE() and IS_DATETIME() validator corresponds to a Field of type 'date' or 'datetime respectively. -- You received this message because you are subscribed

[web2py] Re: Serious issue with upgrading to latest version

2010-01-25 Thread weheh
to me several times, I ended reinstalling all again. alex f El 25/01/2010 23:13, weheh escribió: I want to test out my new website under development on my server production area. Problem is, the server is running web2py 1.64.3 and won't let me install my new website. So I

<    5   6   7   8   9   10   11   12   13   14   >