Re: [web2py] Re: testing Recaptcha failed on bizzard error

2016-04-06 Thread Niphlod
rote: > > I try to create self.request and if I remember it start throwing error > about threading... > > I know they are really basic test and the only objective was to get some > coverage, start testing and see the difficulty it represents... > > Richard > > On Wed, Apr

Re: [web2py] Re: testing Recaptcha failed on bizzard error

2016-04-06 Thread Niphlod
t; > it failed for the same reason > > On Wed, Apr 6, 2016 at 2:29 PM, Niphlod > > wrote: > >> recaptcha should be discarded and recaptcha2 should be promoted as the >> default. >> >> >> On Wednesday, April 6, 2016 at 6:17:38 PM UTC+2, Richard w

[web2py] Re: testing Recaptcha failed on bizzard error

2016-04-06 Thread Niphlod
recaptcha should be discarded and recaptcha2 should be promoted as the default. On Wednesday, April 6, 2016 at 6:17:38 PM UTC+2, Richard wrote: > > Hello, > > https://github.com/web2py/web2py/blob/master/gluon/tools.py#L848 > > request = request or current.request > self.request_v

[web2py] Re: A Question about Performance of web2py

2016-04-05 Thread Niphlod
translation to make you realize how much of a silly question that is: *Every call to my application will need to do an additional step and use an external service: is this call gonna cost me performance ? * silly reply: *yes, of course, and if the external service is not scalable nor your app

[web2py] Re: How to convert unirest reponse to get json data?

2016-04-04 Thread Niphlod
why are you asking a web2py forum details about unirest, which web2py doesn't either endorse nor use ?! On Monday, April 4, 2016 at 3:43:54 PM UTC+2, Stephen Duisberg wrote: > > response_post = unirest.get(" > http://timesofindia.indiatimes.com/feeds/newsdefaultfeeds.cms?feedtype=sjson > ", >

[web2py] Re: create single row of field names without values or None values?

2016-04-01 Thread Niphlod
BTW: a single Row full of None(s) is really just a Storage with field names as keys and None as values. On Friday, April 1, 2016 at 10:05:55 PM UTC+2, Dave S wrote: > > On Friday, April 1, 2016 at 12:46:24 PM UTC-7, lucas wrote: >> >> hello one and all, >> >> i have to create a mock or dummy row

[web2py] Re: Shell - reload record from server

2016-04-01 Thread Niphlod
leave console and repeat that I get: > > In [1]: k = db.konsulta(3514998) > > In [2]: k.ok > Out[2]: 2L > > > I'd like to get the updated value (2) without leave and return to shell > > > Thanks... > > > > > On Friday, April 1, 2016 at 5:02:58

[web2py] Re: Shell - reload record from server

2016-04-01 Thread Niphlod
please clarify. if you fetch it back isn't modified, so how can you tell the data is actually "modified in the DB" ? On Friday, April 1, 2016 at 6:21:46 PM UTC+2, Marcello wrote: > > Yes. Sure... the data is modified in the DB. > > > On Friday, April 1, 2016 at 12

[web2py] Re: bug? menu v2.14.3

2016-04-01 Thread Niphlod
bootstrap since v3 doesn't support anything past the 2nd level menu. On Friday, April 1, 2016 at 9:47:37 PM UTC+2, lucas wrote: > > still no one to weigh in on this one? am i the only one? i feel so > lonely and i am not sure what to do with myself. sorry, just kidding. > lucas > -- Resour

[web2py] Re: Shell - reload record from server

2016-04-01 Thread Niphlod
2016 at 5:07:52 PM UTC+2, Marcello wrote: > > I tried it. > It gives me the old value. > I have to leave the shell and enter again to refresh it... > > This is my problem > > > > On Friday, April 1, 2016 at 11:53:52 AM UTC-3, Niphlod wrote: >> >> yep, you ne

[web2py] Re: Shell - reload record from server

2016-04-01 Thread Niphlod
yep, you need to re-select it ... On Friday, April 1, 2016 at 3:26:39 PM UTC+2, Marcello wrote: > > Hello, > > I have a function that I call in a shell... > I load a record from a database and do some stuff.. > > Problem is that in the meantime the record may be modified in the server... > > Is th

Re: [web2py] Re: Why is this ajax function not working fine?

2016-03-29 Thread Niphlod
a taddle bit of recap, seems that you're loosing the bigger picture ANYTHING (or, the 99%) of things in views contained in a {{=blabla}} are properly escaped. Back to the "problem": - first of all, you shouldn't generate multiple times. Every element with an id attribute should be the onl

[web2py] Re: How to modify a scheduled task?

