[web2py] Re: 1.79.0rc1 please check it out

2010-05-30 Thread Iceberg
On May30, 1:17pm, mdipierro wrote: > http://web2py.com/examples/static/nightly/web2py_src.ziphttp://web2py.com/examples/static/nightly/web2py_win.ziphttp://web2py.com/examples/static/nightly/web2py_osxzip > > x509 emails, thanks Gyuris > attachment and html in Mail on GAE, thanks PanosJee > fixed

[web2py] Re: 1.79.0rc1 please check it out

2010-05-30 Thread mdipierro
That should be fixed in 1.79.0rc1 On May 30, 2:05 am, Iceberg wrote: > On May30, 1:17pm, mdipierro wrote: > > > > >http://web2py.com/examples/static/nightly/web2py_src.ziphttp://web2py... > > > x509 emails, thanks Gyuris > > attachment and html in Mail on GAE, thanks PanosJee > > fixed docstring

Re: [web2py] Re: Complicated Join...

2010-05-30 Thread Jason Brower
I am getting a better understanding... But I don't quite get this stuff. Attached in the controller. I think I am close with it. But it seems to display all tags from all users or something like that. (Very confused if you can't tell.) I see the ._select( but I haven't a clue how it works, I did r

[web2py] combining requirements

2010-05-30 Thread annet
I have a custom auth table which contains a field 'account'. Once a user is logged in, would it be possible to decorate a function the following way: @auth.requires(auth.user.account=='3') def update_xxx(): return(form=form) In the web2py manual I read that it is possible combine re

[web2py] Re: combining requirements

2010-05-30 Thread mdipierro
Yes but @auth.requires(auth.user and (auth.user.account=='3' or auth.user.account=='2')) def update_xxx(): return(form=form) or this fails if user is not logged in. On May 30, 4:09 am, annet wrote: > I have a custom auth table which contains a field 'account'. Once a > user is log

[web2py] Re: Dependent drop downs

2010-05-30 Thread Neveen Adel
Hello, i tried it but it didn't call the action? i did the following : In html Page: $("#project_project_category").change(function() { $.ajax('get_objective_category', ['project_project_category'],'project_project_objective' ) }) .change(); // making sure the event runs on

[web2py] Re: Dependent drop downs

2010-05-30 Thread Iceberg
Very likely your javascript has some error. Perhaps the latest "change()" is not good. On May30, 5:29pm, Neveen Adel wrote: > Hello, > >  i tried it but it didn't call the action? > > i did the following : > > In html Page: >      $("#project_project_category").change(function() { >         $.aja

[web2py] Re: Dependent drop downs

2010-05-30 Thread Neveen Adel
I tested it by putting alert() function as $("#project_project_category").change(function() { alert("==>"); $.ajax('get_objective_category', ['project_project_category'],'project_project_objective' ) }) .change(); and it works fine. On May 30, 12:36 pm, Iceberg wrote: > Very li

[web2py] Re: Dependent drop downs

2010-05-30 Thread Neveen Adel
But still didn't call the function get_objective_category() On May 30, 12:44 pm, Neveen Adel wrote: > I tested it by putting alert() function as > > $("#project_project_category").change(function() { >       alert("==>"); >       $.ajax('get_objective_category', > ['project_project_category'

[web2py] Re: combining requirements

2010-05-30 Thread annet
Massimo, > Yes but Great, this makes it possible to code my cms more generic. Kind regards, Annet.

[web2py] Re: combining requirements

2010-05-30 Thread annet
In default.py I adjusted the def user() function: def user(): form=auth() form[0][-1] [1].append(INPUT(_type="button",_value="Cancel",_onclick="window.location='%s';"%URL(r=request,f='index'))) return dict(form=form) Now, when an unauthorized user tries to access a function

[web2py] How do I get session.flash to show multiple rows?

2010-05-30 Thread NetAdmin
How do I get session.flash to show multiple rows? The would be nice for a quick popup help message. Thanks!

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

2010-05-30 Thread Doug Warren
One thing that would probably be helpful is just to get some of the links that are presented here into the official website. Maybe I wasn't looking at the right spot, but while I had found web2pysplices, and the appliances section on the main website, until this thread I've never seen http://web2p

[web2py] Re: jQgrid navigator - form editing through a grid

2010-05-30 Thread AsmanCom
What about that http://app.ebansoftware.net/editable_jqgrid/default/show_example On 29 Mai, 19:21, Yarko Tymciurak wrote: > btw - trying to wade thru these doesn't seem to point to anything (and > just makes my head hurt!): > > http://www.trirand.com/jqgridwiki/doku.php?id=wiki:navigator&s[]=n

[web2py] Re: How do I get session.flash to show multiple rows?

2010-05-30 Thread mdipierro
response.flash=TABLE(TR("first row"),TR("second row")) On May 30, 8:30 am, NetAdmin wrote: > How do I get session.flash to show multiple rows? > > The would be nice for a quick popup help message. > > Thanks!

[web2py] empty field crud.update(db.table)

2010-05-30 Thread annet
I am using the Pengoworks auto complete plugin. In my model file I have: db.address.city.widget=lambda self,value:INPUT(_type='text',_id='city',_class='ac_input',_name='city_name',requires=self.requires) In web2py_ajax.html: jQuery('#city').autocomplete('/cms/handlers/cityAC',{maxItemsToShow:

[web2py] Re: jQgrid navigator - form editing through a grid

2010-05-30 Thread Yarko Tymciurak
Thanks - I had not seen an example of how to set this up before. I'll look thru to see if I can adapt to the jquery navigator, etc. In just glancing at the controller which saves, I cannot tell (do not think) that validators are run, and successs/failure fed back to the user. I'll let you know ho

[web2py] Re: How do I get session.flash to show multiple rows?

2010-05-30 Thread NetAdmin
And of course it work perfectly! Thanks! I love Web2py! On May 30, 9:29 am, mdipierro wrote: > response.flash=TABLE(TR("first row"),TR("second row")) > > On May 30, 8:30 am, NetAdmin wrote: > > > How do I get session.flash to show multiple rows? > > > The would be nice for a quick popup help

Re: [web2py] Re: 1.79.0rc1 please check it out

2010-05-30 Thread Thadeus Burgess
I think that the .hgtags need to be updated. the 1.79.0rc1 tag refers to an earlier commit than the commit with the message 1.79.0rc1 The tag refers to c29660517c When I think it needs to refer to 075c967337 -- Thadeus On Sun, May 30, 2010 at 3:52 AM, mdipierro wrote: > That sho

[web2py] Re: 1.79.0rc1 please check it out

2010-05-30 Thread Yarko Tymciurak
On May 30, 11:03 am, Thadeus Burgess wrote: > I think that the .hgtags need to be updated. the 1.79.0rc1 tag refers > to an earlier commit than the commit with the message 1.79.0rc1 > > The tag refers to       c29660517c       > When I think it needs to refer to 075c967337 ... be sure to commit f

[web2py] Non-Breaking Space Helper

2010-05-30 Thread NetAdmin
It would be nice to have a non-breaking space html-helper that uses the following syntax... NBSP(), or NBSP(5) Any Takers?

[web2py] Re: How do I get session.flash to show multiple rows?

2010-05-30 Thread mdipierro
you can also use helpers in Field(..., label=, comment=...) On May 30, 10:29 am, NetAdmin wrote: > And of course it work perfectly! > > Thanks! > > I love Web2py! > > On May 30, 9:29 am, mdipierro wrote: > > > response.flash=TABLE(TR("first row"),TR("second row")) > > > On May 30, 8:30 am, N

[web2py] Re: 1.79.0rc1 please check it out

2010-05-30 Thread mdipierro
Oops. On May 30, 11:30 am, Yarko Tymciurak wrote: > On May 30, 11:03 am, Thadeus Burgess wrote: > > > I think that the .hgtags need to be updated. the 1.79.0rc1 tag refers > > to an earlier commit than the commit with the message 1.79.0rc1 > > > The tag refers to       c29660517c       > > When

[web2py] Re: Non-Breaking Space Helper

2010-05-30 Thread mdipierro
I'd rather avoid to pollute the name space too much. You can do def NBSP(n=1): return XML(' '*n) On May 30, 11:32 am, NetAdmin wrote: > It would be nice to have a non-breaking space html-helper that uses > the following syntax... > > NBSP(),  or NBSP(5) > > Any Takers?

[web2py] book section 4.7

2010-05-30 Thread Doug Warren
I'm still not sure if this is the correct place to post issues with the book so if it's not someone please let me know where is, otherwise I'll keep doing so :) The response chapter in the book doesn't mention response.files at all, is it intended to be internal and only used by the web2py_ajax.ht

[web2py] Separate Auth DB

2010-05-30 Thread Doug Warren
Greetings, I'm testing how/if web2py could support foreign keys across db connections For example I modified the mywiki app to look like: db = DAL('sqlite://storage.sqlite') authdb = DAL('sqlite://authdb.sqlite') from gluon.tools import * auth=Auth(globals(),authdb) # authentication

[web2py] Re: book section 4.7

2010-05-30 Thread mdipierro
This is a new feature introduced after the book was written. We will keep it. On May 30, 12:10 pm, Doug Warren wrote: > I'm still not sure if this is the correct place to post issues with the book > so if it's not someone please let me know where is, otherwise I'll keep > doing so :) > > The resp

[web2py] Re: Separate Auth DB

2010-05-30 Thread mdipierro
db.define_table('page', ... Field('created_by', authdb.auth_user) you cannot reference a table in authdb from a different database db. You can at the web2py level but not at the database level (since they are different). At the web2py level you would do db.define_table('page', ... Field('

[web2py] Re: How to duplicate a record

2010-05-30 Thread ceriox
it work perfectly, thanks > myrecord = db.table[5] > db.table.insert(**db.table._filter_fields(myrecord))

Re: [web2py] Re: Non-Breaking Space Helper

2010-05-30 Thread Mr admin
Here's an example if what I'm trying to do with NBSP() -- Make a BIG eye-catching response.flash without using the dashes.. See attached file. if form.accepts(request.vars, session): response.flash = TABLE(TR(' '),TR(' '),TR(' '), TR(' Center This ') , TR(' ')

[web2py] Re: Non-Breaking Space Helper

2010-05-30 Thread mdipierro
response.flash = DIV('Center This',_style='padding: 100px 50px 100px 50px;') On May 30, 1:12 pm, Mr admin wrote: > Here's an example if what I'm trying to do with NBSP()   -- Make a BIG > eye-catching response.flash  without using the dashes.. > > See attached file. > >   if form.accepts(requ

[web2py] Re: Non-Breaking Space Helper

2010-05-30 Thread NetAdmin
Thank worked! == controller = def NBSP(n=1) : # # produce non-breaking spaces # return XML(' ' * n) = view === if form.accepts(request.vars, session): response.flash = TABLE(TR(' '),TR(' '),TR(' '), TR( NBSP(15) , 'Center', NBSP(15) )

[web2py] Barchart solution (with Callback) available?

2010-05-30 Thread AsmanCom
I would like to show Database Fields as Barcharts (widget) like this: http://web2py.appspot.com/t3/default/wiki/charts or better http://t.wits.sg/jquery-progress-bar/ It should be possible to show more then one barchart per Page, which can be updated by a Callback (I want to use them in a Grid)

[web2py] Re: Non-Breaking Space Helper

2010-05-30 Thread NetAdmin
Your solution is much cleaner! Looks like I better start learning CSS and jQuery! Thanks Again! On May 30, 2:46 pm, mdipierro wrote: > response.flash = DIV('Center This',_style='padding: 100px 50px 100px > 50px;') > > On May 30, 1:12 pm, Mr admin wrote: > > > Here's an example if what I'm tryi

Re: [web2py] Re: Non-Breaking Space Helper

2010-05-30 Thread Thadeus Burgess
Also, you can use the css rules to accomplish the same. text-align: center; width: 150px; height: 100px; padding-top: 40px; -- Thadeus >> > > On May 30, 11:32 am, NetAdmin wrote: >> > > > It would be nice to have a non-breaking space html-helper that uses >> > > > the following syntax... >

[web2py] Corrupted db?

2010-05-30 Thread weheh
Things were going great with my new app, but then I seem to have corrupted something and now I can't get my app running again. I'm hitting this error: Traceback (most recent call last): File "C:\web2py\gluon\restricted.py", line 178, in restricted exec ccode in environment File "C:/web2py/

Re: [web2py] Corrupted db?

2010-05-30 Thread Thadeus Burgess
Try wiping both databases and sessions and cache. Somehow it seems a record got inserted without an id ?? -- Thadeus On Sun, May 30, 2010 at 4:44 PM, weheh wrote: > Things were going great with my new app, but then I seem to have > corrupted something and now I can't get my app running agai

[web2py] Re: Corrupted db?

2010-05-30 Thread weheh
Yah. I got it running, thanks. Had to go in thru the admin interface to restart. I think it's related, but I'm using your code from the custom auth.login example. You wrote: user=db.auth_user.insert(...) session.auth=Storage(user=user,last_visit=request.now,expiration=auth.settings.expiration)

Re: [web2py] Re: Corrupted db?

2010-05-30 Thread Thadeus Burgess
oh... yes. Your right... Storage(user=db.auth_user[user]... should fix it. -- Thadeus On Sun, May 30, 2010 at 4:56 PM, weheh wrote: > Yah. I got it running, thanks. Had to go in thru the admin interface > to restart. > > I think it's related, but I'm using your code from the custom > auth.l

[web2py] Re: Corrupted db?

2010-05-30 Thread weheh
Excellent ... much cleaner. On May 30, 5:59 pm, Thadeus Burgess wrote: > oh... yes. > > Your right... Storage(user=db.auth_user[user]... should fix it. > > -- > Thadeus > > On Sun, May 30, 2010 at 4:56 PM, weheh wrote: > > Yah. I got it running, thanks. Had to go in thru the admin interface > >

[web2py] Re: Corrupted db? [CLOSED]

2010-05-30 Thread weheh
Closed

[web2py] Re: gaehandler.py change

2010-05-30 Thread howesc
if i do type(...) on the variables it returns 'unicode'. I'm not up on my encodings to know 100% the best way...i know that once i put the line above in that cookies and sessions work again. On May 29, 5:05 pm, mdipierro wrote: > Before I add the line I need some diagnostic. Is env['PATH_INFO']

[web2py] Re: gaehandler.py change

2010-05-30 Thread mdipierro
To clarify. the following line works? env['PATH_INFO'] = env['PATH_INFO'].encode('utf8') On May 30, 7:13 pm, howesc wrote: > if i do type(...) on the variables it returns 'unicode'.  I'm not up > on my encodings to know 100% the best way...i know that once i put the > line above in that cookies

[web2py] Re: Email "perfect" regex

2010-05-30 Thread blackthorne
My point is... why do you use IS_EMAIL() validator? because you want to know if that email address is valid or not. why? probably because you want your app to send the user an email, so to prevent it not to arrive to its destiny it becomes important to make sure, that email address is valid. If the

[web2py] How to present status of other system by web2py?

2010-05-30 Thread dlin
I'm a newbie of web2py. I wish to use web2py to present my other system's status. As I know web2py is event driven, I don't know how to plugin my C system into it. What's the suggest architecture? My other system is built by C++ program. The different system status is provided three methods: 1.

[web2py] Re: Dependent drop downs

2010-05-30 Thread Iceberg
Then why not put another alert() BEHIND the $.ajax(...)? I bet this time it does not fire, indicating that your $.ajax(...) does contain some error. I assume you don't need more hint right now? :-) On May30, 6:09pm, Neveen Adel wrote: > But still didn't call the function get_objective_category(

[web2py] Re: How to present status of other system by web2py?

2010-05-30 Thread Iceberg
You can use web2py's cron feature to trigger a data collector, which use "3. command line utility" you mentioned to gather data, insert into your web2py app's db, then you can show it in the way you like. http://web2py.com/book/default/section/4/17?search=cron On May31, 10:44am, dlin wrote: > I

[web2py] new stuff in trunk...

2010-05-30 Thread mdipierro
1) mail.settings.server='logging' will pretend it is sending emails and just log them instead with a warning. 2) from gluon.contrib.sms_utils import SMSCODES, sms_email sms_email(number,provider) will send an sms via an email (free) where provider is in the list of SMSCODES 3) gluon/contrib/Autho

[web2py] Re: Email "perfect" regex

2010-05-30 Thread mdipierro
I agree with Jonathan on this one but I would not oppose something like IS_EMAIL(strict=True)? Massimo On May 30, 9:47 pm, blackthorne wrote: > My point is... why do you use IS_EMAIL() validator? because you want > to know if that email address is valid or not. why? probably because > you want