[web2py] Re: Cannot create records in grid

2015-06-15 Thread Niphlod
are you authenticated ? if you don't pass user_signature=False by default grids are "read only" (and for a good reason) On Tuesday, June 16, 2015 at 8:33:33 AM UTC+2, Mirek Zvolský wrote: > > Web2py 2.11.2 > Chrome & Firefox > cache cleared > > I don't see Add button in the web2py grid. > Explici

[web2py] Cannot create records in grid

2015-06-15 Thread Mirek Zvolský
Web2py 2.11.2 Chrome & Firefox cache cleared I don't see Add button in the web2py grid. Explicit setting create=True doesn't help. In controller is just a grid with a table as source - this table is empty yet. In view is just grid rendering {{=grid}} Any idea what I'm doing bad? Thanks.. Mirek

[web2py] Re: Desempeño en W7 64 bits

2015-06-15 Thread Niphlod
go all the way for iis and fastcgi. the first slice is outdated and frankly counter-productive with wfastcgi lying around. On Monday, June 15, 2015 at 7:42:28 PM UTC+2, Leonel Câmara wrote: > > Hey, I've never tried it in production, because frankly there's just much > better choices of servers

[web2py] Re: Scheduler Question

2015-06-15 Thread Niphlod
uhm. sqlite lockings then ? On Monday, June 15, 2015 at 6:13:04 PM UTC+2, Michael Gheith wrote: > > I am querying a remote PostgreSQL database, and then inserting certain > values into my local SQLite database, that's all... > -- Resources: - http://web2py.com - http://web2py.com/book (Documen

[web2py] Re: Desempeño en W7 64 bits

2015-06-15 Thread Leonel Câmara
Hey, I've never tried it in production, because frankly there's just much better choices of servers in Linux, this isn't just a web2py problem, it's any Python framework running with WSGI. That said you should be able to get pretty good performance by using IIS with ISAPI WSGI extension. Like t

[web2py] Re: Scheduler Question

2015-06-15 Thread 'Michael Gheith' via web2py-users
I am querying a remote PostgreSQL database, and then inserting certain values into my local SQLite database, that's all... -- 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] Web2py Web-based IDE shortcuts

2015-06-15 Thread Selman Kocael
What is keyboard shortcuts of web2py's web-based IDE. i can't find any guide about it. I recognize that has shortcuts. but i don't know what are they. for example: in views - index.html ctrl + space gives advices. in every files. alt + mouse select multiple lines. and so on. -- Resources: - ht

[web2py] Re: Find name of user with a given id: Auth table issues

2015-06-15 Thread zimani
Ok, i have dropped me and am now using just user. I will try to find a solution and update what the error is. Thanks a lot for all your prompt help. On Monday, 15 June 2015 14:45:15 UTC+2, Anthony wrote: > > On Monday, June 15, 2015 at 4:57:51 AM UTC-4, zimani wrote: >> >> hi Anthony, i apologis

[web2py] Re: Image from database doesn't get displayed in the View.

2015-06-15 Thread Anthony
On Monday, June 15, 2015 at 7:57:14 AM UTC-4, Meghana Sanagaram wrote: > > Hi all, > > I'm trying to display an image stored in the database table. > Here's the table: > > db.define_table('menu', >Field('image','upload'), >format = '%(title)s') > > I used the below html code to render the i

[web2py] Re: Display a PDF file as embed within HTML in a form

2015-06-15 Thread Anthony
Check out http://pdfobject.com/. The URL to retrieve the PDF file would be URL('default', 'download', args=row.pdf_odc) where "row" is a record from your db table. Anthony On Monday, June 15, 2015 at 7:57:23 AM UTC-4, kama wrote: > > Hi there, > > > do zou know how could I display one filed def

[web2py] Re: Auditing Auth Tables

2015-06-15 Thread Anthony
On Monday, June 15, 2015 at 7:57:14 AM UTC-4, dt0...@gmail.com wrote: > > Hi, > > Excellent product web2py but still trying to get my head around some of > the structure > and some burning questions from the documentation. > > Question 1: > I want my auth tables to have an audit table. > So i unco

[web2py] Re: Image from database doesn't get displayed in the View.

2015-06-15 Thread 黄祥
please try : {{=IMG(_src = URL('default', 'download', args = i.image), _alt = i.description, _width = '110', _height = '110') }} best regards, stifan Could somebody help me? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sour

[web2py] Re: Find name of user with a given id: Auth table issues

2015-06-15 Thread Anthony
On Monday, June 15, 2015 at 4:57:51 AM UTC-4, zimani wrote: > > hi Anthony, i apologise for the late response, i had no access to the > internet the whole weekend. > > Maybe i should clarify. I am customising this from one of your tutorials > "Web development with python and web2py " part 1 and 2

Re: [web2py] Auth Roles

2015-06-15 Thread Michele Comitini
I think what you need is in the book: http://web2py.com/books/default/chapter/29/09/access-control#Authorization 2015-06-14 23:48 GMT+02:00 : > Hi, > > Excellent product web2py but still trying to get my head around some of > the structure > and some burning questions from the documentation. > >

