[web2py] session.secure() problem

2014-09-14 Thread Annet
I have 2 applications: init and myapp init is served over www.domain.com/init/.. myapp is served over https://my.domain.com/myapp/... Since both applications have the same menu they need to share the session, so I choose one of them as a "master". init contains the following code in a model fi

[web2py] Re: Deploying Web2py with nginx on FreeBSD

2014-09-14 Thread GregD
Have you tried changing the owner on the nginx location directory that's defined in your nginx.conf flie? Try making it the same owner that's defined in the nginx.conf file, which is typically, web-data. On Wednesday, September 10, 2014 11:03:13 AM UTC-5, myappeng...@gmail.com wrote: > > Hi, e

[web2py] Login password changed

2014-09-14 Thread 'FERNANDO VILLARROEL' via web2py-users
Dear All. For some reason i do not know, the login password on my web2py site changed. Is possible that someone is attack my website?, how i can prevent or solve this issue? For reseted the password i must updated auth_user like: update auth_user set password=md('foo'); What do you think? I

[web2py] Post tags implementation

2014-09-14 Thread Yousif Iyad Shaban
Hello guys again. Is there a default way of implementing post tags? I've seen something like building another table and referencing it in the Post table, however - for instance - in django, there's a module that does all this especially. What would you recommend? Thank you. -- Resources: - ht

[web2py] using plugin_jqmobile prevents uploading a file

2014-09-14 Thread Martin Weissenboeck
I have a very simple model db.define_table('ding', Field('beschreibung'), Field('bild','upload') ) a simple function def snap(): form=SQLFORM(db.ding, None, deletable=True, upload=URL('download')) if form.process().accepted: respon

[web2py] Minimize CSS ( custom.widget) statements for custom styled forms

2014-09-14 Thread Shubham Rathi
The following is a controller in web2py: #Sign-in/Sign-up page#def signup():form = SQLFORM(db.auth_user) return dict(form=form)def signin():if auth.is_logged_in(): redirect(URL(r=request, c='default', f="index"))login_form = auth.login() login_form["_class"] =

[web2py] Re: Reddit clone - make a menu by a query error

2014-09-14 Thread olivier hubert
I find my problem. I define all my tables in my_table.py models file. This files is loaded by web2py after the menu.py file. So category is not know at the moment of menu.py logic is loaded and return an error. I define my models logic in a db1.py file now and all is ok Thanks for your reply

[web2py] Problems with send mail.

2014-09-14 Thread Капылов Данил
Problems with send mail. Ad created Letters do not have Hosting PythonAnywhere ## configure email mail = auth.settings.mailer mail.settings.server = 'logging' or 'smtp.gmail.com:587' mail.settings.sender = 'kapy...@gmail.com' mail.settings.login = 'kapy...@gmail.com:secretcode' def created_ad():

[web2py] How do I configure my domain to hosting PythonAnywhere

2014-09-14 Thread Капылов Данил
How do I configure my domain to hosting PythonAnywhere Give detailed step by step instructions in please -- 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: 'Table' object has no attribute 'type'

2014-09-14 Thread Tommi Lahtonen
On Saturday, September 13, 2014 7:58:41 PM UTC+3, Anthony wrote: > > Can you show the relevant code (i.e., model definition and the login > onaccept function)? > > Full source code is here: http://appro.mit.jyu.fi/temp/viikko.zip unpacked and browsable version is here: http://appro.mit.jyu.fi

[web2py] User Registration with Email Verification

2014-09-14 Thread Patrick Farrell
Hi, My name is Patrick and I have been using web2py for a few months. I have a few questions about user registration with email verification. 1) How do I create a custom verification email with my own template when a user account is created? 2) How do I re-direct the user to a different page

[web2py] MARKMIN image margin

2014-09-14 Thread olivier hubert
Is it possible to add a margin with a MARKMIN syntax to a image ? -- 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 ar