2016-03-29 Thread Niphlod
same warning applies. in that case, I think the culprit is that next_run_time needs to be updated too. On Monday, March 28, 2016 at 9:47:19 PM UTC+2, Dave S wrote: > > > > On Monday, March 28, 2016 at 12:38:03 PM UTC-7, Niphlod wrote: >> >> The specific issue with this ca

[web2py] Re: How to modify a scheduled task?

2016-03-28 Thread Niphlod
The specific issue with this case is that the scheduler tracks how many times a task has been executed and prevents your "repeats=1" task to be executed again because times_run is probably exceeding the value. That being said (i.e. you'd need to reset times_run too) be aware that modifying sche

[web2py] Re: What does user_signature = True mean here?

2016-03-28 Thread Niphlod
nothing in SQLFORM, as it doesn't accept a user_signature argument ... it's SQLFORM.grid that does. On Monday, March 28, 2016 at 6:05:10 PM UTC+2, Jacob Devin wrote: > > form=SQLFORM(db.info,row.id,user_signature=True).process() > -- Resources: - http://web2py.com - http://web2py.com/book (Docu

[web2py] Re: Why datetime.now() is not returning correct value

2016-03-25 Thread Niphlod
how do you run the web2py application ? utc times match perfectly, it's just the timezone that is not matching... environmental variables ?! On Friday, March 25, 2016 at 7:24:31 AM UTC+1, mfarees...@gmail.com wrote: > > Hi. > I am in Asia/Karachi timezone and am testing my application for US/Paci

[web2py] Re: web2py 2.14.1 is OUT

2016-03-24 Thread Niphlod
ay, March 24, 2016 at 12:41:50 PM UTC-7, Dave S wrote: >> >> >> >> On Thursday, March 24, 2016 at 10:36:54 AM UTC-7, Massimo Di Pierro wrote: >>> >>> http://web2py.com/ >>> >>> First of all many many thanks to Simone (niphlod), Richard

[web2py] Re: Warning that TK libraries aren't installed

2016-03-21 Thread Niphlod
python-tk should be the needed package if tk was installed without python bindings. On Monday, March 21, 2016 at 4:43:53 AM UTC+1, Bill Lugg wrote: > > I just switched Linux distros to Mint 17.3. I'm using the same web2py > installation that I was using under Kubuntu 15.10 where it worked fine.

[web2py] Re: creating a user in auth from shell

2016-03-19 Thread Niphlod
using .insert() over .add() would be a good choice ^_^ On Thursday, March 17, 2016 at 12:52:53 AM UTC+1, Dave S wrote: > > My remote host is not running a GUI, so doing appadmin by browsing is > inconvenient. I need to add a user, and I'd like to do that from a script > run in the web2py shell

[web2py] Re: fighting with the widget

2016-03-15 Thread Niphlod
actually you picked up a good example on how to override properly web2py.js the new scaffolding app overwrites the default string widget with one that is more in line with bootstrap3 (see welcome/static/js/web2py-bootstrap3.js). anyhow, if you want no interactions whatsoever with web2py.js

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-15 Thread Niphlod
web2py on this particular matter needs to be pretty dumb exactly because pretty much anything can be serialized into the session. Sessions are also not hookable, so you can't even write your own serializer any other framework restricts serialization to a plain dict (serialized as json) OR al

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Niphlod
got that but trust /me and @Anthony, we're pretty accustomed with the code. I can't replicate and @Anthony seems neither. I'm on win, 2.7.9, and tested all stable releases from 2.6.1 to latest, and can't see the session change (i.e. the file being updated) while iterating user_groups. Something e

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Niphlod
BTW: can't replicate myself either with your piece of code. On Monday, March 14, 2016 at 10:08:34 PM UTC+1, Anthony wrote: > > On Monday, March 14, 2016 at 4:14:42 PM UTC-4, Alex wrote: >> >> no, I don't have response.toolbar in my view. The issue should be >> reproducible with the code snippet a

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Niphlod
there's a bit of machinery added to sessions to see if it actually changed or not. Actually there was an issue (referenced in the commit log as 1524, which ATM I can't find) which was fixed by the whole shebang of sorting_pickler in 2.6.0 On Monday, March 14, 2016 at 9:14:42 PM UTC+1, Alex

[web2py] Re: How to know if the scheduler is running?

2016-03-13 Thread Niphlod
explained earlier. http://web2py.com/books/default/chapter/29/13/deployment-recipes On Friday, March 11, 2016 at 7:44:26 PM UTC+1, Dave S wrote: > > > > On Friday, March 11, 2016 at 6:20:09 AM UTC-8, Alfonso Serra wrote: >> >> Excuse me Niphlod, i can't find any docs about ru

