Re: [web2py] Web2Py on Raspberry Pi?

2012-07-12 Thread David J
For sure. You can probably run the embedded rocket webserver On Jul 12, 2012 7:29 PM, Ron K Jeffries rjeffr...@gmail.com wrote: Raspberry Pi is an inexpensive $35 ARM based Linux board that has 256MB of RAM and Ethernet as network connectivity. They are shipping in volume, maybe a million by

Re: [web2py] Re: Auth form custom errors

2012-05-07 Thread David J
You have a typo acton On May 7, 2012 7:32 AM, Rhys d...@vcrowd.com wrote: Hey Massimo, The {{form=auth()}} {{form['_acton'] = /user/login}} {{=form.custom.begin}} spat out the html without the updated action html action= method=post enctype=multipart/form-data Cheers, Rhys On

Re: [web2py] auth

2012-02-23 Thread David J
Yes please look in docs. On Feb 23, 2012 5:33 AM, Prakhar Srivastava prakhar@gmail.com wrote: is there any way to change the path after Login by default in direct to the index

Re: [web2py] Re: web2py with twitter bootstrap - very clean interface ...

2012-01-24 Thread David J
Yeah setup bs2 today and its really sweet. Just need to make some class changes from v1.4 On Jan 24, 2012 6:47 PM, pbreit pbreitenb...@gmail.com wrote: Looks like Twitter Bootstrap 2 is ready. I've seen some positive comments about it in regards to the switch to 12 columns and responsiveness.

Re: [web2py] Re: error class proposal

2012-01-17 Thread David J
Massimo added this to trunk. Please see .inputinvalid class On Jan 17, 2012 8:47 PM, Alex mrauc...@gmail.com wrote: I've created a function getFormFields which I call for every form I'm using. In this function I go through all inputs of the form with form.elements('input, select, textarea')

Re: [web2py] Re: password storage with per-user salt

