Re: [web2py] Re: This javascript worked in older version of web2py - not in trunk version.

2013-07-25 Thread Johann Spies
Thanks Richard and Paolo. Regards Johann > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit

[web2py] optimizing for mobile devices

2013-07-25 Thread BlueShadow
Hi, since my Mobile menu links to non existing stuff "%20CA% or something like that I want to use the normal menu which I find way nicer. I guess I need to change this line: {{=MENU(response.menu, _class='mobile-menu' if is_mobile else 'sf-menu',mobile=is_mobile)}} the second thing I would love

[web2py] How can I check if a IS_IN_SET validator is set for a field and get the validtor values?

2013-07-25 Thread Sarbjit singh
I have a db where I have set validator IS_IN_SET on a particular field. I am generating table rows (to be used as form), so I need to check if a particular field is having IS_IN_SET validator set and I want to retrieve the set values. Reason I want to do this is that I am generating a dynamic f

Re: [web2py] Re: Appending for validation using jQuery.

2013-07-25 Thread Prasad Muley
Now it's Working. Thank you for quick response. On Thu, Jul 25, 2013 at 7:26 PM, Paolo Caruccio wrote: > Please try; > > jQuery("Please Enter Name").appendTo(jQuery > ("#taxpayer_name").parent()); > > or > > jQuery("Please Enter Name").insertAfter( > "#taxpayer_name"); > > Your code fails becaus

Re: [web2py] Re: [web2pyy] Mysql 2 Mongodb

2013-07-25 Thread Mike Veltman
On Wednesday 24 July 2013 18:34:08 Alan Etkin wrote: Note: If you are restoring data with the DAL method import_from_csv_file (not the Table class method) using id_map={}, which is the method that should be used to keep references in sync, you should not have issues keeping reference values. I

[web2py] linked_list dict() - local variable 'fld' referenced before assignment

2013-07-25 Thread James Burke
Hi, I just migrated my code from 2.4.6 to 2.5.1, I've encountered a problem trying to use a dict in my smartgrid with the following code: def test(): form = SQLFORM.smartgrid(db.supply, fields=dict(supply=[db.supply.id]),linked_tables =dict(supply=['job','file'])) return dict(test=form

[web2py] SQLFORM.factory and keepvalues ... the arg doesn't work for me.

2013-07-25 Thread Tim Richardson
I noticed that SQLFORM.factory with argument keepvalues=True doesn't work, but if form.process(keepvalues=True).accepted: works fine. This is with trunk. Just wondering if this is intended behaviour, or maybe I have a subtle error in my use of SQLFORM. If it's really a bug I'll post a ticket.

Re: [web2py] jQuery bug in view. Trying to show/hide a textbox based on a checkbox being checked.