Re: [web2py] Re: Optimising caching and enabling gzip for web2py on heroku?

2016-03-13 Thread Niphlod
gt;> I am looking at your zip_statis_file.py where do I insert this function? >> >> On Sunday, March 3, 2013 at 2:55:02 PM UTC+1, Niphlod wrote: >>> >>> response.static_version is the answer for static files cache. >>> As for gzipping, the default static s

[web2py] Re: Can't get rid of flash message in admin interface

2016-03-13 Thread Niphlod
this issue is still standing on the last stable. github master has the solution already. On Sunday, March 13, 2016 at 6:55:21 AM UTC+1, Massimo Di Pierro wrote: > > What browser? What os? > > On Saturday, 12 March 2016 23:42:06 UTC-6, Anh Tran wrote: >> >> Hi, >> >> I have this issue, when I logg

[web2py] Re: unable to see sqlite tables created through console using python console using gluon

2016-03-10 Thread Niphlod
gt; [] >> db.define_table('person', >> >> Field('fname', 'string'), >> Field('lname', 'string'), >> Field('building', 'string') >> ) >> >> rows = db(db.person.lname == '

[web2py] Re: Scheduler mysql error

2016-03-10 Thread Niphlod
given that scheduler auto imports definition, it doesn't know that you are using a custom adapter. On Thursday, March 10, 2016 at 3:02:54 PM UTC+1, Alfonso Serra wrote: > > Ive tried on a paid account and it works even with that error. > > It might be the amount of processes limitation on free ac

[web2py] Re: unable to see sqlite tables created through console using python console using gluon

2016-03-09 Thread Niphlod
DAL is a database abstraction layer. you need to define tables EVERY time you need to access them. define_table() accidentally creates table if migrations are turned on, but define_table() doesn't map to "create a table" it stands for "define an entity that is mapped to a table". tl;dr: i

[web2py] Re: How to know if the scheduler is running?

2016-03-09 Thread Niphlod
as soon as you acknowledge that: - what you're trying to do is highly discouraged - lots os safer/documented/supported/simpler ways exist feel free to experiment . On Wednesday, March 9, 2016 at 11:08:06 PM UTC+1, Alfonso Serra wrote: > > This looks like it works. > > import subprocess > ret =

[web2py] Re: How to know if the scheduler is running?

2016-03-09 Thread Niphlod
simply said, you can't reliably. The whole reason you offload tasks to a worker vs a really simpler ajax call is because it's a totally external process that is NOT managed by the webserver. webservers do kill long-running processes (usually after 60 seconds) spawned by themselves to avoid zomb

[web2py] Re: How to know if the scheduler is running?

2016-03-09 Thread Niphlod
I'd check for < 30 to be sure that the worker is not sleeping but the general idea is that. BTW: don't ever ever do from datetime import datetime given web2py's unique execution model, anything past that will have the import screwed . use plain import datetime if in need. BTW2: you don't ne

[web2py] Re: How to know if the scheduler is running?

2016-03-09 Thread Niphlod
there's a method for it, get_workers(). according to your heartbeat interval, you can inspect for any worker that has a last_heartbeat too much in the past to see if it's running or not. On Wednesday, March 9, 2016 at 12:06:50 PM UTC+1, Niphlod wrote: > > BTW: exactly as a web

[web2py] Re: How to know if the scheduler is running?

2016-03-09 Thread Niphlod
BTW: exactly as a webapp is suppossed to be kept alive from the os, the same applies to the scheduler. That being said the controller that queue tasks can see if any scheduler is alive inspecting the scheduler_worker table. On Wednesday, March 9, 2016 at 11:42:25 AM UTC+1, Alfonso Serra wrote:

[web2py] Re: IOError: [Errno 30] Read-only file system: web2py/web2py.log

2016-03-08 Thread Niphlod
just remove logging.conf alltogether or remove the handler that writes to a file. GAE has not a writable FS On Tuesday, March 8, 2016 at 7:33:29 PM UTC+1, Krishna Bavandlapally wrote: > > Not able to run GAE dev_server > > $ python working/google_appengine/dev_appserver.py working/web2py/ > INFO

Re: [web2py][OT] ZeroDB An open-source end-to-end encrypted database

2016-03-07 Thread Niphlod
nosql is pretty broad. zerodb is a key-value store, so nothing to abstract around it... On Monday, March 7, 2016 at 9:42:27 PM UTC+1, Richard wrote: > > Hello, > > Anyone eard about ZeroDB? > > https://www.zerodb.io/ > > I found this really recently and interresting in it. > > Curious to know how

[web2py] Re: Not receiving post_vars from external service webhook

2016-03-07 Thread Niphlod
it's sending a json as a post content, not the usual form data that is automatically parsed. you'd get automatic request.post_vars reconstruction with json ONLY if they posted an object, but instead they're posting an array of objects (notice the [ ] at top and bottom). web2py (or anything, for

[web2py] Re: Using Scheduler to delete database rows older than a timestamp

2016-03-05 Thread Niphlod
that's when help comes in :-P On Friday, March 4, 2016 at 10:27:25 PM UTC+1, Dave S wrote: > > On Friday, March 4, 2016 at 12:42:22 PM UTC-8, Niphlod wrote: >> >> operationally it doesn't change a thing. >> But (and it's a big but) your status check adds

[web2py] Re: Using Scheduler to delete database rows older than a timestamp

2016-03-04 Thread Niphlod
operationally it doesn't change a thing. But (and it's a big but) your status check adds a query for each and every request: db I/O is the most expensive (time-wise) operation you'll ever see in every web framework, you should avoid it at all costs. -- Resources: - http://web2py.com - http://

[web2py] Re: Using Scheduler to delete database rows older than a timestamp

2016-03-04 Thread Niphlod
never ever ever call a queue_task() in a model. models gets executed at every request. just queue the task in a "protectedinitialsetup()" controller and use it. I have a similar approach for rebuilding/reinitializing/requeueing/rechecking all tasks in a controller (e.g. default.py) def reinit

[web2py] Re: Web2Py application deployment on rented server

2016-03-02 Thread Niphlod
the "rented" server supports python ? if yes, how (mod_wsgi, cgi, fastcgi, etc etc etc) ? IMHO you should have "rented" pythonanywhere. 0 complications added. On Thursday, March 3, 2016 at 8:23:54 AM UTC+1, Martin Keyser wrote: > > I have created a web2py application and I wish to deploy it on

[web2py] Re: how to correctly use the scheduler (if at all)

2016-03-02 Thread Niphlod
let's go in order: 1. the scheduler env is the same as your app's. As long as the mailer is defined and working for the app, you can use it in a queued task 2. as there's no way to let an external process live, and the scheduler being a totally separate process from the web-related one, the sche

[web2py] Re: Sending email through gmail account: no SSL support

2016-03-02 Thread Niphlod
uhm. this error :No SSL support included in this Python is an early exit on smptlib . not at all web2py related: SO is riddled with same error, and all points to not having SSL available... On Wednesday, March 2, 2016 at 1:53:05 AM UTC+1, Leonel Câmara wrote: > > Have you allowed insecure apps

[web2py] Re: run in background python script

2016-03-02 Thread Niphlod
use the scheduler http://web2py.com/books/default/chapter/29/04/the-core#web2py-Scheduler On Wednesday, March 2, 2016 at 8:45:26 AM UTC+1, Bogdan Iancic wrote: > > How can i run in background a python script that takes more than 10 > minutes? I have seen that using fork isin't possible in web2py

[web2py] Re: Sending email through gmail account: no SSL support

2016-03-01 Thread Niphlod
t; > which returned True > > On Monday, February 29, 2016 at 4:15:53 PM UTC-6, Niphlod wrote: >> >> with or without ssl support ? did you compile it yourself ? >> >> On Monday, February 29, 2016 at 10:57:58 PM UTC+1, Marty Jones wrote: >>> >>> 2.7.11

[web2py] Re: Sending email through gmail account: no SSL support

2016-02-29 Thread Niphlod
with or without ssl support ? did you compile it yourself ? On Monday, February 29, 2016 at 10:57:58 PM UTC+1, Marty Jones wrote: > > 2.7.11 > > On Monday, February 29, 2016 at 2:20:00 PM UTC-6, Niphlod wrote: >> >> what python are you using ? >> >> On Monday,

Re: [web2py] Re: web2py scheduler with huge output or return values always timeout (even if the task finishes)

2016-02-29 Thread Niphlod
aw hell, it's true. huge outputs are effectively blocking. don't know if it's fixable though. I don't see any obvious error in the implementation that could prevent it On Monday, February 29, 2016 at 9:26:38 PM UTC+1, Niphlod wrote: > > uhm, not sure about

Re: [web2py] Re: web2py scheduler with huge output or return values always timeout (even if the task finishes)

2016-02-29 Thread Niphlod
can > comunicate to other via pipes is around that limit so that is the > underlying reason. > El feb 29, 2016 2:07 PM, "Niphlod" > > escribió: > >> don't know if it's documented on the book but nevertheless there has been >> a few times it popped

[web2py] Re: Sending email through gmail account: no SSL support

2016-02-29 Thread Niphlod
what python are you using ? On Monday, February 29, 2016 at 4:39:45 PM UTC+1, Marty Jones wrote: > > I'm trying to send an email using web2py's auth mailer. I've set an > application specific password and am using that and my gmail info in the > code below: > mail = auth.settings.mailer > mail.s

[web2py] Re: Join subqueries

2016-02-29 Thread Niphlod
it may be a little discouraging but please don't waste any more time on getting it with DAL syntax and use an executesql right away. We'll probably never reach the point where we'll be able to express such intricacies with a DAL syntax that is compatible to every supported backend. When those ki

[web2py] Re: web2py scheduler with huge output or return values always timeout (even if the task finishes)

2016-02-29 Thread Niphlod
don't know if it's documented on the book but nevertheless there has been a few times it popped up on this group. As output is buffered, especially on Windows but on unixes flavoured OSes as well, the "printed" output should be limited. Of course it never has been a real issue because if you ne

[web2py] Re: Upgrading web2py and scheduler issue

2016-02-29 Thread Niphlod
yep, that's definitely the case. when scheduler gets a new feature, it's possible that the underlying table get changed. as table definitions are inside scheduler's code, you need to let migrations happen (or even better, drop the scheduler_* tables on the backend, drop related .table files, and

[web2py] Re: list-:string field and ajax

2016-02-28 Thread Niphlod
definitely your own widget with your own javascript. the default one has no such capability. On Sunday, February 28, 2016 at 7:32:40 PM UTC+1, Pierre wrote: > > Hi everyone, > > trying to figure out how to return to server individual list:string > element(s) when form-errors occurs and the view

[web2py] Re: I'm struggling to get password reset links to use https not http

2016-02-28 Thread Niphlod
it'd pretty easy to check. either you print somewhere wsgi_url_scheme or you include response.toolbar() to check what's being passed on. On Sunday, February 28, 2016 at 1:39:16 AM UTC+1, Tim Richardson wrote: > > I have an https app which send password reset emails as http even when the > user i

[web2py] Re: Basic syntax question

2016-02-26 Thread Niphlod
good catch. I was writing javascript right now hehehehehe On Friday, February 26, 2016 at 8:41:38 PM UTC+1, Marty Jones wrote: > > Thank you. That works, although using "for" rather than "foreach". > > On Friday, February 26, 2016 at 1:35:10 PM UTC-6, Niphlod wrote

[web2py] Re: Basic syntax question

2016-02-26 Thread Niphlod
the correct syntax would be {{foreach element in elements:}} {{=each}} {{pass}} please read the book (especially the part about views (http://web2py.com/books/default/chapter/29/05/the-views)) On Friday, February 26, 2016 at 7:49:07 PM UTC+1, Marty Jones wrote: > > I'm just getting started

Re: [web2py] Preventing hackers from exploiting web2py with wsgi

2016-02-25 Thread Niphlod
without any particular issue. On Thursday, February 25, 2016 at 6:56:36 PM UTC+1, Robin Manoli wrote: > > Thanks for your elaborate reply Niphlod. > > Perhaps the question was ill posed, but not knowing the true role of wsgi > I don't know how I could have posted it differently

Re: [web2py] Preventing hackers from exploiting web2py with wsgi

2016-02-25 Thread Niphlod
didn't mean to startle anyone amusement is personal entertainment, meant as "if you want to try facing the hige problem by yourself and you are willing to read through tons of docs". that being said IMHO the question was/is ill posed. "wsgi" (no *U*wsgi, no *MOD_*wsgi) is just a spec. Anyo

[web2py] Re: WinINet and basic auth

2016-02-25 Thread Niphlod
oddly enough there's a "libcurl vs wininet" page on curl's site ... https://curl.haxx.se/libcurl/wininet.html On Thursday, February 25, 2016 at 10:19:41 AM UTC+1, Dave S wrote: > > On Thursday, February 25, 2016 at 12:12:28 AM UTC-8, Niphlod wrote: >> >>

[web2py] Re: WinINet and basic auth

2016-02-25 Thread Niphlod
if wininet can't do basic auth, is it web2py's fault ?!?!?! curl is available also on windows :-P and it's pretty much the de-facto reference. if it works with curl but not with wininet, it's wininet fault. as for digest auth, no, web2py doesn't support it out of the box. On Thursday, February 2

[web2py] Re: Setting up the scheduler, and letting it run from a certain point of time

2016-02-25 Thread Niphlod
if anyone wants to familiarize with the scheduler, I always recommend https://github.com/niphlod/w2p_scheduler_tests -- 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

[web2py] Re: Preventing hackers from exploiting web2py with wsgi

2016-02-25 Thread Niphlod
IMHO you're really confused. or got names wrong. or got things wrong. wsgi IS THE ONLY WAY to run python code for webservers. It's the only standardized spec to do so. Nooow, if you're instead talinkg about mod_wsgi on apache, it's another matter entirely. Securing apache needs to be done by ex

[web2py] Re: All HTTP requests redirected to HTTPS

2016-02-24 Thread Niphlod
why a should it be a problem only lord knows . but if you have request.requires_https() anywhere it tells to redirect the request over to https ... sure you "didn't uncomment it" ? On Wednesday, February 24, 2016 at 3:08:08 PM UTC+1, Joe wrote: > > I just reloaded my app on Pythonanywhere

Re: [web2py] Re: SQLFORM.gris sorting by multiple fields

2016-02-23 Thread Niphlod
t by last_name or skill separately or skill and one > clicked on skill it is also sorted by last name? > > I hope I am clear enough? > > Thank you > > 2016-02-23 15:53 GMT+01:00 Niphlod >: > >> >>- orderby is used as default ordering for the rows. See DAL chapt

[web2py] Re: SQLFORM.gris sorting by multiple fields

2016-02-23 Thread Niphlod
- orderby is used as default ordering for the rows. See DAL chapter (multiple fields are possible). On Tuesday, February 23, 2016 at 3:26:08 PM UTC+1, Yebach wrote: > > Hello > > Is it possible to have a sort order by

[web2py] Re: Oracle Driver Not Available When web2py run from bash script

2016-02-22 Thread Niphlod
are they running from the same path and under the same user ? On Monday, February 22, 2016 at 7:00:07 AM UTC+1, Ben Wolski wrote: > > Hi all! I'm connecting to an Oracle db for the first time and I hit a snag > when trying to start web2py from a bash script. > > > As you can see highlighted belo

[web2py] Re: Versioned url to static resources in admin app

2016-02-20 Thread Niphlod
it's roughly two years since this has become the standard behaviour tune your apache config accordingly http://web2py.com/books/default/chapter/29/04/the-core#Static-asset-management On Saturday, February 20, 2016 at 4:35:05 PM UTC+1, MDSIII wrote: > > Recently upgraded to 2.13.4. My applic

[web2py] Re: I can't see response.flash anywhere though I have written it in code. What might be the problem?

2016-02-20 Thread Niphlod
are you using a custom layout ? On Saturday, February 20, 2016 at 11:50:18 AM UTC+1, Rgb Aston wrote: > > Tell me how to fix this > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues

[web2py] Re: List in a db Request

2016-02-19 Thread Niphlod
dba(~dba.table.name.belongs(list)).select() On Friday, February 19, 2016 at 7:50:13 PM UTC+1, Lucas Schreiber wrote: > > Hi there, > > is there a way to use a list in a db request? like this: > list = [One, Two, Three] > > row_db = dba((dba.table.table_name!= list)).select() > > > and getting ever

[web2py] Re: Session variables and multiple browser tabs

2016-02-19 Thread Niphlod
this to sessionstorage. And actually, I don't know if what I'm > doing with pickling/unpickling dicts is a smart thing to do. If anyone has > any pointers/comments, I'd appreciate it. However, it seems as though I > may need to rethink my strategy. > > Thanks for takin

[web2py] Re: download pandas dataframe

2016-02-19 Thread Niphlod
you can write to stringIO and then serve it. Attention: using StringIO will consume memory, so a dataframe weighting 100MB will raise your's app memory to something in the range of 250MB or so for EVERY request of download (counting 100MB for the original dataframe, another 100MB or so for the

[web2py] Re: What happens to these if I don't use link rel for css and js in default layout and use a new layout?

2016-02-19 Thread Niphlod
calendar just needs jquery.js, calendar.js and calendar.css On Friday, February 19, 2016 at 12:26:03 PM UTC+1, RAGHIB R wrote: > > I used both. Still what losses am I having? > > On Friday, February 19, 2016 at 2:47:42 PM UTC+5:30, Niphlod wrote: >> >> you need BOTH

[web2py] Re: What happens to these if I don't use link rel for css and js in default layout and use a new layout?

2016-02-19 Thread Niphlod
you need BOTH the js and the css file. On Friday, February 19, 2016 at 9:56:19 AM UTC+1, RAGHIB R wrote: > > For example I am not getting calendar even though I used its link rel by > putting css file under it. > > On Friday, February 19, 2016 at 2:22:10 PM UTC+5:30, RAGHIB R wrote: >> >> 1) for

[web2py] Re: Session variables and multiple browser tabs

2016-02-19 Thread Niphlod
every browser considers tabs as belonging to the same session in regards to cookies. there's no way to separate those using web2py code. you can leverage sessionstorage in javascript that keeps values alive - and compartimentalized - to a single living tab. On Friday, February 19, 2016 at 4:56:2

[web2py] Re: I used a layout rom external and my navbar colour changed to green. How to change its colour again?

2016-02-18 Thread Niphlod
ask the creator of the theme ?!?!?! this is not a web2py issue : it's a css issue. On Thursday, February 18, 2016 at 3:57:32 PM UTC+1, RAGHIB R wrote: > > > > > >data-toggle="collapse" data-target=".navbar-collapse"> > Toggle navigation > >

[web2py] Re: multiple versions of same table in database folder

2016-02-18 Thread Niphlod
or just remove all files, set fake_migrate_all=True, hit appadmin, set fake_migrate_all=False and enjoy having your databases folder with just the necessary .table files. On Thursday, February 18, 2016 at 8:15:38 AM UTC+1, Nico de Groot wrote: > > The table files contain the field information.

[web2py] Re: zip file length problem

2016-02-16 Thread Niphlod
how much is "lots" ? if it was a memory problem, the traceback would probably return something else... also... what's the line that raises the error ? On Tuesday, February 16, 2016 at 8:00:14 PM UTC+1, Yebach wrote: > > Hello > > I have a following problem > > When I try to serve a zip file to u

[web2py] Re: Problems nginx on centos

2016-02-16 Thread Niphlod
leave nginx a part for now. start simple. run the included webserver, hit the page, see what happens. if it redirects, then it's your app's fault. if not, some weird config of nginx. and start from there upwards. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http:

[web2py] Re: CAS with OpenSSL-Certificates

2016-02-16 Thread Niphlod
imho 2.7.10 and its certificate validation done by default is messing the consumer app. But you wouldn't absolutely be able to log in the consumer app... On Tuesday, February 16, 2016 at 3:31:05 PM UTC+1, Frank Bunt wrote: > > I'm trying to get CAS auth working with "https://.."; but it is givin

[web2py] Re: Modified language file

2016-02-15 Thread Niphlod
translations gets added to the file as soon as someone hitting a page on your app with that language code triggers a translation of that particular string. what you witnessed in particular points to someone hitting appadmin (those are the translations referenced in appadmin.py)if someone (or

[web2py] Re: DAL : deltatime field ?

2016-02-15 Thread Niphlod
integer storing seconds On Monday, February 15, 2016 at 1:25:47 PM UTC+1, goome wrote: > > hi > If i am correct there is no deltatime field in DAL, i mean a field where > to store difference from 2 datetime object. > So which is the suggested solution in this case? just a string field? > Thanks

Re: [web2py] AppConfig documentation?

2016-02-15 Thread Niphlod
appconfig is a contrib module, for which we don't keep docs around, nor promise backward compatibility (although it's a pretty simple module)... there's absolutely nothing to be documented, the scaffolding app uses pretty much all the features ^_^ On Sunday, February 14, 2016 at 4:46:46 PM UTC+1

[web2py] Re: list:string and form.errors

2016-02-13 Thread Niphlod
no, there isn't. the list:string widget is still attached to a single field, and the error message is attached to that field only. if you want to do a custom validation on each input, you should just use a custom form On Saturday, February 13, 2016 at 2:59:24 PM UTC+1, Pierre wrote: > > Hi eve

[web2py] Re: Script timed out before returning headers: wsgihandler.py - web2py v2.8.2

2016-02-13 Thread Niphlod
also, you may be a target of a well known attack against apache (slowloris) that is the main reason why switching to evented webserver is so recommended :-P On Friday, February 12, 2016 at 11:13:18 PM UTC+1, Jim S wrote: > > Chad > > I've seen this problem with nginx and it is due to the nginx a

[web2py] Re: GRID export broken for CSV but not for JSON

2016-02-13 Thread Niphlod
also, the grid relies on the id for other functions, it's always better to include it On Saturday, February 13, 2016 at 12:20:22 AM UTC+1, Anthony wrote: > > This can probably be improved, but the problem is that your grid does not > include all the fields needed by the "represent" function (i.

[web2py] Re: Email not working

2016-02-12 Thread Niphlod
web2py uses smtplib. as long as on the other side there's an smtp-compatible interface, there's no reason to blame web2py :P On Friday, February 12, 2016 at 8:38:38 PM UTC+1, Tom Russell wrote: > > I have since my last time trying to get email sending working with the > built in registration pro

[web2py] Re: input class="integer" interrupt

2016-02-11 Thread Niphlod
there's no callback available on web2py.js for it. either code your own widget or override event_handlers() in your own js appropriately. On Thursday, February 11, 2016 at 6:55:16 PM UTC+1, lucas wrote: > > hey everyone, > > so under the sqlform.custom.beginsqlform.custom.end with the view, a

[web2py] Re: markmin.js

2016-02-11 Thread Niphlod
gt; > I like the JS version because it is cleaner and faster and if something is > nor supported one can use html. > > > > On Thursday, 11 February 2016 03:26:11 UTC-6, Niphlod wrote: >> >> what is not 100% compatible ? if we want to push this, we should promote >&g

[web2py] Re: markmin.js

2016-02-11 Thread Niphlod
what is not 100% compatible ? if we want to push this, we should promote it instead of relying on python code On Thursday, February 11, 2016 at 4:55:19 AM UTC+1, Massimo Di Pierro wrote: > > and the link: > > https://github.com/mdipierro/markmin.js > > On Wednesday, 10 February 2016 21:55:06

Re: [web2py] Re: ubuntu web2py

2016-02-08 Thread Niphlod
; On Monday, February 8, 2016 at 10:06:36 AM UTC-6, Niphlod wrote: >> >> shouldn't be hard >> >> https://wiki.ubuntu.com/SystemdForUpstartUsers >> >> On Monday, February 8, 2016 at 5:02:33 PM UTC+1, Jim S wrote: >>> >>> I played with this a b

Re: [web2py] Re: DAL is dropping column when not supposed to

2016-02-08 Thread Niphlod
do a pack all, install the app, run pg_restore, don't run any code. set fake_migrate_all=True, hit appadmin, set fake_migrate_all=False. voilà. On Monday, February 8, 2016 at 7:11:06 PM UTC+1, Alex Glaros wrote: > > no, I did not compile. > > Postgres changes created by DAL work correctly on site

Re: [web2py] Re: ubuntu web2py

2016-02-08 Thread Niphlod
shouldn't be hard https://wiki.ubuntu.com/SystemdForUpstartUsers On Monday, February 8, 2016 at 5:02:33 PM UTC+1, Jim S wrote: > > I played with this a bit over the weekend but was unable to get it working > on Ubuntu 15.x. > > My production servers all run 14.4. > > I think the problem is the c

[web2py] Re: Query for mutually linked id's

2016-02-08 Thread Niphlod
see http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Self-Reference-and-aliases On Monday, February 8, 2016 at 2:52:46 PM UTC+1, Annet wrote: > > I defined the following table: > > db.define_table('edg_edge', > Field('fromID', 'reference vtx_vertex''), > Field(

Re: [web2py] Re: disk cache behind IIS

2016-02-08 Thread Niphlod
ps: for anything in production, go redis. On Monday, February 8, 2016 at 2:26:33 PM UTC+1, Niphlod wrote: > > nope, it won't > > On Monday, February 8, 2016 at 3:19:01 AM UTC+1, Tim Richardson wrote: >> >> I guess, for completeness sake, that cache.ram would no

Re: [web2py] Re: disk cache behind IIS

2016-02-08 Thread Niphlod
nope, it won't On Monday, February 8, 2016 at 3:19:01 AM UTC+1, Tim Richardson wrote: > > I guess, for completeness sake, that cache.ram would not be shared among > the IIS process pool. > > On 7 February 2016 at 20:25, Niphlod > > wrote: > >> if for "dis

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

2016-02-07 Thread Niphlod
LOAD(...) has a "content" keyword just for it. A() doesn't use "loading..." but "working...". 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...

[web2py] Re: scheduler -- tracking the last time

2016-02-07 Thread Niphlod
as far as we're all on the same page, my job is done :P On Saturday, February 6, 2016 at 3:17:46 AM UTC+1, Dave S wrote: > > On Friday, February 5, 2016 at 3:38:17 PM UTC-8, Dave S wrote: >> >> [...] The conditional queuing is something that I had already gone ahead >> with, putting it in the mod

[web2py] Re: disk cache behind IIS

2016-02-07 Thread Niphlod
if for "disk cache" you mean "cache.disk" yes, it's shared among processes . On Sunday, February 7, 2016 at 3:24:08 AM UTC+1, Tim Richardson wrote: > > I have an app set up on Microsoft's IIS 8.5 which seems to use a process > pool to handle requests. > I also have a scheduler. > Does it make se

[web2py] Re: Yellow box on screen following update

2016-02-07 Thread Niphlod
it comes from the latest stable. it has been already fixed in trunk. On Sunday, February 7, 2016 at 6:34:09 AM UTC+1, Massimo Di Pierro wrote: > > Never see this before. Can you use chrome to check where the box comes > from? > > On Thursday, 4 February 2016 11:39:00 UTC-6, M Bailey wrote: >> >>

<    1   2   3   4   5   6   7   8   9   10   >