2011-09-21 Thread David J
Why double salt. That's the point of SSL. we should only be concerned with application level details not transport On Sep 21, 2011 10:27 AM, Anthony abasta...@gmail.com wrote: Yes, I think the salting and hashing we're discussing is meant to protect the passwords once on the server (i.e., if the

[web2py] Exception Running shell - Trunk.

2011-08-10 Thread David J.
I am using Trunk I normally have been accessing the console via... I updated trunk today... See stacktrace ./../web2py.py -S app -M -P web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2011 Version 1.98.2 (2011-08-09 11:18:07) Database drivers available: SQLite3 Traceback (most

Re: [web2py] Re: Exception Running shell - Trunk.

2011-08-10 Thread David J.
Thanks. On 8/10/11 7:47 AM, Massimo Di Pierro wrote: oops. sorry. should now be fixed in trunk. On Aug 10, 5:32 am, David J.da...@styleflare.com wrote: I am using Trunk I normally have been accessing the console via... I updated trunk today... See stacktrace ./../web2py.py -S app -M -P

Re: [web2py] Re: IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread David J
How do use this from uwsgi? Currently I am launching the web2py app using the web2py uswgi handler On Aug 8, 2011 6:35 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: for now just set an insame large value for repeats. We could agree to use -1. On Aug 8, 12:12 pm, Marin Pranjic

Re: [web2py] About passwords security in web2py

2011-08-03 Thread David J.
Antonio; I dont think the passwords are decrypt-able; I remember asking this question and I think that its a one-way hash. I could be wrong though. Besides; your client has to TRUST you; obviously there is never a guarantee who they hire wont be able to maliciously store plain text

Re: [web2py] Attn: jQuery ajax noobies: don't fall into this trap

2011-07-18 Thread David J.
Cliff thanks for the heads up Except I am not sure what :eval means in that context. Thanks. On 7/18/11 4:10 PM, Cliff wrote: Notice the ':eval' as the last parameter to the ajax call. ajax('{{=URL('revive_parrot')}}', ['dead_parrot_id'], ':eval') If 'revive_parrot' ends with the

Re: [web2py] XSRF attacks

2011-07-15 Thread David J
Web2py supports it out of the nox On Jul 15, 2011 10:39 AM, Carl m...@carlroach.com wrote: Any views/insight for adding (or not adding) one of this approaches to web2py for its FORMS ? http://www.codinghorror.com/blog/2008/10/preventing-csrf-and-xsrf-attacks.html

Re: [web2py] Re: how to POST a file without using a form?

2011-07-13 Thread David J
Using urllib import urllib into your project and google for a post example On Jul 13, 2011 6:50 PM, weheh richard_gor...@verizon.net wrote: Isn't that on the receiving end? How do I POST the file. On Jul 12, 5:28 pm, pbreit pbreitenb...@gmail.com wrote: Can you just grab the request.var? def

[web2py] Application Scope?

2011-07-11 Thread David J.
Is there place to specify a global object that runs when the application runs? Like application scope? Thanks.

Re: [web2py] Re: Application Scope?

2011-07-11 Thread David J.
, 2011 9:59:06 AM UTC-4, David J wrote: Is there place to specify a global object that runs when the application runs? Like application scope? Thanks.

Re: [web2py] Re: Application Scope?

2011-07-11 Thread David J.
/chapter/04#Background-Processes-and-Task-Queues? On Monday, July 11, 2011 10:19:59 AM UTC-4, David J wrote: Anthony; Thanks; I wanted my object to be created on application startup; I know that I can put objects in my model and they are available; but I wanted something like

Re: [web2py] Re: looping through fields updating

2011-07-11 Thread David J.
You may want to look at the _filter_fields Look at web2py slices; this way you can pass a dict and it updates with the relevant fields/ On 7/11/11 10:38 AM, mart wrote: Hi Denes, Thanks for the great explanation! now, its making sense to me!! I'll apply the changes below Thanks :) Mart

Re: [web2py] Re: Application Scope?

2011-07-11 Thread David J.
others have suggestions. Massimo is promising Celery integration by mid-August. Would that work? On Monday, July 11, 2011 10:38:52 AM UTC-4, David J wrote: Anthony; We are getting closer; now the question is how can I run this if I am running wsgi? This is exactly what needs

Re: [web2py] Re: Application Scope?

2011-07-11 Thread David J.
11:20 AM, Massimo Di Pierro wrote: If anybody is using celery with web2py and have example to share it will be useful to many of us. On Jul 11, 10:13 am, Jonathan Lundelljlund...@pobox.com wrote: On Jul 11, 2011, at 8:08 AM, David J. wrote: Yes; I am waiting patiently; :) But till

Re: [web2py] Re: Application Scope?

2011-07-11 Thread David J.
Roberto; Thanks so much; this is almost the information I am looking for; Spooler. I have to see how I would use this in web2py. Thanks. On 7/11/11 11:42 AM, Roberto De Ioris wrote: Il giorno 11/lug/2011, alle ore 17.27, David J. ha scritto: I am not using celery; The more I think about

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread David J.
Roberto; Thank you for this. On 7/11/11 1:34 PM, Roberto De Ioris wrote: Just a tiny example, but should be enough for spooler jobs and timers http://projects.unbit.it/uwsgi/wiki/Decorators#Example:web2pyspoolertimer Obviously you can call web2py module/functions in the mytasks.py file

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread David J.
Roberto; Do you need the latest version of uwsgi or will http://projects.unbit.it/downloads/uwsgi-0.9.8.1.tar.gz This work? I see the docs say 0.9.8.2? not 0.9.8.1. On 7/11/11 1:34 PM, Roberto De Ioris wrote: Just a tiny example, but should be enough for spooler jobs and timers

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread David J.
Thanks for the heads up... Will try now. On 7/11/11 2:17 PM, Roberto De Ioris wrote: Roberto; Do you need the latest version of uwsgi or will http://projects.unbit.it/downloads/uwsgi-0.9.8.1.tar.gz This work? I see the docs say 0.9.8.2? not 0.9.8.1. You have to take the version from

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread David J.
Robeto; I am not exactly sure how I would start my application in the background using this method; I thought I could use @thread and then call it somehow. But I am not sure how to access the object once I do that. The examples you showed are using @spool I dont think I need to create a

Re: [web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-04 Thread David J
You can easily do this. Just think its the reset password function with a twist. On Jul 4, 2011 8:38 PM, Luis Goncalves lgoncal...@gmail.com wrote: Hello! The website I am developing will be invitation only: - a user gets an email invitation to register with a link to the site (with an

[web2py] Decrypt Passwords.

2011-07-03 Thread David J.
I was wondering how I could decrypt the passwords in my DB? I want to change me auth.settings.hmac_key but if I do that then existing users wont be able to login so I thought if I could decrypt and then encrypt using the new key my problems would be solved. Thanks. David.

Re: [web2py] Re: Decrypt Passwords.

2011-07-03 Thread David J.
Thanks; Not exactly the answer I was looking for :) On 7/3/11 1:43 PM, pbreit wrote: They are one-way hashed and thus not decryptable. What is typically done in this situation is 1) everyone has to re-generate a password (not ideal) or 2) begin using the new scheme and continue to accept