[web2py] Re: Beginner issues

2014-09-14 Thread Jean-Paul McCoy
I am not an expert but it seems that you need a two stage validation, for which I would use AJAX form submission. On Thursday, September 11, 2014 5:22:04 AM UTC-7, Pedro Henrique Correa Ferreira wrote: > > Hey, lads! > > How you're doing? > > I've got a issue with data validation. I gotta use a

[web2py] show multiple buttons in SQLFORM

2014-09-14 Thread olivier hubert
I have a simple FORM with a submit button and I want to add a second button to open a new window with Markmin info. I declare my form like that form = SQLFORM(db.comm, buttons=['submit', A("Markmin syntax",_class='btn',_href="http://www.web2py.com/init/static/markmin.html";, _target="_blank")]

[web2py] How to use define_table format parameter beyond referenced records in select drop-downs?

2014-09-14 Thread Giacomo Dorigo
given a simple table db.define_table('person', Field('first_name'), Field('second_name'), format='%(first_name) %(second_name)' ) and a row object row = db.person(1) how can I print the row object formatted according to the

[web2py] Re: Web2py web mapping capabilities

2014-09-14 Thread Massimo Di Pierro
Some of the geoDjango equivalent equivalent features are built in into web2py: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#PostGIS--SpatiaLite--and-MS-Geo--experimental- For plotting maps we user google maps (look into generic.map also built-in web2py). On Fri

[web2py] Re: MARKMIN image margin

2014-09-14 Thread Massimo Di Pierro
You should do that via CSS. One should be able to user markup languages to change style of elements. On Sunday, 14 September 2014 12:19:32 UTC-5, olivier hubert wrote: > > Is it possible to add a margin with a MARKMIN syntax to a image ? > -- Resources: - http://web2py.com - http://web2py.com/b

[web2py] Re: Beginner issues

2014-09-14 Thread Niphlod
you need an onvalidate call http://web2py.com/books/default/chapter/29/07/forms-and-validators#onvalidation On Sunday, September 14, 2014 8:02:30 PM UTC+2, Jean-Paul McCoy wrote: > > I am not an expert but it seems that you need a two stage validation, for > which I would use AJAX form submissio

[web2py] Re: User Registration with Email Verification

2014-09-14 Thread Leonel Câmara
> 1) How do I create a custom verification email with my own template when a > user account is created? > You can set auth.messages.verify_email to change the verify template: This is the default template: 'Welcome %(username)s! Click on the link %(link)s to verify your email', You can chan

[web2py] Re: using plugin_jqmobile prevents uploading a file

2014-09-14 Thread pn
It is probably because you cannot upload files when ajax is enabled in jquery-mobile forms. There are more details at the following links on how to correctly structure a file upload form in jquery mobile. Quote from their docs (http://demos.jquerymobile.com/1.4.4/forms/ -- near the bottom of

[web2py] ssl certificate?

2014-09-14 Thread Massimo DiPierro
Any recommendation about where to buy a cheat ssl certificate? I have used RapidSSL before. -- 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

[web2py] Re: ssl certificate?

2014-09-14 Thread Anthony
Check out StartSSL: http://www.startssl.com/?app=39 They offer Class 1 certificates for free. $59.90 for Class 2 /3. Anthony On Sunday, September 14, 2014 9:30:45 PM UTC-4, Massimo Di Pierro wrote: > > Any recommendation about where to buy a cheat ssl certificate? I have used > RapidSSL before

[web2py] Re: using plugin_jqmobile prevents uploading a file

2014-09-14 Thread Martin Weissenboeck
Thank you, that is the solution. I have changed my function to: form=SQLFORM(db.ding, None, deletable=True, upload=URL('download'), data={'ajax':'false'}) ​Now it works as expected. 2014-09-15 0:46 GMT+02:00 pn : > It is probably because you cannot upload files when ajax is enabled in > jquery