Re: [web2py] Re: Login to web2py from external script

2015-01-13 Thread Richard Baron Penman
> http is stateless do you mean because the decoding is handled at the server layer before reaches web2py? On Tue, Jan 13, 2015 at 6:04 PM, Niphlod wrote: > http is stateless. > > > On Tuesday, January 13, 2015 at 6:12:27 AM UTC+1, Richard Penman wrote: >> >> Yeah same data of course, but differ

[web2py] Re: dropdown text too long

2015-01-13 Thread Omi Chiba
Maybe this link help? http://eedle.com/2013/12/21/word-wrap-break-word-css-for-long-text-options-in-drop-down-select-lists/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Re

[web2py] Re: Download/Security Issue

2015-01-13 Thread Anthony
Note, you can use a digitally signed URL for this purpose: http://web2py.com/books/default/chapter/29/04/the-core#Digitally-signed-urls On Tuesday, January 13, 2015 at 5:40:53 PM UTC-5, Anthony wrote: > > Although the download URL would be hard to guess, someone who obtained the > URL by some ot

[web2py] Re: Download/Security Issue

2015-01-13 Thread Anthony
Although the download URL would be hard to guess, someone who obtained the URL by some other means could still download the image. So, if you want to be completely secure, you should authorize the download as well. Anthony On Tuesday, January 13, 2015 at 3:33:08 PM UTC-5, Mark Billion wrote: >

Re: [web2py] Re: does cache decorator work for services ?

2015-01-13 Thread Stef Mientki
ok I found a solution - split the service into a function that will be cached and in the service just call that function but I'm still interested in why I get the error below @cache('service_platdak_absolutely_necessary', 10, cache.ram ) def service_platdak_absolutely_necessary(): .. do the c

[web2py] Download/Security Issue

