[web2py] Controller View Question

2017-07-27 Thread briannd81
Can I run 2 instances of web2py of the same application, with 1 instance process the Business Logic (controller) while the other instance doing the User Interface (View)? What I'm trying to achieve here is to separate the API and UI by hosting them on separate server, to allow me to scale them

Re: [web2py] Re: Encrypted Fields / European General Data Protection Regulation

2017-07-27 Thread António Ramos
By contrast to anonymization, Article 4(5) of the GDPR defines pseudonymization as “the processing of personal data in such a way that the data can no longer be attributed to a specific data subject without the use of additional information.” *By holding the de-identified data separately from the

[web2py] Testing error

2017-07-27 Thread António Ramos
hello i get this error without any doctest written [image: Imagem inline 1] -- 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

[web2py] Re: Encrypted Fields / European General Data Protection Regulation

2017-07-27 Thread Leonel Câmara
I don't see how this is even possible, how are you supposed to store this data encrypted and still be able to search it? Are we supposed to unencrypt the entire database table each time we want to search the data that's there? What about caching? Can you cache stuff unencrypted?

Re: [web2py] Encrypted Fields / European General Data Protection Regulation

2017-07-27 Thread António Ramos
I started another conversation about GDPR https://groups.google.com/forum/#!topic/web2py/aHUt8eZJok0 2017-07-27 17:58 GMT+01:00 Jörg Schneider : > Due to the coming changes in data protection laws in the EU it would be > interesting to know if and how we could store

[web2py] Encrypted Fields / European General Data Protection Regulation

2017-07-27 Thread Jörg Schneider
Due to the coming changes in data protection laws in the EU it would be interesting to know if and how we could store sensible user data (which is everything that identifies a person) encrypted in the database. Some institutions or associations will be forced to prove data protection (f.e.

[web2py] Re: web2py admin stopped working after update to 2.15.2 through admin interface

2017-07-27 Thread Leonel Câmara
Seems like you need to update the admin application itself. -- 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

[web2py] Re: Web2py and Graph Databases

2017-07-27 Thread Anthony
> > For a novice in web programming like me is there a simple blog post or > some documentation available where I can read how to setup web2py to work > with the OrinetDB or neo4j databases? > I'm not aware of any, but it should be the same as with any Python program/framework -- just use the

[web2py] web2py admin stopped working after update to 2.15.2 through admin interface

2017-07-27 Thread Arun Kumar
I updated the web2py version to 2.15.2 from 2.14.x through web2py admin interface update check button. After the update admin stopped working and tickets created are also not opening. Error in admin/errors/file reads below line, S" name 'iteritems' is not defined" p3 sS'layer' p4

[web2py] Re: Web2py and Graph Databases

2017-07-27 Thread vikas mittal
Hi Anthony, For a novice in web programming like me is there a simple blog post or some documentation available where I can read how to setup web2py to work with the OrinetDB or neo4j databases? I u'stand that DAL does not support these databases, but is it possible to completely ignore the

[web2py] Datatables Query String Parsing

2017-07-27 Thread villas
Is there an simple way to parse this into an easier-to-work-with object. I mean for example 'columns' could be a list. {'columns[0][data]': 'first_name', 'columns[0][name]': '', 'columns[0][orderable]': 'true', 'columns[0][search][regex]': 'false', 'columns[0][search][value]': '',

[web2py] Re: Streaming a file

2017-07-27 Thread Simona Chovancová
Thank you so much! On Thursday, July 27, 2017 at 3:03:17 PM UTC+2, Leonel Câmara wrote: > > You need to set content-type to pdf. > > response.headers['Content-Type'] = 'application/pdf' > > before returning response.stream > > -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Streaming a file

2017-07-27 Thread Leonel Câmara
You need to set content-type to pdf. response.headers['Content-Type'] = 'application/pdf' before returning response.stream -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Streaming a file

2017-07-27 Thread Simona Chovancová
I need to place a button which opens an online PDF and so far I have this in reg.py controller def streamable(): data = urllib2.urlopen("http://www.pdf995.com/samples/pdf.pdf;) return response.stream(data, 4096) And this in the view {{=A('open file', _class="btn btn-sm",

[web2py] Re: Weird problems generating menu from database

2017-07-27 Thread Вячеслав Анатольевич
> db.define_table('store_catalog', >> Field('title'), >> Field('slug',requires=IS_SLUG(),compute=lambda row: >> IS_SLUG.urlify(row.titl\ >> e)), >> Field('parent_id','reference store_catalog')) >> >> id1 = db.store_catalog.insert(title='main') >> id2 =