[web2py] Is it possible to chose the cache folder on disk?

2016-04-26 Thread Antonio
Hi, I'm using web2py to create a json to later use on a mobile app. The thing is that it takes a while to get all the information so I decided to use cache.disk to have my application cache on disk. I just pasted this on top my function: @cache(request.env.path_info, time_expire=600, cache_model

[web2py] cache.disk folder

2016-04-27 Thread Antonio
ory. Thanks for the help, Antonio -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google G

[web2py] How to add response headers to cache file?

2016-05-03 Thread Antonio
Hello again, I'm not really sure that I fomulated correctly the question, so sorry for that. I'm using web2py to get some data with which to create a dictionary that I'll later use on a mobile app. The thing is that it takes a while to get all the information (which will stay the same for long

[web2py] Re: How to add response headers to cache file?

2016-05-04 Thread Antonio
ing the "cachefiles" ? web2py caches - at most - the > rendered view, not the headers > > On Tuesday, May 3, 2016 at 4:30:46 PM UTC+2, Antonio wrote: >> >> Hello again, >> I'm not really sure that I fomulated correctly the question, so sorry for >> t

[web2py] Re: SQLFORM and read-only references

2011-02-07 Thread Juan Antonio
I have db.define_table('article', Field('name'),,format='%(name)s') db.define_table('lote', Field('name'),, Field('article', db.article) db.lote.article.requires = IS_IN_DB(db, db.article.id, '%(name)s') And SQLFORM(db.lote,..,readonly=True) shows 'None' in field articulo I think it is t

[web2py] Re: SQLFORM and read-only references

2011-02-09 Thread Juan Antonio
Yes, the nightly built works fine. Thanks. On 7 feb, 15:44, Massimo Di Pierro wrote: > Should be fixed in trunk already. Try the nightly built. > > On Feb 7, 4:46 am, Juan Antonio wrote: > > > I have > > > db.define_table('article', Field('name

[web2py] dict.__getitem__(self, key) KeyError: 'nombre'

2011-06-24 Thread Juan Antonio
Hello, Together with others tables I have this in my db.py file: ... db.define_table('fab_lote', Field('fabricacion', db.fabricacion), Field('lote', db.lote), Field('cantidad_orden', 'double'), Field('cantidad_gastado', 'double'), Field('coste_unitario', 'double')) whe

[web2py] Re: dict.__getitem__(self, key) KeyError: 'nombre'

2011-06-25 Thread Juan Antonio
#x27;, writable=False), Field('cerrado', writable=False, default='no'), Field('lote_fabricado', db.lote, writable=False), Field('observaciones', widget=SQLFORM.widgets.text.widget), format='%(nombre)s')) So that's it. Juan A.

[web2py] Is auth.settings.login_onfail a documented callback?

2016-05-23 Thread Antonio Salazar
I'm implementing a failed login cooldown timer usin: auth.settings.login_onfail = lambda: ... Searching here it seems as the recommended approach, but the callback is not mentioned in the manual. Is it a documented feature? P.S. The manual only mentions these login callbacks: auth.settings.lo

[web2py] Re: Is auth.settings.login_onfail a documented callback?

2016-05-24 Thread Antonio Salazar
Thank you. I actually got it working too, but I was worried it might change in later versions of web2py. On Monday, May 23, 2016 at 8:12:25 PM UTC-5, 黄祥 wrote: > > perhaps an example can speak thousand words : > e.g. > def login_onfail(form): > email = request.vars.email > row = db((db.auth_user.

[web2py] Re: Is auth.settings.login_onfail a documented callback?

2016-05-24 Thread Antonio Salazar
cumentation is just an oversight. > > Anthony > > On Monday, May 23, 2016 at 7:40:58 PM UTC-4, Antonio Salazar wrote: >> >> >> I'm implementing a failed login cooldown timer using: >> auth.settings.login_onfail = lambda: ... >> >> Searchin

[web2py] Re: Nginx & The Welcome App

2016-07-13 Thread Antonio Salazar
Have you changed your default application? http://web2py.com/books/default/chapter/29/04/the-core#Application-init On Wednesday, July 13, 2016 at 7:48:21 AM UTC-5, Mark Billion wrote: > > Nginx redirects my users from the website to the > website/welcome/indexmy app is t4. Ive tried to confi

[web2py] Re: user name case sensitivity

2016-07-18 Thread Antonio Salazar
In db.py, after declaring auth, use this to save all usernames and emails as lowercase. auth.settings.username_case_sensitive = False auth.settings.email_case_sensitive = False On Friday, July 15, 2016 at 11:37:41 AM UTC-5, kstesr...@gmail.com wrote: > > > Team, > > I see the login user is case

[web2py] Re: Excel like filter in grid

2016-07-26 Thread Antonio Salazar
This is very nice and user friendly! I noticed it takes a second or more per request. Does the number of criteria combinations affect performance? On Tuesday, July 26, 2016 at 2:26:16 AM UTC-5, Gael Princivalle wrote: > > Done it: > http://www.hydrover.it/en/search_product > > Thank's again to a

[web2py] Re: Is it possible reload my model.py from an ajax request?

2016-08-05 Thread Antonio Salazar
Are you saying you managed to cascade the dropdowns, or just make an AJAX call from the parent dropdown without refreshing the child? On Friday, August 5, 2016 at 11:28:44 AM UTC-5, Bernardo Leon wrote: > > Hi, I have an SQLFORM.grid form and when I am inserting data I want to > make the selecto

[web2py] Validate user account without login

2016-08-26 Thread Antonio Salazar
I have a working application which does LDAP authentication exclusively. I'm adding a a web service that generates an access token if the user and password passed to it by JSON are valid. I'm not sure about how to validate the account against LDAP inside the web service, but I'd really like to

[web2py] Re: Validate user account without login

2016-08-26 Thread Antonio Salazar
5:40:59 PM UTC-5, Antonio Salazar wrote: > > I have a working application which does LDAP authentication exclusively. > I'm adding a a web service that generates an access token if the user and > password passed to it by JSON are valid. > > I'm not sure about how to valid

[web2py] Is it risky to smuggle variables into a Row object?

2016-09-07 Thread Antonio Salazar
I have a function that returns several rows object, and each row needs a small list with valid workflow transitions. I feel the workflow transitions belong in a separate variable variable, but I tried adding it to each row, and it works and doesn't appear to interfere with database operations.

[web2py] Source control versioning and migrations

2015-11-27 Thread Antonio Salazar
What are the best practices (or personal experiences) when dealing with database migrations and source control versioning? I think database migration is one of the strong points of web2py, but what about migrations caused by checking out different branches? Example: - Version A is in produc

Re: [web2py] Source control versioning and migrations

2015-11-27 Thread Antonio Salazar
:53:57 PM UTC-6, Richard wrote: > > Hello Antonio, > > This is a vast subject... And all suggestions couldn't apply or you will > not agree with all... But here a couple of them : > > 1) Web2py app versioning tool only allow tracking of a single branch... > So, you cou

[web2py] Re: Dynamically change highlighted class for response.menu

2015-12-08 Thread Antonio ds
Hi Add this line before if (path) to ensure highlight on new/edit path = path.split('/',3).join('/'); El jueves, 9 de mayo de 2013, 14:25:00 (UTC-4:30), Niphlod escribió: > > > jQuery(function() { > var path = location.pathname.substring(1); > if ( path ) { > var els = jQuery('

[web2py] Custom select field (column)

2015-12-08 Thread Antonio ds
Hi I need to create a query with this field in it *ts_headline(documento.texto, to_tsquery('word'), 'MaxFragments=2, MinWords=5, MaxWords=8') *(a google like result field) How can i add a custom string field with DAL? Thnx in advance. -- Resources: - http://web2py.com - http://web2py.com/boo

[web2py] TechEmpower analysed the performance of many web frameworks, web2py included

2016-01-31 Thread Antonio Salazar
It doesn't look good on web2py, we're consistently in the last places. Other python frameworks like Django or Flask fared better. https://www.techempower.com/benchmarks/#section=data-r11&hw=peak&test=update Test source is here: https://github.com/TechEmpower/FrameworkBenchmarks/tree/master/framew

[web2py] Re: help needed with migration: ProgrammingError: column does not exist

2016-01-31 Thread Antonio Salazar
As a web2py user with a few months of experience, this is my experience with migrations: - Most of the time they work, specially if you use PostgreSQL - Sometimes they won't, and fake_migrate plus the sql log usually help to fix it. - In very rare occasions, fake_migrate might actual

[web2py] Re: TechEmpower analysed the performance of many web frameworks, web2py included

2016-02-01 Thread Antonio Salazar
Compile the application, which would typically be done in >production. > > The current web2py app is so far off from what would be deployed in > production, it would be much more appropriate to simply remove it from the > benchmarks altogether rather than leave it as is. >

[web2py] Granular transactions on scheduled tasks

2016-02-02 Thread Antonio Salazar
I have a scheduled task that midway should divide its work in two database transactions. It's obvious it should db.commit() after the first transaction, but how do I start the second transaction? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web

[web2py] Re: Granular transactions on scheduled tasks

2016-02-02 Thread Antonio Salazar
gt; implicitly. > if you need to treat two separate "queues" of commands, and retain the > possibility to commit() both, or one, or none, or rollback() both, or one, > or none, you NEED to use two different connections (i.e. db = DAL('') > and db2 = DAL('...&

[web2py] Can A(cid='...') replace the "loading..." text as LOAD(content='...') does?

2016-02-05 Thread Antonio Salazar
LOAD(content=x) will replace the button with x (default content is "loading...") until it gets a response back. A() also replaces itself with "loading..." when using the callback or cid parameters, but I don't see a builtin way to replace "loading..." with, for example, a spinner image. What al

[web2py] Re: Can A(cid='...') replace the "loading..." text as LOAD(content='...') does?

2016-02-09 Thread Antonio Salazar
ng...". it's customizable too, > using _disable_with > > On Saturday, February 6, 2016 at 12:10:15 AM UTC+1, Antonio Salazar wrote: >> >> LOAD(content=x) will replace the button with x (default content is >> "loading...") until it gets a response back. >> A

[web2py] Changing the first day of week of the calendar widget

2016-02-18 Thread Antonio Salazar
The first day of week is important because the week number is dependent on it. It currently is Sunday, but I need it to be Monday. Example: January 1st 2016 is in week 52 if the first day is Sunday, but it's in week 53 if the first day is Monday. I tried including the parameter *fdow: 1* in the

[web2py] Re: CMS WEB2PY

2016-02-18 Thread Antonio Salazar
Bootstrap3 discontinued submenu support in dropdown menus, which is to say we are limited to two-level menus. I guess you'll have to redesign the navigation or somehow re-add dropdown submenus. Congratulations! I was eagerly expecting to cjeck your CMS, but didn't see this on time, sorry for co

[web2py] Custom importer not reloading app modules

2016-02-23 Thread Antonio Salazar
I understand that the custom importer in gluon can track changed app modules and reimport them transparently. This is not happening in my case, I have to restart web2py to see new module changes. Do I have to do anything else besides the usual 'import xyz'? I'm using web2py 2.12.3 on Windows w

[web2py] Re: Custom importer not reloading app modules

2016-02-23 Thread Antonio Salazar
, Antonio Salazar wrote: > > I understand that the custom importer in gluon can track changed app > modules and reimport them transparently. > > This is not happening in my case, I have to restart web2py to see new > module changes. Do I have to do anything else besides the us

[web2py] Re: IMPORTANT SECURITY ISSUE

2016-03-19 Thread Antonio Salazar
Since this is not a vulnerability, can Examples be simply disabled? On Tuesday, March 15, 2016 at 10:43:24 AM UTC-6, Massimo Di Pierro wrote: > > An important security issue has come up. > > If you use web2py in production with the rocket web server (which you > should not anyway): > 1) delete th

[web2py] Re: bug? menu v2.14.3

2016-04-04 Thread Antonio Salazar
What good alternatives are to third-level menus? I've seen side menus used instead, but having two menus feels weird on a desktop. On Monday, April 4, 2016 at 3:20:59 AM UTC-5, Leonel Câmara wrote: > > 3rd level menus are not a very good feature nowadays because they trully > suck on mobile in t

[web2py] Re: bug? menu v2.14.3

2016-04-04 Thread Antonio Salazar
I'm having trouble with this because my main application is an intranet. There sitemap is complex, yet some modules by themselves would warrant a nested menu. Currently I'm getting by using buttons, tabs, and dropdowns, but a nested menu would be the fastest way to navigate the site. The mobile

Re: [web2py] new Starter app (alternative to Welcome app)

2016-04-27 Thread Antonio Salazar
The login menu dropdown also becomes white on white on small screen sizes. Looks really nice on those screens, though. On Monday, April 25, 2016 at 6:27:14 PM UTC-5, Michael Beller wrote: > > Yes - thanks. I knew about that bug, just fixed it. The background and > font were both white. Can you

[web2py] User group names based on username instead of id

2016-05-04 Thread Antonio Salazar
I've disabled user group creation, but now I need user-specific permissions, so I'm going to re-enable it and create the missing user groups. I'd really like the groups to be user_[username] instead of user_[user_id]. Is there an upgrade-friendly way to base the group name on something other th

[web2py] Re: User group names based on username instead of id

2016-05-04 Thread Antonio Salazar
h has a default of > > "user_%(id)s" > > can be used. in your case it seems that setting it to user_%(username)s > should do the trick. > > On Wednesday, May 4, 2016 at 8:48:49 PM UTC+2, Antonio Salazar wrote: >> >> I've disabled user group creation, but n

[web2py] Re: User group names based on username instead of id

2016-05-04 Thread Antonio Salazar
esday, May 4, 2016 at 9:59:13 PM UTC+2, Antonio Salazar wrote: >> >> Thank you! >> >> For some reason I was thinking of this setting as a boolean, and figuring >> how to use a callback to rename the group :/ >> >> P.S. for completeness. >> >

[web2py] Re: Scheduler workers crash on usage of urllib

2018-04-06 Thread Antonio Salazar
Shouldn't this warrant a new release? The last stable release is 2.16.1 and the import is missing there. On Saturday, December 16, 2017 at 3:47:06 PM UTC-6, Massimo Di Pierro wrote: > > fixed on gitghub. thanks for reporting it. > > On Thursday, 7 December 2017 06:26:33 UTC-6, Ryan Herbert wrote:

[web2py] Exception while handling exception at gluon/streamer.py (python 3)

2018-04-18 Thread Antonio Salazar
Now that web2py supports python 3, I just went on and migrated my website. All works fine, except for a crash which I'm not sure how to handle. I get this when the browser looks for /favicon.ico (a non-existent file because it's in /images/favicon.ico) Traceback (most recent call last): File "

[web2py] Re: Exception while handling exception at gluon/streamer.py (python 3)

2018-04-18 Thread Antonio Salazar
PM UTC-5, Antonio Salazar wrote: > > Now that web2py supports python 3, I just went on and migrated my website. > All works fine, except for a crash which I'm not sure how to handle. > > I get this when the browser looks for /favicon.ico (a non-existent file > because it&#

[web2py] Re: Exception while handling exception at gluon/streamer.py (python 3)

2018-04-19 Thread Antonio Salazar
Is anyone running into this issue? It's happening both in Windows and Linux. Should I postpone migrating to python3? On Wednesday, April 18, 2018 at 4:04:57 PM UTC-5, Antonio Salazar wrote: > > The bug is very easy to reproduce: > >- Clone the repository from GitHub &

Re: {Disarmed} Re: [web2py] Re: Exception while handling exception at gluon/streamer.py (python 3)

2018-04-19 Thread Antonio Salazar
th the error traces. Sometimes > is difficult to find what is failing. > > Greetings. > > El 19/04/18 a las 13:50, Antonio Salazar escribió: > > Is anyone running into this issue? It's happening both in Windows and > Linux. > Should I postpone migrating to python3? &g

[web2py] Re: python2 and python3 in 1 machine

2018-05-16 Thread Antonio Salazar
You just install them both, as your instructions say. If you want to start wen2py in python2, just execute it with python: python web2py.py If you want to start web2py in Python 3, execute it with python3: python3 web2py.py This is how I do it in Linux, but I'm almost sure MacOS does it the same

[web2py] Re: Why not to mention support to Python3 on the official sites main page?

2018-07-19 Thread Antonio Salazar
Last April I downloaded the latest official stable release (2017-11-14) and adjusted all my code for Python 3. Unfortunately, two serious bugs in the streamer and scheduler made return to Python 2. Both bugs are fixed in Github, but I'm wary of trying it again until it's better tested on Python

[web2py] Re: Why not to mention support to Python3 on the official sites main page?

2018-07-20 Thread Antonio Salazar
I try to, as this is the only py2 app I support, but these months I've been swamped with work. I'll resume testing in September. On Friday, July 20, 2018 at 9:06:46 AM UTC-5, Ari Lion BR Sp wrote: > > Hi Antonio Salazar, > > But if we do not test, we would not have how t

[web2py] Scheduler workers die on python 3 + Ubuntu 18.04

2018-08-29 Thread Antonio Salazar
Using python 2 on the same system, the scheduler is rock-solid, but using python 3 the workers die after processing a task. The rest of the tasks are left in queue and the worker entry is deleted from the scheduler_worker table. Aug 28 20:22:03 ubuntu1806 sudo[16121]: Exception in thread Thread

[web2py] Re: Scheduler error using python3.6 and psycopg2

2018-08-31 Thread Antonio Salazar
I separately had the same problem recently and created a github issue . If this got implemented please close that issue. On Sunday, July 15, 2018 at 2:17:25 PM UTC-5, Massimo Di Pierro wrote: > > Good catch. Will implement this. > > On Wednesday, 20

[web2py] Re: deadlock detected schedule

2018-10-23 Thread Antonio Salazar
Did you remember to db.commit() or db.rollback() in your tasks? In the scheduler web2py automatically starts the transaction, but you have to manually COMMIT or ROLLBACK before returning. On Tuesday, October 23, 2018 at 12:15:35 AM UTC-5, Ruben Quintana wrote: > > I have a lot of errore in the po

Re: [web2py] Re: Future of web2py

2018-11-16 Thread Antonio Salazar
As a user, it looks nice but has horrible usability. - Simply moving the cursor to the wrong place can slide the whole dashboard several centimeters to the side. - Activating the right panel scrolls the left panel trigger as if going *beyond* the left border of the screen. You have t

[web2py] Re: web2py 2.9.10 is OUT

2014-09-17 Thread Antonio Salazar
On its days I read the changelog on release 2.9.7 and completely missed this bug. -- better cache.dick (thanks Leonel) +- better cache.disk (thanks Leonel) Nice catch. On Monday, September 15, 2014 8:15:43 AM UTC-5, Massimo Di Pierro wrote: > > web2py 2.9.10 is out. It fixes some important bugs

[web2py] Re: SocketTimeout: Socket timed out before request

2014-12-16 Thread Antonio Salazar
I know this is an old thread, but it's still the top Google result for this error message. It's also thrown with nested double braces, even inside a long comment, like: {{''' {{if true:}} {{pass}} '''}} Deleting the nested braces fixed the error. I was trying to comment code to convert a view

[web2py] How to temporarily disable record versioning in a scheduler task

2015-01-26 Thread Antonio Salazar
I have a scheduled task which ocassionally updates a lot of records in a versioned table. I'd like to disable record versioning only inside the task. I understand that record version can be activated per table and thus conditioned, but since the models run before eveything, I can't figure how t

[web2py] Re: web2py 2.9.12 is OUT

2015-01-27 Thread Antonio Salazar
Since the upgrade, I'm getting this annoyance in the web editor. When I save a controller with a syntax error, the operation stalls at "saving now...". If I retry the save, I get the warning "file changed on disk" and have to merge it, losing the state of the editor. Is this a known bug? I'm u

[web2py] Re: why use the admin interface, at all?

2015-01-28 Thread Antonio Salazar
I've been using web2py for about half a year, and I don't know why I always use the built-in editor. Probably because it's really convenient and it automatically shows exposed functions and views. The latest upgrade made my installation lose the editor state when saving a controller with a synt

[web2py] Re: web2py 2.9.12 is OUT

2015-01-29 Thread Antonio Salazar
ry 2015 12:34:06 UTC-6, Antonio Salazar wrote: >> >> Since the upgrade, I'm getting this annoyance in the web editor. >> >> When I save a controller with a syntax error, the operation stalls at >> "saving now...". >> If I retry the save, I get the war

[web2py] Re: web2py 2.9.12 is OUT

2015-01-30 Thread Antonio Salazar
jueves, 29 de enero de 2015, 17:57:43 (UTC-6), Antonio Salazar escribió: > > I tried to replicate the bug report on a clean install, but it didn't > happen. I think I'll stick with manual updates for now. > > El jueves, 29 de enero de 2015, 8:40:59 (UTC-6), Massimo Di Pi

[web2py] Scheduling several recursive scheduled tasks monopolize the scheduler

2015-02-04 Thread Antonio Salazar
I'm starting to use the scheduler and I really like it, but I'm intrigued by this behavior: Scheduling more than one instance of a recursive (repeats=0) task makes the queue process only recursive tasks, ignoring the non-recursive tasks. I mean, if I schedule one recursive task, all tasks run ev

[web2py] Re: Scheduling several recursive scheduled tasks monopolize the scheduler

2015-02-04 Thread Antonio Salazar
I apologize for the mangled subject, I rewrote several times and left some typos. It should be "Scheduling several recursive tasks monopolizes the scheduler" El miércoles, 4 de febrero de 2015, 16:33:39 (UTC-6), Antonio Salazar escribió: > > I'm starting to use the schedu

[web2py] How to calculate table field subtotals and grand total

2015-02-09 Thread Antonio Salazar
This might be a strange question to ask here, but I think it's DAL relevant. I'm reading an attendance table which has to display a table by employee and weekday, calculating subtotals and total. something like this mockup: *EMPLOYEE # 1234* --- Sun | Mon | Tu

[web2py] Re: Absolute beginner unable to get started

2015-02-12 Thread Antonio Salazar
Are you able to edit and save despite that error? I use the binary of v2.9.12 on Windows 7 and it creates an error ticket each minute while editing, but I'm still able to edit and save normally. The bug is already solved, probably to be included in the next version: https://github.com/web2py/web

[web2py] reset_password dont open form to change password

2015-05-16 Thread Antonio Ladeia
Hello everyone, Its my first post here, sorry for all. I need customize reset password form. I use the example of welcome app, but in my system, when I click in link in my email, the form for change password dont show. I receive this link [1] in my email, and the db has the same key. I need i

[web2py] Re: reset_password dont open form to change password

2015-05-19 Thread Antonio Ladeia
Yes, I change many things. i create a personalized form for this, and I can receive the change password link[1] in my email, and I have this code 1431971387-32ab74e1-26a6-4e91-99f3-e9bb19b9400a

[web2py] Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1145: ordinal not in range(128)

2015-06-12 Thread Antonio Salazar
I have the same problem. PostgreSQL database, web2py 2.11.2-stable+timestamp.2015.05.30.16.33.24 source install. Now any field update which has non-ASCII characters fails with " 'ascii' codec can't decode byte 0xc3 in position X: ordinal not in range(128)" By any field update, I mean custom for

[web2py] Re: unicode error with postgre on 2.10.3 (with sample app)

2015-06-12 Thread Antonio Salazar
I'm seeing this bug with PostgreSQL 9.3 and web2py 2.11.2-stable+timestamp.2015.05.30.16.33.24, both running on Windows 7 64 bit. Updating a users's name to include non-ASCII characters using Database Administration yields: 'ascii' codec can't decode byte 0xc3 in position 57: ordinal not in r

[web2py] Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1145: ordinal not in range(128)

2015-06-18 Thread Antonio Salazar
> > Paolo > > On Saturday, June 13, 2015 at 5:22:07 AM UTC+2, Massimo Di Pierro wrote: >> >> It is a bug in pg8000. You need to install psycopg2 >> >> On Friday, 12 June 2015 13:51:55 UTC-5, Antonio Salazar wrote: >>> >>> I have the s

[web2py] Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1145: ordinal not in range(128)

2015-06-18 Thread Antonio Salazar
256 > > Paolo > > On Saturday, June 13, 2015 at 5:22:07 AM UTC+2, Massimo Di Pierro wrote: >> >> It is a bug in pg8000. You need to install psycopg2 >> >> On Friday, 12 June 2015 13:51:55 UTC-5, Antonio Salazar wrote: >>> >>> I have the s

[web2py] Copying row fields to a structure in memory

2015-06-29 Thread Antonio Salazar
I have a task periodically generating a handful of records which may or may not be already in a versioned table. To minimize versioning logs, I want to generate the records in-memory and only update the changed ones. Is there a simple way to copy a row structure to a dictionary or list, for exa

[web2py] Re: Copying row fields to a structure in memory

2015-06-29 Thread Antonio Salazar
-database-abstraction-layer#Caching-selects > > and > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#as_dict-and-as_list > . > > Anthony > > On Monday, June 29, 2015 at 8:52:38 PM UTC-4, Antonio Salazar wrote: >> >> I have a task perio

[web2py] SQLFORM.grid shows ids instead of names only in Linux

2015-08-21 Thread Antonio Salazar
My application shows integer ids instead of names for any table I update using SQLFORM.grid(). It's running a source installation on Apache2 on Linux. The database is PostgreSQL on Windows. Using the same application on the integrated web server in Windows shows the names correctly. I'm using Po

[web2py] Re: SQLFORM.grid shows ids instead of names only in Linux

2015-08-21 Thread Antonio Salazar
The web2py versions are different The working one (development) is 2.11.2-stable+timestamp.2015.05.30.16.33.24 The non-working one (production) is 2.10.3-stable+timestamp.2015.04.02.21.42.07 I could try upgrading both to 2.12.3 On Friday, August 21, 2015 at 4:24:33 PM UTC-5, Antonio Salazar

[web2py] Re: SQLFORM.grid shows ids instead of names only in Linux

2015-08-24 Thread Antonio Salazar
and let us know. > > On Friday, 21 August 2015 16:31:25 UTC-5, Antonio Salazar wrote: >> >> The web2py versions are different >> >> The working one (development) is >> 2.11.2-stable+timestamp.2015.05.30.16.33.24 >> The non-working one (production) is >&g

[web2py] Re: SQLFORM.grid shows ids instead of names only in Linux

2015-08-24 Thread Antonio Salazar
> best regards, > stifan > > On Monday, August 24, 2015 at 10:36:29 PM UTC+7, Antonio Salazar wrote: >> >> Upgrading to 2.12.3-stable+timestamp.2015.08.19.00.18.03 solved the >> problem. >> I guess the moral of the history is "Always use the same framework

[web2py] Communication Error when Saving

2019-03-02 Thread Ricardo Antonio Zarco
Hi,after upgrade to 2.18.2 i get the "Comunnicate error" when saving using web browser/admin , the exception is: Versión web2py™ Version 2.18.2-stable+timestamp.2019.02.26.06.11.06 Python Python 2.7.5: /usr/bin/uwsgi (prefix: /usr)Rastreo 1. 2. 3. 4. 5. Traceback (most recent call last): File

[web2py] Re: Web2py version 2.18.2 Communications Error when in Admin.

2019-03-02 Thread Ricardo Antonio Zarco
The same, I was using python 2.7.5 In my case was the main.py in gluon. The urllib_quote is not recognized, i change by urllib2.quote El martes, 26 de febrero de 2019, 19:25:32 (UTC+1), John McMaster escribió: > > Just installed web2py version 2.18.2 and now I get a communications error > when I

[web2py] Error al ejecutar web2py en windows

2020-04-20 Thread Marco Antonio Perez
Hola todos! Pueden ayudarme con lo siguiente al iniciar web2py en windows 10: Traceback (most recent call last): File "", line 6, in File "__main__.py", line 128, in File "__main__web2py__.py", line 33, in TypeError: start() takes no arguments (1 given) Muchas gracias! -- Resources: -

[web2py] congratulations for documentation

2010-02-21 Thread Francisco Antonio Tapias Bravo
three weeks ago, I bought the book at lulu and now I've seen it available from http://web2py.com/book/. I think it has been a excellent decision, it help the community grow. Congratulations and thanks for web2py. Excuse me for my english. -- You received this message because you are subscribed t

[web2py:35791] regexp a file after being uploaded

2009-11-22 Thread Daniel Antonio Aguayo Catalán
gards -- Daniel Antonio Aguayo Catalán Chile --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send e

[web2py:37446] Re: web2py blog screencast (Re-Encoded)

2009-12-17 Thread Daniel Antonio Aguayo Catalán
El mié, 16-12-2009 a las 16:46 -0800, Mengu escribió: > guys, > > unfortunately i couldn't upload the video to youtube. actually it has > uploaded but then failed to process because "it is too long and > youtube videos cannot be longer than 10 mins". > > i tried vimeo but it also failed. don't kn

Re: [web2py:37463] Re: web2py blog screencast (Re-Encoded)

2009-12-17 Thread Daniel Antonio Aguayo Catalán
El jue, 17-12-2009 a las 07:49 -0800, mdipierro escribió: > I have not watched them yet but thanks for the time. I am impressed by > the image quality and download speed. > How did you make these? Hi massimo, I just used: # ffmpg2theora [-x [800]|[600]] mengusvideo.mp4 in my Parabola GNU/Linux.

[web2py] error with "update all languages" action.

2012-09-01 Thread Karel Antonio Verdecia Ortiz
Hi, I have a module (tables.py) in modules directory. When I click in the button "update all languages" in the admin app, it overwrites the tables.py module with the chinese language. I'm using version 2.0.5. 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS..

Re: [web2py] Re: Using web2py's view/template engine in a standalone application

2011-06-05 Thread Karel Antonio Verdecia Ortiz
Hi, I've been using the web2py template engine for a while. I don't remember if I had to make some change to the template.py module nor the version of the web2py this module comes from so I attach it in this email. This was the way I could make it work (there is probably a simpler one):

[web2py] Pack all in GAE

2013-04-28 Thread Antonio Jesús Alba Boza
Hi all, I was trying to migrate a web2py application from a windows local server to a virtual ubuntu environment. Certainly, it worked perfectly without problems. Now, I like to migrate other application from Google App Engine to this ubuntu server, and I had hopes to use w2p pack also, but, log

[web2py] Re: Pack all in GAE

2013-04-28 Thread Antonio Jesús Alba Boza
out: > https://developers.google.com/appengine/docs/python/tools/uploadingdata > then use a script to put the data in your local db. > > On Sunday, 28 April 2013 03:07:55 UTC-5, Antonio Jesús Alba Boza wrote: >> >> Hi all, >> I was trying to migrate a web2py application from a wi

Re: [web2py] Re: Crud.update returning none

2013-07-17 Thread Karel Antonio Verdecia Ortiz
I think you forgot to return locals: def project_edit(): project = db.projects.request.args(0) form = crud.update(db.projects, project , next='projects') *return locals()* def user_edit(): user = db.users(request.args(0)) form = crud.update(db.users, user, next = 'users') *return

[web2py] web2py running en AppFog

2014-01-03 Thread José Antonio López Lorenzo
DEMO: http://web2py.eu01.aws.af.cm/ EXPLANATION: http://jallander.wordpress.com/2014/01/03/web2py-en-appfog/ SERVER: https://www.appfog.com/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2p

[web2py] Re: web2py running en AppFog

2014-01-06 Thread José Antonio López Lorenzo
1.- Create an appfog acount in https://www.appfog.com/ 2.- Login in 3,- create a python app. 4.- the name of application is, for example, 'NAME_APP' (url: http://NAME_APP.eu01.aws.af.cm/) 5.- in local install 'af' (gem install af) 6.- af login 7.- modify wsgi.py: Introducir código aquí...#!/usr/b

[web2py] How to make SQLFORM generate INPUT type as 'date' instead 'text'

2014-05-09 Thread José Antonio Salazar Montenegro
My field is defined in db.py as Field('mydate', type='date', requires=IS_DATE(format=T('%Y-%m-%d'))), Using a custom FORM() I only need to do this: INPUT(_type='date', _name='mydate') To generate a great YMD INPUT with pop-up calendar and selectable date parts: ... ... Now I want to use SQLF

[web2py] Re: MySQL - OperationalError: Error on rename (errno: 150)

2014-07-06 Thread José Antonio Salazar Montenegro
I realize this is an ancient topic, but I'm having the very same error migrating a MySQL table where I'm only removing a self reference field. It seems like an index was created to guard the (self) foreign-key constraint and DAL doesn't remove it when deleting the field. There are no manually-cr

[web2py] Web2py Error apache2 ubuntu server form two ports

2017-06-30 Thread Marco Antonio Castro Collazos
1073/5000 Good morning everyone I have the following problem: I have web2py installed on an ubuntu server with apache2. I have a local network with port 443 and an ip publish port 5043 When I enter my web2py application from the local network, and I navigate without problem. But the entry from