2015-01-13 Thread Mark Billion
If I have a page controlled by a function that has access control, do I need to also validate the same at the download stage? For example (in pseudo-code): function x(): 1. Check to see if Mark Billion is the authorized user or redirect to google.com 2. do something 3. return dict(image.file=i

[web2py] Re: Spinning my wheels on custom validator

2015-01-13 Thread Dave S
On Monday, January 12, 2015 at 7:59:38 PM UTC-8, Dave S wrote: > > > > On Monday, January 12, 2015 at 7:26:42 PM UTC-8, Dave S wrote: >> >> >> >> On Monday, January 12, 2015 at 5:45:43 PM UTC-8, Dave S wrote: >>> >>> I'm trying to write a custom validator to use in a form, and I'm >>> thinking i

[web2py] Re: dropdown text too long

2015-01-13 Thread Alex Glaros
problem is the item row of text is wider than the whole page, so would like data row to wrap. So making combo box wider doesn't help. there's no way to apply CSS to the actual data values is there? I suppose an alternative is to make the dropdown in html view and have controller transmit and w

[web2py] Re: how to compare dates with dal

2015-01-13 Thread Dave S
On Tuesday, January 13, 2015 at 2:06:39 AM UTC-8, Niphlod wrote: > > > > On Monday, January 12, 2015 at 8:31:53 AM UTC+1, Rohit Raj Sharma wrote: >> >> i am trying to compare date with database. i am not able to get record. >> >> nov_pending = c_pcdt= db( (db.tracker.client_owner==auth.user.email

Re: [web2py] Re: Rocket // HTTP 400 Bad Request - Body is incomplete

2015-01-13 Thread cem
Anyone, willing to support you, might need your error routing code to help you more, as you wrote that the built-in ticket system works just fine. 13 Ocak 2015 Salı 19:29:28 UTC+2 tarihinde Louis Amon yazdı: > > @Niphlod: > > I've simplified my error handler as far as this : > > No models, contro

Re: [web2py] Re: Rocket // HTTP 400 Bad Request - Body is incomplete

2015-01-13 Thread Louis Amon
@Niphlod: I've simplified my error handler as far as this : No models, controller has 2 lines : def index(): return dict() The result is still the same : web2py stalling forever, no page displayed. @Derek: I'm developping on a MacOSX computer but my server is hosted on Heroku (probably s

[web2py] Re: dropdown text too long

2015-01-13 Thread Leonel Câmara
You can use CSS to make the select combo box wider. Another alternative is to use radio buttons instead. -- 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) ---

[web2py] Re: dropdown text too long

2015-01-13 Thread Alex Glaros
There's only about 10 items in the dropdown list should I just copy and paste the items in html in the view so users can see what the full text looks like? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code

[web2py] Please remove/update comments in the web2py.com main page

2015-01-13 Thread António Ramos
These comments have bad links or too old to be taken into consideration in my opinion. They should be updated by newer... *Please use www.web2py.com when using MVC , no PHP/SQL stuff please...its 2011 not 1999* rabblesoft

Re: [web2py] Re: Login to web2py from external script

2015-01-13 Thread Jim S
Is there a 'how-to' anywhere that shows how to do this? I'd really like to see this as a topic in Chapter 14: Other Recipes in the book. Is it somewhere else where I've missed it? -Jim On Tuesday, January 13, 2015 at 9:30:54 AM UTC-6, Richard Penman wrote: > > and web2py is not > > On Tue,

Re: [web2py] Re: Login to web2py from external script

2015-01-13 Thread Richard Baron Penman
and web2py is not On Tue, Jan 13, 2015 at 6:04 PM, Niphlod wrote: > http is stateless. > > > On Tuesday, January 13, 2015 at 6:12:27 AM UTC+1, Richard Penman wrote: >> >> Yeah same data of course, but different encoding than form specifies so I >> expected back end to reject it. >> >> why it shou

[web2py] Re: Speeding up access of remote database from localhost?

2015-01-13 Thread Spokes
> > Why don't you install the database on your development machine or just use > sqlite for development? > I often do, but sometimes, I'd like to have access to the latest version of the database - accomplishing that through database exports/imports is too cumbersome, and doing it manually is

Re: [web2py] Re: Updated appliances or web2py blog?

2015-01-13 Thread Paolo Valleri
If you want to dive into movuca, the table article_category contains modified_by and created_by fields, which are set to NULL when movuca creates the first empty generic category for articles. that's all. Paolo 2015-01-13 13:42 GMT+01:00 Niphlod : > the solution to the problem is investigating

Re: [web2py] Re: Updated appliances or web2py blog?

2015-01-13 Thread Niphlod
the solution to the problem is investigating what leads to a foreign key error, not to work with an inconsistent backend On Tuesday, January 13, 2015 at 12:17:06 PM UTC+1, Paolo Valleri wrote: > > Movuca hasn't received updated for a while. > Recent web2py forces sqlite with PRAGMA foreign_ke

[web2py] Re: Speeding up access of remote database from localhost?

2015-01-13 Thread Leonel Câmara
There's no going around network latency. Why don't you install the database on your development machine or just use sqlite for development? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2p

Re: [web2py] Re: Updated appliances or web2py blog?

2015-01-13 Thread Paolo Valleri
Movuca hasn't received updated for a while. Recent web2py forces sqlite with PRAGMA foreign_keys=ON; which is the reason of the error. If you wanna just try movuca, the easiest solution I suggest is revert that change, see https://github.com/web2py/web2py/blob/master/gluon/dal/adapters/sqlite.py#L8

[web2py] Re: how to compare dates with dal

2015-01-13 Thread Niphlod
On Monday, January 12, 2015 at 8:31:53 AM UTC+1, Rohit Raj Sharma wrote: > > i am trying to compare date with database. i am not able to get record. > > nov_pending = c_pcdt= db( (db.tracker.client_owner==auth.user.email ) > &(db.tracker.Compliance_Area == 1)& (db.tracker.periodicity_due_date >=

Re: [web2py] Re: Login to web2py from external script

2015-01-13 Thread Niphlod
http is stateless. On Tuesday, January 13, 2015 at 6:12:27 AM UTC+1, Richard Penman wrote: > > Yeah same data of course, but different encoding than form specifies so I > expected back end to reject it. > why it shouldn't be ? it's just different encodings to send the same > data over the wire