2013-07-25 Thread Jordan Ladora
Perfect - thanks for your help. I was sloppy with the javascript.. Best, -j On Thu, Jul 25, 2013 at 4:21 PM, Paolo Caruccio wrote: > I double checked your script and I discovered some errors. > > Please try this: > > > jQuery(document).ready(function() { > jQuery('#no_table_cnd').change(fu

Re: [web2py] Re: onvalidation upload size

2013-07-25 Thread __pyslan__ - Ayslan Jenken
Works with: print request print request.vars print request.vars.file_name But if i put for example: print request.var._formname Doesn't work! I have to print something related with file_name field. On Thu, Jul 25, 2013 at 8:30 PM, __pyslan__ - Ayslan Jenken < ayslan.pyt...@gmail.com> wrote:

Re: [web2py] Re: onvalidation upload size

2013-07-25 Thread __pyslan__ - Ayslan Jenken
I'm sorry, web2py version is 2.5.1. On Thu, Jul 25, 2013 at 8:27 PM, __pyslan__ - Ayslan Jenken < ayslan.pyt...@gmail.com> wrote: > I don't understand too, I do not see any connection, but I'm sure... > Without "print request" command the file uploaded has 0 bytes. With "print > request" command

Re: [web2py] Re: onvalidation upload size

2013-07-25 Thread __pyslan__ - Ayslan Jenken
I don't understand too, I do not see any connection, but I'm sure... Without "print request" command the file uploaded has 0 bytes. With "print request" command the file uploaded has the correct size... On Thu, Jul 25, 2013 at 10:04 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Ar

Re: [web2py] jQuery bug in view. Trying to show/hide a textbox based on a checkbox being checked.

2013-07-25 Thread Paolo Caruccio
I double checked your script and I discovered some errors. Please try this: jQuery(document).ready(function() { jQuery('#no_table_cnd').change(function(){ if( jQuery('#no_table_cnd').prop('checked') ){ jQuery('#no_table_nnd__row').show(); }else{ jQuery

Re: [web2py] jQuery bug in view. Trying to show/hide a textbox based on a checkbox being checked.

2013-07-25 Thread Jordan Ladora
Hi Paolo, Thanks, but no luck.. I replaced if( jQuery('#no_table_cnd').attr('checked') ); with if( jQuery('#no_table_cnd').prop('checked') ); ..but the box is still displayed by default & doesn't change when I check/uncheck the checkbox.. Cheers, -j On Thu, Jul 25, 2013 at 12:3

[web2py] Re: Web2Py + TurnkeyLinux and Apache

2013-07-25 Thread james c.
Thanks Massimo, The appliance installed is web2py-12.1-squeeze-amd64. Also available from http://www.turnkeylinux.org/web2py I think these are also referred to as a Patch. Maybe my application is running with Apache - at least in the Web2Py webadmin page it shows Apache running. In the installa

Re: [web2py] Re: real time graph

2013-07-25 Thread António Ramos
Did you get the CCNA? Congrats! Are u Portuguese? 2013/7/25 Vera Moreira > thank you all for your answers, sorry about the "missing in action" I had > to take my CCNA certification so I Left this behind ... > For what I need I think I will try the web-sockets, them we will see... > > thank you,

[web2py] Re: real time graph

2013-07-25 Thread Vera Moreira
thank you all for your answers, sorry about the "missing in action" I had to take my CCNA certification so I Left this behind ... For what I need I think I will try the web-sockets, them we will see... thank you, vera > -- --- You received this message because you are subscribed to the G

[web2py] crud.create, field.writable=False custom alert on myValidation

2013-07-25 Thread Antonis Konstantinos Tzorvas
hi, i'm having this model: table('stations', Field('name')) db.stations.name.requires = IS_NOT_IN_DB(db, 'stations.name') and i am creating a crud.create with this: if request.vars: db.stations.name.default = request.get_vars['_name'] db.stations.name.writable = False form = crud.creat

Re: [web2py] Crud on public ip

2013-07-25 Thread Richard Vézina
I think you need to create view for your controller. When you are local web2py allow generic.html view, but when you are "prod" it prevent the use of generic.SOMETHING because security hole it could causes. My best guess. Richard On Thu, Jul 25, 2013 at 12:08 PM, Pierpaolo Da Fieno < pierpaol

[web2py] Re: web2py Demos - Down?

2013-07-25 Thread dederocks
Same for me. Le jeudi 25 juillet 2013 20:55:31 UTC+2, Ben A a écrit : > > Is it just me, or is everyone getting errors when they try to access the > demos for web2py found here: http://web2py.com/demo_admin/default/site > -- --- You received this message because you are subscribed to the Goog

[web2py] Re: Type-checking error messages built into the DAL insert() function

2013-07-25 Thread David Ripplinger
Hmm. I admit I made a few assumptions based on the incident I experienced and how I saw things done in a couple examples in the book. To be precise, I created a form using the FORM function, where one field was meant to be used as a date (had a requires=is_date() on it). I then passed the submi

[web2py] Crud on public interface

2013-07-25 Thread Pierpaolo Da Fieno
Hello to everyone. I came upon this strange behaviour: If web2py is running on a public interface and you try to access a page which uses Crud a 404 error will pop up. The same page works perfectly if the server runs on localhost. I tried the thing on both linux and windows with the same resul

[web2py] web2py Demos - Down?

2013-07-25 Thread Ben A
Is it just me, or is everyone getting errors when they try to access the demos for web2py found here: http://web2py.com/demo_admin/default/site -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiv

[web2py] Crud on public ip

2013-07-25 Thread Pierpaolo Da Fieno
Hello to all. while I was developing an application I came upon this strange behaviour: If I run web2py server on a public ip and I try to access a page with a controller using crud, I get a 404 error. The same page is perfectly working when I start the server on localhost. I tried it both on wi

[web2py] Re: Trouble importing several modules using GAE

2013-07-25 Thread Massimo Di Pierro
Some modules do something very weird. Some of them have conditional imports and some assume they are installed in a certain location. I wish this was handled better by Python. On Thursday, 25 July 2013 14:03:23 UTC-5, Quint wrote: > > Thanks! > > Ok, *openid *and *python-social_auth* are now wor

[web2py] Re: Type-checking error messages built into the DAL insert() function

2013-07-25 Thread Massimo Di Pierro
This is done on purpose and it is should not be corrupting the database. About date/datetime. All database (as far as I know) take datetime in input as a iso string. In fact if you were to pass a datatime object it would be converted to a datetime object. sqlite is special because not only take

Re: [web2py] jQuery bug in view. Trying to show/hide a textbox based on a checkbox being checked.

2013-07-25 Thread Paolo Caruccio
Maybe related with https://groups.google.com/d/msg/web2py/om58tz-DVOk/Lt5beXcLiH8J By resuming the api: *As of jQuery 1.6*, the .prop() method provides a way to explicitly > retrieve property values, while .attr() retrieves attributes. Therefore, you should replace .attr() with .prop() if yo

Re: [web2py] jQuery bug in view. Trying to show/hide a textbox based on a checkbox being checked.

2013-07-25 Thread Jordan Ladora
Hi, I'm still stuck here.. I tried a few other things. I just want to show/hide #nnd based on whether or not #cnd is checked. This example is in the manual, but I still cannot get it to work.. Here's the form- fields = [] fields.append( Field( 'cnd', 'boolean', default=True) ) fields.

[web2py] Re: Trouble importing several modules using GAE

2013-07-25 Thread Quint
Thanks! Ok, *openid *and *python-social_auth* are now working. I indeed needed to install the openid properly and copied the result to my project. (i was stupid and thought i could just copy over the source files...) Only *nltk *still won't import. I installed using pip and now i can import it

[web2py] Re: Password reset forms - no validation

2013-07-25 Thread Anthony
When the form doesn't validate but you get no error messages, it often means the _formkey checked didn't pass (the _formkey is stored in the session, so often this is due to an issue with the session or cookies). Anthony On Thursday, July 25, 2013 1:50:09 PM UTC-4, lesssugar wrote: > > No. Cook

Re: [web2py] Re: This javascript worked in older version of web2py - not in trunk version.

2013-07-25 Thread Paolo Caruccio
Yes the issue is due to jquery version. In your code, please replace .prop() to .attr() (for reference see http://api.jquery.com/prop/) Below code worked in my test: jQuery(document).ready(function(){ jQuery('#a2_other').hide(); jQuery('#survey_a2').change(function(){ conso

[web2py] Type-checking error messages built into the DAL insert() function

2013-07-25 Thread David Ripplinger
Currently, the DAL insert() function allows one to insert a record with a DATE field containing a string type using sqlite as the database. My guess is that there are other types that also go unchecked within the insert() function. I think it would be a good idea to raise an exception or someth

[web2py] Re: Password reset forms - no validation

2013-07-25 Thread lesssugar
No. Cookies are on. I'm not clearing the session explicitly anywhere in the code neither. Just created dummy app to test password reset - and validation works fine in both forms (requesting reset, creating new password). default/user function of the dummy application is standard and it looks ju

Re: [web2py] Re: Behavior Driven Development in Web2Py

2013-07-25 Thread Richard Vézina
Just want to thank you Simone (Niphold) for all your contributions to web2py project... It's really appreciated when someone is dedicated such as you. I can't contribute as much as you do, but I appreciate very much your work. Also Vinicius, really like your effort for the testing app... :) Rich

[web2py] Re: strange decimal form field comparison result

2013-07-25 Thread Willoughby
I've not tried it, but this may help from the book: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Record-representation "Decimal requires and returns values as Decimal objects, as defined in the Python decimal module. SQLite does not handle the decimal type so inte

[web2py] Re: Trouble importing several modules using GAE

2013-07-25 Thread Massimo Di Pierro
When not on GAE, if you properly pip install the packages, do they work as expected? On Thursday, 25 July 2013 11:50:02 UTC-5, Quint wrote: > > Hi, > > I'm using *GAE with the development server* and i'm unable to import > several external modules. > > > I will try to list the modules i'm tryin

[web2py] Re: IOS, Json, Web2py.

2013-07-25 Thread Ray (a.k.a. Iceberg)
On Friday, July 26, 2013 12:45:58 AM UTC+8, Ray (a.k.a. Iceberg) wrote: > > > > On Tuesday, June 11, 2013 5:14:42 AM UTC+8, Niphlod wrote: >> >> ps: recent web2py releases should parse application/json POSTs >> transparently, no need to request.body.read() anymore it goes all in >> request.

[web2py] Trouble importing several modules using GAE

2013-07-25 Thread Quint
Hi, I'm using *GAE with the development server* and i'm unable to import several external modules. I will try to list the modules i'm trying to import and the problems i encounter with it: *python-social-auth* https://github.com/omab/python-social-auth/ I put this module in the site-packag

[web2py] Re: IOS, Json, Web2py.

2013-07-25 Thread Ray (a.k.a. Iceberg)
On Tuesday, June 11, 2013 5:14:42 AM UTC+8, Niphlod wrote: > > ps: recent web2py releases should parse application/json POSTs > transparently, no need to request.body.read() anymore it goes all in > request.vars and request.post_vars as usual. > > Sorry to chime in an old thread, but which

[web2py] Re: Password reset forms - no validation

2013-07-25 Thread Anthony
Is it possible that cookies are disabled or that the session is somehow getting cleared (e.g., session.forget() or session.clear())? On Thursday, July 25, 2013 11:49:54 AM UTC-4, lesssugar wrote: > > When submitting the form with different passwords - the page reloads and > that's it. No validat

[web2py] Re: Password reset forms - no validation

2013-07-25 Thread lesssugar
When submitting the form with different passwords - the page reloads and that's it. No validation, no error response.flash, nothig. web2py version: 2.4.7-stable On Thursday, July 25, 2013 5:44:18 PM UTC+2, Anthony wrote: > > What happens if the passwords are different? Which version of web2py? >

[web2py] Re: Password reset forms - no validation

2013-07-25 Thread Anthony
What happens if the passwords are different? Which version of web2py? On Thursday, July 25, 2013 11:14:21 AM UTC-4, lesssugar wrote: > > Thanks, Anthony, I removed the if statement and it worked for > request_reset_password. > > However, after I click the link sent to e-mail address, the reset_pa

[web2py] Re: strange decimal form field comparison result

2013-07-25 Thread Christian Foster Howes
never trust > or < on decimal or floats. both are an in-exact representations of numbers and can have unexpected behaviors for numbers that are close to each other. i have converted my applications that use prices to store all prices in the DB in cents as integers and convert on display to th

[web2py] Re: Password reset forms - no validation

2013-07-25 Thread lesssugar
Thanks, Anthony, I remofed the if statement and it worked for request_reset_password. However, after I click the link sent to e-mail address, the reset_password form still doesn't process "New password" and "Verify password" fields. The inputs can be empty, the passwords can be different - no v

[web2py] Re: Question about @request.restful

2013-07-25 Thread Franco
currently i'm using this version: 2.4.6-stable+timestamp.2013.04.06.17.37.38 El jueves, 25 de julio de 2013 11:26:07 UTC-3, Niphlod escribió: > > ehm? recent web2py should parse application/json POSTs just fine !?! > > On Thursday, July 25, 2013 3:07:02 PM UTC+2, Massimo Di Pierro wrote: >> >> Th

[web2py] Re: Question about @request.restful

2013-07-25 Thread Franco
thanks, that's right! now it works. Thanks for the hint ;-) El jueves, 25 de julio de 2013 10:07:02 UTC-3, Massimo Di Pierro escribió: > > The problem is that angular sends the request variables as json in body > and not urlencoded (an expected) So you must replace > > def POST(table_name, **vars

[web2py] Re: Password reset forms - no validation

2013-07-25 Thread Anthony
> def user(): > > auth.settings.formstyle = 'divs' > > if request.args(0) == 'request_reset_password': > auth.request_reset_password(next = URL('default', 'index')) > > return dict(form=auth()) > Your code is creating and processing the form twice. auth.request_reset_password(...) creates a

[web2py] Re: AWS Elastic Beanstalk installation Recipe

2013-07-25 Thread Aladdin Teng
Thank you very much. On Thursday, July 25, 2013 8:53:33 PM UTC+8, Massimo Di Pierro wrote: > > The instructions should be almost identical except that: > > 1) you do not pip install Django > 2) you do not ever call django-admin > 3) instead you download and unzip web2py. The web2py folder plays th

[web2py] Password reset forms - no validation

2013-07-25 Thread lesssugar
I'm using default/user/*request_reset_password* and default/user/* reset_password* in my app. Neither request_reset_password, nor reset_password form performs validation on user's input. Seems strange, as the form is a clear auth(). Code: default/user: def user(): auth.settings.formstyle = 'di

[web2py] Re: Question about @request.restful

2013-07-25 Thread Niphlod
ehm? recent web2py should parse application/json POSTs just fine !?! On Thursday, July 25, 2013 3:07:02 PM UTC+2, Massimo Di Pierro wrote: > > The problem is that angular sends the request variables as json in body > and not urlencoded (an expected) So you must replace > > def POST(table_name, **

[web2py] Re: Left Join on fields other than id

2013-07-25 Thread villas
Not sure whether this is your problem, but I thought that orderby used the syntax: orderby = db.mytable.a | db.mytable.b I didn't know we could use lists? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group an

Re: [web2py] Re: Appending for validation using jQuery.

2013-07-25 Thread Paolo Caruccio
Please try; jQuery("Please Enter Name").appendTo(jQuery( "#taxpayer_name").parent()); or jQuery("Please Enter Name").insertAfter( "#taxpayer_name"); Your code fails because the div.error is created inside the input element Il giorno giovedì 25 luglio 2013 13:39:34 UTC+2, Prasad Muley ha scritt

Re: [web2py] How to show column from 1:N relation in SQLFORM.grid for child table ?

2013-07-25 Thread Richard Vézina
represent=lambda value, row: db.customers_company(value).company_name if value is not None and value != '' else T('N/A') Or format='%(company_name)s' on customers_comapny table at the end of you define_table. Richard If you want to search the company name, you have to pass a query to SQLFORM.gr

Re: [web2py] Re: This javascript worked in older version of web2py - not in trunk version.

2013-07-25 Thread Richard Vézina
So, some of your jquery code use deprecated stuff... .live() deprecated for instance, replaced by .on() Maybe look at the jquery change log and see what the removed and than make a grep 'deprecated jquery' on your code base!! Richard On Thu, Jul 25, 2013 at 6:12 AM, Johann Spies wrote: > I did

[web2py] Re: Web2Py + TurnkeyLinux and Apache

2013-07-25 Thread Massimo Di Pierro
I do not know what the appliance does. Can you show us the code? On Wednesday, 24 July 2013 15:03:27 UTC-5, james c. wrote: > > I easily deployed my Web2Py app "with just a few clicks" through the > TurnKeyLinux Hub onto Amazon EC2. The Web2Py Admin console shows that the > app is running with A

[web2py] Re: auth_event logging

2013-07-25 Thread Massimo Di Pierro
Are you sure auth.settings.logging_enabled = True ? On Wednesday, 24 July 2013 09:04:07 UTC-5, Marin Pranjić wrote: > > I am using trunk. When I register, login or update profile, auth_event > records are not created. > Sorry I don't have time to look more into it. > > Marin > > -- --- Yo

[web2py] Re: Question about @request.restful

2013-07-25 Thread Massimo Di Pierro
The problem is that angular sends the request variables as json in body and not urlencoded (an expected) So you must replace def POST(table_name, **vars): print(vars) with def POST(table_name): vars = json.loads(request.body.read()) print(vars) On Tuesday, 23 July 2013

[web2py] Re: onvalidation upload size

2013-07-25 Thread Massimo Di Pierro
Are you sure about your point 2. I do not see how adding a print statement can affect the working (or not working) of this form. On Tuesday, 23 July 2013 21:18:07 UTC-5, __pyslan__ wrote: > > Hello everybody. > > > I'm trying upload files with SQLFORM.grid. > > Model: > > FilesUploaded = db.defin

[web2py] Re: need help testing app

2013-07-25 Thread Massimo Di Pierro
One problem I see is that the zip code is validated but one may still pass zip codes which pass validations but are invalid (in the sense that they produce no data) and the page displays "None". On Sunday, 21 July 2013 17:17:48 UTC-5, Massimo Di Pierro wrote: > > Thank you margaret. Will test it

[web2py] Re: AWS Elastic Beanstalk installation Recipe

2013-07-25 Thread Massimo Di Pierro
The instructions should be almost identical except that: 1) you do not pip install Django 2) you do not ever call django-admin 3) instead you download and unzip web2py. The web2py folder plays the role of the mysite folder in the example 4) you do not edit any django config file (there is no djan

[web2py] Re: Web2py sem Segredos

2013-07-25 Thread MrEdusi
Uma pena que não pude assitir , mas já baixei uns videos muito bons. Em quarta-feira, 24 de julho de 2013 16h54min20s UTC-3, MrEdusi escreveu: > > Legal.. vou assitir! > > Em terça-feira, 23 de julho de 2013 19h31min29s UTC-3, Ovidio Marinho > escreveu: >> >> As 20:00hs hoje não percam >> >> ht

Re: [web2py] Re: Appending for validation using jQuery.

2013-07-25 Thread Prasad Muley
has anybody got my question? On Thu, Jul 25, 2013 at 2:30 PM, Prasad Muley wrote: > Hello Joe, > I made a mistake while pasting. // working isn't there in > updated code. > actual code is > {{extend 'layout.html'}} > {{=form}} > > jQuery(document).ready( function(){ >

[web2py] Left Join on fields other than id

2013-07-25 Thread Simon Carr
Hi I have the following code RSRecs = db(query).select( db.weekly_data_reporting.supplier_code, db.weekly_data_reporting.supplier_name, db.weekly_data_reporting.item,

Re: [web2py] Re: This javascript worked in older version of web2py - not in trunk version.

2013-07-25 Thread Johann Spies
I did that (again) now and immediately the javascript stopped working as expected. Then I just put back the file jsquery (*/*! jQuery v@1.8.0)* from the older copy of the app and the javascript worked again as expected. Regards Johann On 24 July 2013 18:42, Richard Vézina wrote: > Johann don'

[web2py] How to show column from 1:N relation in SQLFORM.grid for child table ?

2013-07-25 Thread David Marko
I have a simple 1:N relation (I think its very common scenatio) as you can see below. Now how can I create a query form SQLFORM.grid to show 'customer_person' table but view company_name in 'company' column instead of ID? I tried to put this query to grid 'db_companies.id == db_persons.company

[web2py] Re: Link to default value for db table field

2013-07-25 Thread shapovalovdenis
Thanks Massimo, Your guess is right, only all pages have footer, but let's say 90% of them have the same block_footer, and other 10% have original, unique block_footer, so I don't want to copy-paste content of first page with is_index == True, but at the same time leave a possibility to define

[web2py] Re: Err 24: too many files open

2013-07-25 Thread Massimo Di Pierro
Thank you for letting us know. This will be useful to others. On Thursday, 25 July 2013 10:28:07 UTC+2, dederocks wrote: > > I found the problem! > > And the source was (of course) me. > > The connexion class was defined as follows: > > class Connexion(object): > > rCMD = redis.Redis(host='127

[web2py] Re: Err 24: too many files open

2013-07-25 Thread dederocks
I found the problem! And the source was (of course) me. The connexion class was defined as follows: class Connexion(object): rCMD = redis.Redis(host='127.0.0.1') def __init__(self): if not self.rCMD.exists('ConsistoPort'): (...) Which is

[web2py] Re: Appending for validation using jQuery.

2013-07-25 Thread Joe Barnhart
It's probably just a typo, but shouldn't there be a semi-colon after the line that is "// WORKING" as a comment? You need to separate javascript lines with semi-colons, except for the last statement in a function. (But even there it doesn't hurt anything if you put one in.) Get Firebug on Fir

[web2py] Re: Need Apache help for "uploads" directory

2013-07-25 Thread Joe Barnhart
Yes, the unix permissions on the filesystem are correctly set. I can su to www-data and create, edit, read, and destroy all the files and directories I want. But thru Apache -- nada. I think I'll just toss this VM and start over. I'm thinking KVM would be better than VirtualBox for this anyw

[web2py] In the form of custom smartgrid

2013-07-25 Thread Антон Бредников
As after a new entry to the table does not move, while still entering one entry? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@google

[web2py] Re: Link to default value for db table field

2013-07-25 Thread Massimo Di Pierro
The devil is in the details. I understand you store pages and some may have a block_footer and some may not. If they do not have a block_footer, how should the footer be determined? What is an index page? I am making a guess: record = db(query).select(db.page).first() default_footer=cache.ram('

[web2py] Re: Err 24: too many files open

2013-07-25 Thread Paolo Valleri
I am not a redis expert and I don't know how web2py handles the interaction with redis, either. However the scenario could be, either you instantiate one or more new connections for request or 'expired' connections are not closed. I am for the former case, could you post few lines where redis is