[web2py] Upload form using Load

2011-07-01 Thread David J.
I had this working a few weeks ago. I have an upload form which I load into the page using the LOAD helper. Right now I get an exception when I try to upload. Here is the code. def upload_contacts(): form = FORM(INPUT(_type='file', _name='data',requires=[IS_NOT_EMPTY()]),

Re: [web2py] Re: Upload form using Load

2011-07-01 Thread David J.
component's .load view. Instead, uploads are done with ajax-compatible 3rd-party widgets and web2py manual upload store commands./ Anthony On Friday, July 1, 2011 9:34:33 AM UTC-4, David J wrote: I had this working a few weeks ago. I have an upload form which I load into the page using

[web2py] Inline Table Editor.

2011-07-01 Thread David J.
Anyone know of a good jquery inline table editor? Thanks. I saw jqGrid; but I was looking for something less complex. I am really looking for something simple; Highlight a row; Edit a row; Save the data; I dont need sorting or anything like that.

[web2py] BUG: I think.

2011-07-01 Thread David J.
I am running latest in trunk. I have this code being called from a LOAD function; I see it appends the '.load' to the generated URL When I think it should be /campaigns/edit/5435 It returns /campaigns.load/edit/5435 table class=grid {{ for n in items:}} tr td{{= n.campaign_name }}/td

[web2py] Exception calling value in template that is not defined.

2011-06-29 Thread David J.
I am wondering why if I dont return anything in my dict and in my view {{if form:}} {{= form }} {{pass}} I get an exception. S'Traceback (most recent call last):\n File /apps/www/web2py.trunk/gluon/restricted.py, line 192, in restricted\nexec ccode in environment\n File

Re: [web2py] Exception calling value in template that is not defined.

2011-06-29 Thread David J.
also do: {{if 'form' in response._vars:}} On Wednesday, June 29, 2011 11:02:06 AM UTC-4, rochacbruno wrote: {{if 'form' in globals():}} {{=form }} {{pass}} On Wed, Jun 29, 2011 at 12:00 PM, David J. da...@styleflare.com wrote: I am wondering why if I dont return

Re: [web2py] Exception calling value in template that is not defined.

2011-06-29 Thread David J.
dict(..., form=some_form_object), the form gets displayed, but if the dict does not include a 'form' key, nothing is displayed, and there is no error. Anthony On Wednesday, June 29, 2011 12:50:00 PM UTC-4, David J wrote: Strange this did not work. But Bruno's solution did. if 'form

Re: [web2py] Re: Custom Widget Help.

2011-06-28 Thread David J.
Thanks. Isn't IS_MATCH a validator? I wanted a widget that had this built in; How would I build a custom form widget that has this validator as its default. On 6/28/11 3:32 PM, Niphlod wrote: you need to play with regexes. assuming parenthesis-3 digits-parenthesis-space-3

[web2py] DAL Query by Date on Datetime Field.

2011-06-27 Thread David J.
How do I use DAL to query by exact date? I tried db(db.events.created_on == request.now.date).select() but this returned no rows? I also tried db(db.events.created_on.date == request.now.date).select() but that throws an exception Thanks.

Re: [web2py] DAL Query by Date on Datetime Field.

2011-06-27 Thread David J.
Thanks Kenneth; I actually did it this way also but I thought there would be a more elegant way to achieve it. Although I guess not. Sometimes since DAL does so much for in simple ways; I thought perhaps there was a simple way of doing this as well On 6/27/11 6:54 AM, Kenneth Lundström

Re: [web2py] Re: example celery integration?

2011-06-27 Thread David J.
Sounds Great also would like to see it; Thanks. David. On 6/27/11 1:40 PM, Massimo Di Pierro wrote: No but I am involved in a project and this will be done by mid August, if not sooner. On Jun 27, 11:47 am, ariel.glez.mariel.gle...@gmail.com wrote: someone have a example where integrate

Re: [web2py] suggestion for improvement for A

2011-06-27 Thread David J.
You can pass a loading image to the load function On 6/27/11 6:13 PM, Sebastian E. Ovide wrote: Hi All, some times a link A will reload a component (via cid=request.cid). In those situations would be nice to have some kind of loading message displayed. thanks -- Sebastian E. Ovide

[web2py] Invalid Login after update to Trunk and Custom Auth Table:

2011-06-26 Thread David J.
I just updated to trunk; I also modified the auth table and added an extra few fields, I added Field('key','string') as well I added auth.signature Each time I try to login now Login fails with invalid login. Is there something I have to do enable this? Thanks. David

[web2py] Re: Invalid Login after update to Trunk and Custom Auth Table:

2011-06-26 Thread David J.
By the way I forgot to mention this is only for existing users; Not new ones; I created a new user and I can login with that account. On 6/26/11 3:50 PM, David J. wrote: I just updated to trunk; I also modified the auth table and added an extra few fields, I added Field('key','string

[web2py] Re: Invalid Login after update to Trunk and Custom Auth Table:

2011-06-26 Thread David J.
I noticed the password in the last user I added is in plain text and no longer encrypted/hashed? On 6/26/11 3:50 PM, David J. wrote: I just updated to trunk; I also modified the auth table and added an extra few fields, I added Field('key','string') as well I added auth.signature Each

Re: [web2py] Re: Invalid Login after update to Trunk and Custom Auth Table:

2011-06-26 Thread David J
Still not working I actually reset s password on a test account and it worked. So something else must be causing this error On Jun 26, 2011 5:33 PM, villas villa...@gmail.com wrote: Try changing the field name 'key' which is likely to cause issues because it has been a reserved word.

[web2py] Grouping Fields in Form. - Dict Ordering

2011-06-24 Thread David J.
I tried making a dict user_info = {'username':'Username','password':'Password'} billing_info = {'field_name':'Label','street':'Street','city':'City','state':'State',etc..} when I display it seems the dict does not keep the order? So when I display billing it shows some random order like

Re: [web2py] Re: Grouping Fields in Form. - Dict Ordering

2011-06-24 Thread David J.
pbreit; Thanks, I tried customizing the forms; I got confused about; can you show me an example view? On 6/24/11 12:41 PM, pbreit wrote: I customize all my forms ( http://pricetack.com) so I can do exactly what I want and it's pretty easy to manage:

[web2py] SQL Query Help Using DAL

2011-06-24 Thread David J.
I am trying to display chat message information; I have 2 tables The first table is the auth table define in web2py The second is this db.define_table('messages', Field('from',db.auth_user), Field('to',db.auth_user), Field('msg','string'),

Re: [web2py] Re: SQL Query Help Using DAL

2011-06-24 Thread David J.
Thanks I will try now. On 6/24/11 3:27 PM, Massimo Di Pierro wrote: I am guessing, I have not tried it mfrom = db.messages.with_alias('mfrom') mto = db.messages.with_alias('mfrom') db(db.auth_user).select(db.auth.user.first_name, db.auth_user.last_name, mfrom.id.count(),

Re: [web2py] Re: SQL Query Help Using DAL

2011-06-24 Thread David J.
Massimo; Thanks, this sort of works; The numbers seem off but this gives a good starting point; One other thing I would like to extend the table to include on other field 'mtype' which would be a value of 'text' or 'media', If I wanted to extend the query to use the previous query and

Re: [web2py] Re: SQL Query Help Using DAL

2011-06-24 Thread David J.
Got it thanks I think I tried but perhaps I did not use the right syntax I think I tried (mfrom.from==db.auth_user.id mfrom.type=='text') But I think it has to be logically separate (mfrom.from==db.auth_user.id)(mfrom.type=='text') On 6/24/11 4:28 PM, Massimo Di Pierro wrote: You can

[web2py] Custom Widget Help.

2011-06-23 Thread David J.
I need help trying to create a custom widget; I want to create a phone-number widget I want it to only accept text in (800) 555-1212 I am not sure how to do this. Any ideas would be greatly appreciated.

[web2py] response.files - not properly formatted html.

2011-06-23 Thread David J.
I think that when you add css files via response.files the output should include a '/' rather that '' xhtml requires all tags to be closed; while other doctypes are less strict I think its good practice to close all tags. Anyone disagree?

Re: [web2py] Re: response.files - not properly formatted html.

2011-06-23 Thread David J.
appears to close the tag with a '/', as you suggest. Anthony On Thursday, June 23, 2011 4:49:47 PM UTC-4, David J wrote: I think that when you add css files via response.files the output should include a '/' rather that '' xhtml requires all tags to be closed; while other doctypes

Re: [web2py] Re: new cool library to handle websockets

2011-06-21 Thread David J
Massimo beat me too it. Interested as well On Jun 21, 2011 9:49 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Please tell us more On Jun 21, 8:40 pm, Gregory Hellings greg.helli...@gmail.com wrote: I'll have to see if my Socket.IO port of comet_messaging.py still works with the new

[web2py] Long Polling getting only the newly added records.

2011-06-20 Thread David J.
I am not sure how to go about long polling. I need to know how to get only the most recently added items in the list; My guess in solving this problem is to include a current row count and pass that as a parameter? and then returning more rows that the current row count? I am polling at 15

[web2py] Seems Like a NEW error in Trunk.

2011-06-17 Thread David J.
I just defined some new tables after upgrading to latest trunk. db.define_table('people' Field('owner',db.auth_user,default=auth.user_id,readable=False,writable=False), Field('email','string'), signature ) S'Traceback (most recent call last):\n File

Re: [web2py] Re: Seems Like a NEW error in Trunk.

2011-06-17 Thread David J.
Yes I did; Thank you; (You can spend a day on a comma sometimes.) On 6/17/11 4:34 PM, Anthony wrote: On Friday, June 17, 2011 4:24:04 PM UTC-4, David J wrote: I just defined some new tables after upgrading to latest trunk. db.define_table('people' Field('owner',db.auth_user

Re: [web2py] Re: response.js on regular requests.

2011-06-06 Thread David J.
for the page, or maybe include the JS string in the dict returned by the controller, and insert it as a variable in the view? On Sunday, June 5, 2011 6:22:13 PM UTC-4, David J wrote: How do I inject javascript in my controller from a regular web request? I read the docs it syas

[web2py] custom form with validation

2011-06-06 Thread David J.
I am trying to figure out how I can do validation on a custom form I have an order form; I need to set credit card expiration date as MM I have 2 fields 'expire_month' and 'expire_year' In my layout I manually added 2 select boxes; select name=expiry_month option value=01Jan/option ...

[web2py] Working with Select Boxes.

2011-06-06 Thread David J.
How do I persist the values in my Select Box? In my view I did {{=SELECT(range(10)) }} When I submit the form it returns to the first value. Thanks.

Re: [web2py] Re: components and timers

2011-06-06 Thread David J
Seeing that comet is not widely supportted I was wondering if there was an ajax poll example? On Jun 6, 2011 6:15 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: look into gluon/contrib/comet_messaging.py On Jun 6, 5:08 pm, blackthorne francisco@gmail.com wrote: hi Let's say I

Re: [web2py] Pre-fill email address on failed login?

2011-06-06 Thread David J
Keepvalues in form On Jun 6, 2011 7:51 PM, pbreit pbreitenb...@gmail.com wrote: I'm trying to pre-fill the email address field on a failed login but can't seem to figure out if the default/user() function can access any of the submitted inputs. That probably should be default functionality

Re: [web2py] Pre-fill email address on failed login?

2011-06-06 Thread David J.
Now that I am in front of my app; I see what you are saying; If you try to login with both user and password and the login fails the email is not re-populated. If you enter the form with the email and no password the email is populated still; Not sure if it is a bug or what; Sorry if I

[web2py] Checkboxes to select records.

2011-06-06 Thread David J.
How do I add a checkbox to each row in the table to let the user select and then press delete to delete the selected row? Is there a SLICE for this? Thanks.

[web2py] response.js on regular requests.

2011-06-05 Thread David J.
How do I inject javascript in my controller from a regular web request? I read the docs it syas response.js is executed only in a component; so I have a form and I would like to add JS validators. so I try adding to the response.js = '$(myfield).validate(digits);' Of course this only works in

[web2py] BUG?: Funny Bug with LOAD;

2011-06-03 Thread David J.
Maybe its not a bug; But I found a strange behavior; I am using LOAD to load some views; I also use @auth.requires_login() I just saw that If I try to reload the component after the session expires the component loads the login page where the component should go; Perhaps once the session

Re: [web2py] Re: web2py 1.96.2 is OUT security warning

2011-06-03 Thread David J.
Where do we set the response headers? On 6/3/11 12:17 PM, GoldenTiger wrote: Very good security upgrade About conditional models, what are they exactly? On 3 jun, 17:23, Massimo Di Pierromassimo.dipie...@gmail.com wrote: We fixed a few more bugs (strangely most of them preexisting

Re: [web2py] BUG?: Funny Bug with LOAD;

2011-06-03 Thread David J.
, 2011 at 4:09 PM, David J. da...@styleflare.com mailto:da...@styleflare.com wrote: Maybe its not a bug; But I found a strange behavior; I am using LOAD to load some views; I also use @auth.requires_login() I just saw that If I try to reload the component after the session

Re: [web2py] built with web2py

2011-06-01 Thread David J.
Very nice. On 6/1/11 6:54 AM, reedwan wrote: http://www.filtons.com built with web2py running on cherokee

Re: [web2py] Re: web2py rpc

2011-06-01 Thread David J.
How do you handle remote authentication using json-rpc? I would like to try it; Thanks. On 6/1/11 10:48 AM, Stifan Kristi wrote: a, i understand right now, it seems so widely implementation for rpc, thank you so much for sharing

Re: [web2py] built with web2py

2011-06-01 Thread David J
Bruno. I take all my static files out of web2py. It seems much better. Basically just static serve from web server. On Jun 1, 2011 11:13 AM, Bruno Rocha rochacbr...@gmail.com wrote: Hi, Very nice website, congrats. I have some questions, if could explain.. I see your images are loading

Re: [web2py] Re: Problems using LOAD function

2011-06-01 Thread David J.
I also posted a message yesterday regarding the views and the load function; It seems like if the URL has some additional 'args' LOAD returns the HTML view rather than the .load view. Thanks. On 6/1/11 2:23 PM, Massimo Di Pierro wrote: Please try LOAD('default','menu',ajax=True) you may

Re: [web2py] Re: Problems using LOAD function

2011-06-01 Thread David J.
I just upgraded the software to latest in trunk. I did explicitly use '.load'. It still happens. It loads the entire page into the target div. On 6/1/11 3:29 PM, Massimo Di Pierro wrote: I need more information here. Set ajax=True. What are the generated URLs (before and after the

Re: [web2py] Re: Problems using LOAD function

2011-06-01 Thread David J.
a href=javascript:web2py_component('quick_add_contact.load','contact_list') class=buttonQuick Add New Contacts/a On 6/1/11 4:02 PM, Massimo Di Pierro wrote: Please post the exact code you used {{=LOAD(.)}} the look at the source of the generated page and post that as well. On Jun 1,

Re: [web2py] Re: Problems using LOAD function

2011-06-01 Thread David J.
Massimo; Thank you! It seems to have solved my particular issue; @David On 6/1/11 4:48 PM, Massimo Di Pierro wrote: David and salbefe have different issues. @David web2py_component('quick_add_contact.load','contact_list') should be

Re: [web2py] slug ???

2011-06-01 Thread David J
Slug is unique On Jun 1, 2011 6:16 PM, 黄祥 steve.van.chris...@gmail.com wrote: hi, did anyone knows what slug is used for? i see in plugins wiki there is slug field on the database table, what is the difference with string field input. thank you.

Re: [web2py] Re: slug ???

2011-06-01 Thread David J.
Is 'slug' documented in the book? On 6/1/11 7:08 PM, pbreit wrote: I create and decode slugs on-the-fly so that my URLs are more descriptive: http://pricetack.com/item/nike-vintage-stripe-polo-shirt-lg-51 same as: http://pricetack.com/item/51 This is the slug:

Re: [web2py] Re: slug ???

2011-06-01 Thread David J.
at 9:14 PM, David J. da...@styleflare.com mailto:da...@styleflare.com wrote: Is 'slug' documented in the book? It is documented here - http://en.wikipedia.org/wiki/Slug_(web_publishing) http://en.wikipedia.org/wiki/Slug_%28web_publishing%29

Re: [web2py] Re: slug ???

2011-06-01 Thread David J.
I Love the fact that there is tons of hidden treasures like this. Thanks. On 6/1/11 8:59 PM, Massimo Di Pierro wrote: Converts text into a SLUG. On Jun 1, 7:32 pm, Stifan Krististeve.van.chris...@gmail.com wrote: pardon me, what urlify is use for? i've already search in the book but return

[web2py] Using the REST API with Auth.

2011-06-01 Thread David J.
Is there any good docs on how to use the REST API with Authentication? Thanks.

[web2py] web2py_component() Problem

2011-05-31 Thread David J.
I see a strange behavior using web2py_component() I am using current Trunk version; I have the following code. a href=javascript:web2py_component('contacts.load','contact_list')Load Contacts/a div id=contact_list /div The URL is http://mydomain.com/list (or whatever controller) clicking

Re: [web2py] Re: How do we handle concurrent db update?

2011-05-31 Thread David J
I am confused. Isn't this exactly what transactions are for? On May 31, 2011 7:54 PM, pbreit pbreitenb...@gmail.com wrote: We aren't talking about a bank account (and even if we were, that's why banks rely on reconciliation procedures), we are talking about a booking system. It's like security,

[web2py] Multiple Submits.

2011-05-30 Thread David J.
I have noticed that users using mobile web browsers have been submitting forms multiple times; I think this is due to slower mobile networks. What is the best way to prevent multiple form submissions? Thanks.

[web2py] Upload to Insert csv.

2011-05-30 Thread David J.
I simply want to upload a csv file and then insert that data into the db; I am sure buried somewhere there is a template for a simple web upload to csv insert into DB. If not; Is it possible to load it directly from the web without saving the file on disk first? Thanks in advance for any

Re: [web2py] Re: Upload to Insert csv.

2011-05-30 Thread David J.
Yes; But I was wondering if could be done in one step without saving the file first; just auto importing the uploaded file? On 5/30/11 2:20 PM, pbreit wrote: Something like this: http://web2py.com/book/default/chapter/06?search=csv#Exporting-and-Importing-Data

Re: [web2py] Re: Upload to Insert csv.

2011-05-30 Thread David J.
Yes I see it now. Thanks. def import_and_sync(): form = FORM(INPUT(_type='file', _name='data'), INPUT(_type='submit')) if form.accepts(request.vars): db.import_from_csv_file(form.vars.data.file,unique=False) # for every table for table in db.tables: #

[web2py] Where is LOAD?

2011-05-27 Thread David J.
I am looking for the LOAD helper? I checked gluon/http.py and all other files; but I cant seem to locate it. I wanted to see how to modify the text that says Loading... I wanted to include one of those mac like scrollers gifs. Any ideas?

Re: [web2py] Re: Where is LOAD?

2011-05-27 Thread David J
Thanks. I was searching for LOAD and I couldn't find it. Thanks Massimo for the enhancement. On May 27, 2011 4:49 PM, Anthony abasta...@gmail.com wrote: LOAD is just a name defined in the request environment that refers to a LoadFactory object, which is defined in compileapp.py. The LOAD

Re: [web2py] What if Massimo got hit by a Bus?

2011-05-26 Thread David J.
Q. What if Massimo got hit by a Bus? A. The bus would break. My .02 :) On 5/26/11 2:08 PM, Jason Brower wrote: On 05/26/2011 05:15 PM, Bob Blanchett wrote: I just read this presentation by by GvR/BDFL http://mvdirona.com/jrh/TalksAndPapers/GuidoVanRossum_21_years_of_python.pdf on 21 years

Re: [web2py] ATTENTION trunk users!!!!

2011-05-25 Thread David J.
Thanks Massimo; Sounds good; Perhaps you can also let us know when it is safe to pull from Trunk for those using trunk in production. Thanks. David On 5/25/11 2:20 PM, Massimo Di Pierro wrote: There is a new feature in trunk that needs tests and CAN mess up your database metadata so...

Re: [web2py] Re: ATTENTION trunk users!!!!

2011-05-25 Thread David J.
Yes; Thats True; if production == True: 'clone stable' else: 'good luck buster' On 5/25/11 3:50 PM, Massimo Di Pierro wrote: It is never safe to pull from trunk. ;-) when it is safe I move it to stable by the way I added support for circular references:

Re: [web2py] Re: ATTENTION trunk users!!!!

2011-05-25 Thread David J
Hey sorry for the delayed response. But if was meant as joke. On May 25, 2011 7:30 PM, pbreit pbreitenb...@gmail.com wrote: I suspect he meant $hg update R-1.95.1 And, more Pythonic: if production: ...

[web2py] Strange Flashing of Elements

2011-05-24 Thread David J.
Hi List, I was wondering why I see the css 'hidden' elements flash quickly on the page when the page is reloaded; then do the animation? For example when I submit an invalid form I see the hidden form error fields flash quickly then disappear then do the normal animation. I was wondering

Re: [web2py] Re: Strange Flashing of Elements

2011-05-24 Thread David J.
Thanks Ross; So I suspect because I changed it to 'block' its flashing quickly; But I made the element a block so perhaps I have to write another div around the element to make it display correctly. Thanks. On 5/24/11 1:16 PM, Ross Peoples wrote: Some elements are set to display: none, like

[web2py] reponse.js Update 2 Targets.

2011-05-24 Thread David J.
I was wondering how I can update 2 targets with reponse.js? I tried this response.js = 'web2py_component(url,target);web2py_component(other_url,other_target);' Seems only the first updated. Any ideas?

Re: [web2py] Re: reponse.js Update 2 Targets.

2011-05-24 Thread David J.
I am using Trunk; Is my syntax correct? should it be a ',' instead of a ';' response.js = 'web2py_component(url,target),web2py_component(other_url,other_target);' On 5/24/11 11:40 PM, Massimo Di Pierro wrote: There is no reason why it should not work. Are you using trunk? There was in

[web2py] Basic Auth on certain URL

2011-05-23 Thread David J.
I was wondering how I can force basic auth on just one url? I have this. from this page http://www.web2py.com/book/default/chapter/08#Access-Control-and-Basic-Authentication @auth.requires_login() def stream(): auth.settings.allow_basic_login = True (this is set to False in the book)

Re: [web2py] Re: Basic Auth on certain URL

2011-05-23 Thread David J.
Strange I tried that; my controller is default.py if request.function == 'stream': auth.settings.allow_basic_login = True def stream(): stream = 'http://mystream...' return dict(stream=stream) but when I visit http://mydomain.com/stream I get the stream url; I would have

Re: [web2py] Re: Basic Auth on certain URL

2011-05-23 Thread David J.
This Seems to be just doing a http redirect to the login page still I tried this again on Trunk version.

Re: [web2py] Re: Basic Auth on certain URL

2011-05-23 Thread David J.
Got you; I see; so I have to configure Apache to pop the auth box and then pass it to my web2py app. Sorry I mis-understood what was supposed to happen. I always was under the impression that if you visited a page that used basic auth; it would force the borwser to pop a box for

Re: [web2py] Re: Basic Auth on certain URL

2011-05-23 Thread David J.
I thought the same; Perhaps that should be changed. However; one thing I got confused was that web2py handles basic auth via sending 'username:p...@domain.com' Which is Fine; But Massimo pointed out something I was trying to do that is not really the way it works. Currently I have an App

  1   2   3   >