[web2py] Display a PDF file as embed within HTML in a form

2015-06-15 Thread kama
Hi there, do zou know how could I display one filed defined like this: Field('pdf_doc','upload')) as embed in one form? Thanks. Cheers. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2

[web2py] Auditing Auth Tables

2015-06-15 Thread dt0901
Hi, Excellent product web2py but still trying to get my head around some of the structure and some burning questions from the documentation. Question 1: I want my auth tables to have an audit table. So i uncommented the following line in db.py: auth.enable_record_versioning(db) Now this did

[web2py] Image from database doesn't get displayed in the View.

2015-06-15 Thread Meghana Sanagaram
Hi all, I'm trying to display an image stored in the database table. Here's the table: db.define_table('menu', Field('image','upload'), format = '%(title)s') I used the below html code to render the image: Though I'm able to see that the image files are stored in the table, for each im

[web2py] Use of list:reference giving a foreign key error

2015-06-15 Thread Travis May
Here is my code: Controller def index(): form = SQLFORM(db.guest_questionnaire) if form.process().accepted: response.flash = 'form accepted' elif form.errors: response.flash = 'form has errors' else: response.flash = '' return dict(form=form) Model db

[web2py] Re: How to display Google Maps (iFrame?)

2015-06-15 Thread Robert Porter
On Friday, 5 June 2015 06:28:54 UTC-7, 黄祥 wrote: > > please take a look at web2py book about components and plugins > ref: > > http://web2py.com/books/default/chapter/29/12/components-and-plugins#Components--LOAD-and-Ajax > > best regards, > stifan > Thanks to both of you. This was very helpful

[web2py] Desempeño en W7 64 bits

2015-06-15 Thread Jorge Vega Trigueros
Saludos, desde Costa Rica. Mucho agradezco la colaboración. Quisiera saber si se presentan problemas en W7+64b con Web2py, estoy por cuanto estoy pensando seguir desarrollando con este framework. Que hace meses vengo siguiendo. Gracias. -- Resources: - http://web2py.com - http://web2py.com/bo

[web2py] Auth Roles

2015-06-15 Thread dt0901
Hi, Excellent product web2py but still trying to get my head around some of the structure and some burning questions from the documentation. Question 2: Hi at the moment every time a user registers, a new 'role' is created for the user. Basically I want three roles: USER STAFF ADMIN Admin goes

[web2py] Re: using PyCharm

2015-06-15 Thread Tim Richardson
Hi Alex, Symbolic links on Windows seem broken out of the box even on current versions and nothing would surprise me on Windows except when symbolic links work. On my mac I use symbolically linked folders with no problems at all, but this is not a production environment. For example, my web2py-

[web2py] Re: using PyCharm

2015-06-15 Thread Alex
So you don't have the problem with files getting out of sync inside symbolic linked folders (applications)? I have this problem on Windows and Linux, e.g. everytime the language file gets modified by the application I have to manually synchronize the folder in PyCharm. and what about the projec

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

2015-06-15 Thread Paolo Valleri
According to my tests, the current PG adapter works only with psycopg2 and python2.7 It is broken with both pg8000 and psycopg2 on python 3.x A possible fix for pg8000 and python2.7 is here https://github.com/ilvalle/pydal/commit/d5450938ae606a3e85deffa831899a35146f5e64 I've posted an issue fo

[web2py] Re: Expose public ip address with SOAP

2015-06-15 Thread Niphlod
ok, rephrasing "Then, I deploy the app on internet" <-- how is it deployed ? On Monday, June 15, 2015 at 10:19:11 AM UTC+2, DucVa wrote: > > I don't config. I am using default mode. How must I config it? > > Vào 15:51:28 UTC+7 Thứ Năm, ngày 11 tháng 6 năm 2015, Niphlod đã viết: >> >> it seem

[web2py] Re: Mail.send failure

2015-06-15 Thread webpypy
for the gmail account : port 465 leads to the error (timeout) port 25,587 lead to the error (10013 ) Any help is appreciated.. On Sunday, June 14, 2015 at 6:26:00 AM UTC+3, webpypy wrote: > > Hi : > > I got the error > > error 10013 > An attempt was made to access a socket in a way forbidden

[web2py] Re: Find name of user with a given id: Auth table issues

2015-06-15 Thread zimani
hi Anthony, i apologise for the late response, i had no access to the internet the whole weekend. Maybe i should clarify. I am customising this from one of your tutorials "Web development with python and web2py " part 1 and 2 The 'user' in this case is the person that posted a post. Hence if i u

[web2py] Re: Expose public ip address with SOAP

2015-06-15 Thread DucVa
I don't config. I am using default mode. How must I config it? Vào 15:51:28 UTC+7 Thứ Năm, ngày 11 tháng 6 năm 2015, Niphlod đã viết: > > it seems that web2py uses request.env.wsgi_url_scheme, > request.env.http_host to build the url. How is your server configured ? > > -- Resources: - http://w