Re: [web2py] Re: UnicodeDecodeError "'utf-8' codec can't decode..." when inserting a blob in database (python 3.6.3)

2018-04-03 Thread alexandre . henry
speaking! Le lundi 2 avril 2018 16:36:59 UTC+2, Mathieu Clabaut a écrit : > > Alexandre, > > just go to : https://github.com/web2py/web2py/issues/new > > And fill in the issue withe the information given in your mail. > > Le ven. 30 mars 2018 à 16:50, > a > écrit : &

[web2py] Re: UnicodeDecodeError "'utf-8' codec can't decode..." when inserting a blob in database (python 3.6.3)

2018-03-30 Thread alexandre . henry
Sure! Let me see how to do that and I will. Thank you Le mercredi 28 mars 2018 18:49:08 UTC+2, Massimo Di Pierro a écrit : > > I think this is. Can you please open an issue about it? > > On Tuesday, 27 March 2018 13:32:15 UTC-5, alexand...@gmail.com > wrote: >> >> Hello All, >> >> I'm an absolut

[web2py] UnicodeDecodeError "'utf-8' codec can't decode..." when inserting a blob in database (python 3.6.3)

2018-03-27 Thread alexandre . henry
Hello All, I'm an absolute newbie with web2py so I'm not sure if the issue lies in web2py/3.6 or my own mistakes... My apologies in advance. I encounter this error in a db.my_table.update_or_insert(..) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfe in position 96328: invalid start by

Re: [web2py] Re: Get date from datetime with DAL

2017-03-31 Thread Alexandre Andrade
I now it was posted a long time ago, but there are a simpler solution: dt = request.now.date() rows = db( (db.events.created_on.date()==dt) ).select() Em sábado, 16 de julho de 2011 09:25:57 UTC-3, AngeloC escreveu: > > > that "dirty hack" fails for the MSSQL adapter in 1.97.1: > > Well

Re: [web2py] Re: DAL Query by Date on Datetime Field.

2017-03-31 Thread Alexandre Andrade
I now it was posted a long time ago, but there are a simpler solution: dt = request.now.date() rows = db( (db.events.created_on.date()==dt) ).select() Em terça-feira, 28 de junho de 2011 17:10:08 UTC-3, Vasile Ermicioi escreveu: > > a bit longer but selects by exact date > > dt = reque

[web2py] Re: record versioning and standalone DAL

2014-03-18 Thread Alexandre Andrade
To record versiong works, you should set db._common_fields.append(auth.signature) after you db.define_tables() but before defining any other table and db.enable_record_versioning(db) after you define all tables Em segunda-feira, 30 de setembro de 2013 17h28min12s UTC-3, JaapP escreveu:

[web2py] custom widget dont work

2013-04-25 Thread Alexandre Andrade
below, but for some reason, the value of json input dont save to database. What i am missing? http://pastebin.com/MAkZAG7b -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos -- --- You received this message because you are subscribed to the Google Groups "web2py-

[web2py] Disable button in /admin

2012-01-30 Thread Alexandre Andrade
While it can be a little obvious what it can do, the button 'Disable' in /admin/site has no documentation at book. The main doubt is what happens if i disable, if I will be able to enable easily again. So its interesting append it to the book. -- Atenciosamente Alexand

Re: [web2py] Many apps but only one needs https.

2012-01-30 Thread Alexandre Andrade
; > > 2012/1/29 Alexandre Andrade > >> while https can be used for everyone, u can force https just to one. >> >> >> >> Em 28 de janeiro de 2012 12:51, António Ramos escreveu: >> >> Hello, if i have 20 apps in the same server of web2py

Re: [web2py] Many apps but only one needs https.

2012-01-29 Thread Alexandre Andrade
t; -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

Re: [web2py] Re: Is it me or what?

2012-01-20 Thread Alexandre Andrade
tem for > *example*<http://ourway.ir/blog/index?page=2&tag=None&u=rodmena> > . > http://ourway.ir/blog > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

Re: [web2py] T and internationalization

2012-01-13 Thread Alexandre Andrade
I think u can create a file en_US or en_GB manually Alexandre Andrade 2012/1/13 Niphlod > Hi, > I'm currently researching the possibility to add some translations > using the T helper in a different way then usual. > > Let's say that I wrote all the strings to

Re: [web2py] Re: Routes error

2012-01-13 Thread Alexandre Andrade
e , and then i entered the > admin and clicked reload routes ,and then i restarted the sever , but > nothing happend !! > > what to do ? > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

Re: [web2py] admin password

2012-01-12 Thread Alexandre Andrade
completing just stop the web2py server (or apache) and run in console: # python web2py it will ask you a new password look at port it runs (like 8000) and copy the file to run in port 443 (https): # cp parameters_8000.py parameters_443.py Alexandre Andrade 2012/1/12 Alexandre Andrade

Re: [web2py] admin password

2012-01-12 Thread Alexandre Andrade
just stop the web2py server (or apache) and run in console: # python web2py it will ask you a new password Alexandre Andrade 2012/1/12 lucas > hello one and all, > > i am stupid. i forgot the web2py admin password on my server and i > can't access the https interface. how

Re: [web2py] Routes error

2012-01-11 Thread Alexandre Andrade
Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

Re: [web2py] Web2py binary distribution and psycopg2 driver

2012-01-11 Thread Alexandre Andrade
I remember the postgresql driver usually works with the source distribuition of web2py on windows. I think a way u get it working is use the source web2py on windows, and use py2exe or similar to create a executable. Alexandre Andrade 2012/1/10 Álvaro J. Iradier > Hi, > > I was

Re: [web2py] plugin badmin

2012-01-11 Thread Alexandre Andrade
I understand the diferences between grid and smartgrid. thank you anyway for reply. What mean to ask is the diference between them and badmin, in https://github.com/elcio/badmin Alexandre Andrade 2012/1/10 Jim Steil > The other big difference is that you can pass a query (in place of

Re: [web2py] plugin badmin

2012-01-10 Thread Alexandre Andrade
What is the diference to sqlform.grid or sqlform.smartgrid? looks similar 2012/1/10 Bruno Rocha > Just found this > > https://github.com/elcio/badmin > > I am going to test it more, looks very nice! > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

[web2py] SQLFORM.smartgrid i18n

2011-12-30 Thread Alexandre Andrade
I cant found a way to translate the "Submit" button and 'Check to delete' using smartgrid. crud.settings doenst work. Any tips? -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

Re: [web2py] Re: Some doubts about SQLFORM.smartgrid

2011-12-26 Thread Alexandre Andrade
Great, Massimo! 2011/12/26 Massimo Di Pierro > uploading to trunk > > On Dec 26, 11:42 am, Alexandre Andrade > wrote: > > I could solve most of my problems using the new fantastic smartgrid. > > > > But i have 2 sugestions for the developers: > >

Re: [web2py] Re: Internationalization for DB table field names and DB table content

2011-12-26 Thread Alexandre Andrade
ill need a tool/api to automate translation, and use a function to call it. Alexandre Andrade 2011/12/26 Mathias Van Daele > Hey Anthony, thanks for your answer ! > > Your solution for question 1 working fine ! (with label) > For questions 2 I am still trying... > > Mathias

Re: [web2py] Some doubts about SQLFORM.smartgrid

2011-12-26 Thread Alexandre Andrade
;),_type="button",_id="w2p_query_trigger", to allow i18n and line 1925: from ' ', to: ' > ', to correct separation between first and second steps Regards. Alexandre Andra

Re: [web2py] Some doubts about SQLFORM.smartgrid

2011-12-26 Thread Alexandre Andrade
etSearch}, > searchable=True, > paginate=15, maxtextlength=45) > > All of these work ok for me. Possibly your use cases are different that > mine. Could you share some detail about what you are seeing that isn't > wo

Re: [web2py] Some doubts about SQLFORM.smartgrid

2011-12-26 Thread Alexandre Andrade
Hi Jim, Just to know your example of query worked to me. Thanks again. Alexandre Andrade 2011/12/26 Alexandre Andrade > Hi Jim, > > Thanks for reply. > > 1. I will try your example of query/contraints. > 2. about represent/lambda issue: i get it working with a workaround

[web2py] Some doubts about SQLFORM.smartgrid

2011-12-26 Thread Alexandre Andrade
query in the search field. Could someone provide a example of using constraints? -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

[web2py] Haml + Sass (or Scss) Would be so lovely

2011-09-25 Thread Alexandre Strzelewicz
Please integrates this technologies in web2py ! It will become a super fast framework for prototyping webapps

[web2py] Re: export data to OOO and Excel

2011-07-23 Thread Alexandre Augusto
cyber, You can download it from here: http://www.python-excel.org/ If you are using ubuntu linux distribution you can install it like this: sudo apt-get install python-xlwt

[web2py] Re: Skytoop : a web desktop like, created with Web2Py on server side

2011-06-14 Thread Alexandre Strzelewicz
Sorry to spam just a bit but here are a mini tutorial to launch Skytoop with web2py : http://blog.hemca.com/?p=878 (See you soon ! I will do a benchmark using Web2py with FastCGI and NGINX vs Ruby on Rails vs Django vs Node ;) )

[web2py] Re: Skytoop : a web desktop like, created with Web2Py on server side

2011-06-14 Thread Alexandre Strzelewicz
Here are the sources : https://github.com/Alexandre-Strzelewicz/Skytoop

[web2py] Web2Py & RoR performances

2011-06-09 Thread Alexandre Strzelewicz
Hi, I learned Web2Py and I'm learning Ruby on Rails. Is Ruby on Rails faster than Web2py ? It seems web2py open/read/close each files (db.py, controller...) to render a page (including all partials, layout...). Ruby Rails seems to cache all this files into memory, so it's faster. Any note abou

Re: [web2py] web2py 1.96.2 is OUT & security warning

2011-06-05 Thread Alexandre Andrade
e "gluon/html.py", line 29, in from utils import web2py_uuid, hmac_hash File "gluon/utils.py", line 98, in ctokens = initialize_urandom() File "gluon/utils.py", line 93, in initialize_urandom logging.warn( NameError: global name 'logging'

Re: [web2py] web2py 1.96.2 is OUT & security warning

2011-06-05 Thread Alexandre Andrade
. Alexandre 1/6/3 Massimo Di Pierro > We fixed a few more bugs (strangely most of them preexisting 1.96.1). > We also addressed two security issues as I will explain later in this > email: > > here is am reporting the 1.96.1 changelog with some additions > > Changelog: &

[web2py] Re: Add a decorator @security.xssprevention ?

2011-05-25 Thread Alexandre Strzelewicz
For ajax queries On May 25, 4:58 pm, Anthony wrote: > By default, web2py already escapes all variables rendered in views to > prevent XSS -- what additional protection does this provide? > > > > > > > > On Wednesday, May 25, 2011 10:32:30 AM UTC-4, Alexandre Strzel

[web2py] Add a decorator @security.xssprevention ?

2011-05-25 Thread Alexandre Strzelewicz
It could be a good idea to add a decorator to escape all requested variables to avoid xss no ? Actually I do : In controller : xss = local_import('xss') def new_widget(): can_modify() # Xss prevention for req in request.vars: request.vars[req] = xss.xssescape(request.vars[re

[web2py] Lighter processing for AJAX requests ?

2011-05-13 Thread Alexandre Strzelewicz
Hi, I use a lot of ajax requests to get data asynchronously but each requests are heavy to handle on server side. Indeed, when web2py receive an ajax request, it process : - web2py python core files - ... - db.py - controller.py The result is that for each ajax requests one CPU is taken at 100%.

[web2py] Re: Skytoop : a web desktop like, created with Web2Py on server side

2011-05-07 Thread Alexandre Strzelewicz
t; pluginspage='http://www.adobe.com/go/getflashplayer'> > >> Like that. :D  It's the station I listen to. > >> BR, > >> Jason Brower > > >> On Mon, May 2, 2011 at 8:08 PM, Jason Brower wrote: > > >>> On 05/02/2011 07:13 PM, Ale

[web2py] Re: Skytoop : a web desktop like, created with Web2Py on server side

2011-05-03 Thread Alexandre Strzelewicz
Thanks a lot ! Thanks to all the Web2Py community, without this framework I couldn't do this project, I will continue to work on it and I have a lot of other projects ! (The JS Ui used is Jquery-UI) Alexandre Strzelewicz

[web2py] Skytoop : a web desktop like, created with Web2Py on server side

2011-05-02 Thread Alexandre Strzelewicz
I have the pleasure to present you Skytoop, http://www.skytoop.com/ If someone have tips or feedback to give me it coould be nice !

[web2py] Re: mod_alias ? Redirecting subdomain directly to an web2py app

2011-05-02 Thread Alexandre Strzelewicz
O I found : routes_in = ( (r'.*http://app1.com.* (/login.*)', r'/APPNAME/default/user/ login'), (r'.*http://app1.com.* (/logout.*)', r'/APPNAME/default/user/ logout'), ) On May 2, 2:51 pm, Alexandre Strzelewicz wrote: > O I f

[web2py] Re: mod_alias ? Redirecting subdomain directly to an web2py app

2011-05-02 Thread Alexandre Strzelewicz
O I found : routes_in = ( (r'.*http://app1.com.* (/login.*)', r'/default/user/login'), ) On May 2, 2:19 pm, Alexandre Strzelewicz wrote: > So I tried : > > routes_in = ( >     ('^88\.88\.88\.88:/$','/examples/default/index')

[web2py] Re: mod_alias ? Redirecting subdomain directly to an web2py app

2011-05-02 Thread Alexandre Strzelewicz
o /examples/default/index when I come from http://myapp1.com Is there an error ? On May 2, 1:49 pm, Alexandre Strzelewicz wrote: > So I cant map > /public/index/Demo.Demo to /public/Demo.Demo if I use the parameter > based system ? > > On May 2, 2:48 am, Jonathan Lundell wrote

[web2py] Re: mod_alias ? Redirecting subdomain directly to an web2py app

2011-05-02 Thread Alexandre Strzelewicz
So I cant map /public/index/Demo.Demo to /public/Demo.Demo if I use the parameter based system ? On May 2, 2:48 am, Jonathan Lundell wrote: > On May 1, 2011, at 5:27 PM, Alexandre Strzelewicz wrote: > > > > > > > > > > > > > I tried lot of thi

[web2py] Re: mod_alias ? Redirecting subdomain directly to an web2py app

2011-05-01 Thread Alexandre Strzelewicz
p1.com" : "app1", "app2.com" : "app2" } ), ) ? routes_in = (('/login', '/app1/default/user/login')) -> doesn't work. It says that default/login is not avaible ... On May 2, 12:36 am, Alexandre Strzelewicz w

[web2py] Re: mod_alias ? Redirecting subdomain directly to an web2py app

2011-05-01 Thread Alexandre Strzelewicz
stem > (http://web2py.com/book/default/chapter/04#Pattern-Based-System). > > > > > > > > On Sunday, May 1, 2011 1:40:02 PM UTC-4, Alexandre Strzelewicz wrote: > > Hi, > > > I used  the script 'setup-web2py-nginx-uwsgi-ubuntu.sh' to configure

[web2py] Re: mod_alias ? Redirecting subdomain directly to an web2py app

2011-05-01 Thread Alexandre Strzelewicz
Sorry Its not with the nginx script but the apache script ! I want to redirect each subdomains on different web application of we2py : sub1.domain.com -> welcome app sub2.domain.com -> application2 So changing only the default application on routes.py its not the prefered solution On 1 m

[web2py] mod_alias ? Redirecting subdomain directly to an web2py app

2011-05-01 Thread Alexandre Strzelewicz
Hi, I used the script 'setup-web2py-nginx-uwsgi-ubuntu.sh' to configure my server. But now when I go to http://myserver.com, it automatically redirect me to http://myserver.com/welcome Now I want to configure apache to map http://MYAPP.domain.com/ to http://myserver.com/MYAPP. So I think I ha

[web2py] Re: Using HTML5 local storage for Web2Py Doc - Creating a Wiki on Git to list all plugins ?

2011-04-30 Thread Alexandre Strzelewicz
Ok the HTML5 idea was not so great but actualizing the GIT repo on GitHub (https://github.com/web2py/web2py) and adding a Wiki as Node.js could be a good idea... I can do this job if you want... On Apr 29, 9:12 pm, Alexandre Strzelewicz wrote: > Why don't we do a Wiki as Node.js which

[web2py] Using HTML5 local storage for Web2Py Doc - Creating a Wiki on Git to list all plugins ?

2011-04-29 Thread Alexandre Strzelewicz
Why don't we do a Wiki as Node.js which list all plugins related to Web2Py created by the community ? Like that : https://github.com/joyent/node/wiki/modules And why the Web2Py's documentation doesn't use the HTML5 local storage ? It can be a good argument :)

Re: [web2py] Fwd: Solved -- Problems with special characters and pyfpdf

2011-04-28 Thread Alexandre Andrade
gs in 'utf-8' format. > > So, as a solution, in your python code you just have to convert the > string before passing it topyfpdf, like this: > > txt = 'Hélló wórld' > utxt = unicode('txt', 'utf-8') > stxt = utxt.encode('iso-8859-1') > pdf.cell(50,20, stxt, 0, 2, 'L') > > If anyone has any doubts, just ask. I hope this can help someone... > > kind regards, > Bernardo > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

[web2py] How to get the name of the current application ?

2011-04-28 Thread Alexandre Strzelewicz
How to get the name of the current application ? (in db.py) Thanks !

[web2py] Decentralizing user tables - Using another database for auth tables

2011-04-26 Thread Alexandre Strzelewicz
Hi, Is it possible to decentralize user tables (auth_user, auth_group, auth_*) on other database ? Thanks

[web2py] Re: A way to select a range of ids ?

2011-04-25 Thread Alexandre Strzelewicz
With db._lastsql I saw that limitby apply an offset, sorry for this question On Apr 25, 1:18 pm, Alexandre Strzelewicz wrote: > Hi, > > Is there a way to select a range of ids from database ? > > Actually I use db(db.articles.id>20).select(limitby=(20, 30)) > > But

[web2py] A way to select a range of ids ?

2011-04-25 Thread Alexandre Strzelewicz
Hi, Is there a way to select a range of ids from database ? Actually I use db(db.articles.id>20).select(limitby=(20, 30)) But I found the SQL keyword 'between' that permits to select a range of data between two values. Thanks

[web2py] Each applications can have their own routing property file ?

2011-04-14 Thread Alexandre Strzelewicz
Hi, Each application can have their own routing property file ? Actually all routing properties are put on routes.py, but I wanted to know if each applications could have their own routing property file. Thanks

[web2py] Re: A way to disable totally auto migration ?

2011-03-29 Thread Alexandre Strzelewicz
Perfect, thank you. (I prefer this current behaviour than the overidde) On Mar 28, 3:53 pm, Jose wrote: > On 28 mar, 07:13, Alexandre Strzelewicz > > wrote: > > I have recurrent problems with auto-migration. > > > Is there a way to totally disable migration on all tabl

[web2py] A way to disable totally auto migration ?

2011-03-28 Thread Alexandre Strzelewicz
I have recurrent problems with auto-migration. Is there a way to totally disable migration on all tables ? Thanks

Re: [web2py] Re: Alternative for annoying default javascript integer/double/decimal validtors

2011-03-22 Thread Alexandre Andrade
ing > > it :-) > > > > 3. The jquery events listen to both keyup and keydown. keyup is necessary > > because the input.value has not yet been updated when keydown is fired. > But > > listening to keydown is useful if the user holds down the backspace key - > > the background color will be reset as soon as the last offending > character > > has been deleted, rather than waiting for the user to release the > backspace > > key. > > > > 4. I used the class name "w2p_inputerror" in an attept to namespace this > > somewhat web2py-specific class. > > > > I hope some people find this to be useful. If other people have been > annoyed > > by the current default, perhaps we could open discussion to make this the > > new default in web2py? > > > > Cheers, > > Kevin > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

Re: [web2py] PDF report

2011-03-11 Thread Alexandre Andrade
tp://algoritmizando.com > # http://twitter.com/bruninbsb > # --- > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

[web2py] Re: Insensitive case select ?

2011-02-28 Thread Alexandre Strzelewicz
tive:http://vyaskn.tripod.com/case_sensitive_search_in_sql_server.htm > > On Feb 28, 12:45 pm, Alexandre Strzelewicz > > > > > > > > wrote: > > Can we do an insensitive case query select with web2py ? > > > Thanks

[web2py] Insensitive case select ?

2011-02-28 Thread Alexandre Strzelewicz
Can we do an insensitive case query select with web2py ? Thanks

[web2py] Re: Displaying br instead new line in views

2011-02-27 Thread Alexandre Strzelewicz
; > {{=XML(note.content.replace('\\n',''),sanitize=True)}} > > > > Best regards > > > > On Feb 20, 9:35 pm, DenesL wrote: > > > > > {{=XML(note.content.replace('\n',''),sanitize=True)}} > > > > > On

[web2py] Re: Displaying br instead new line in views

2011-02-20 Thread Alexandre Strzelewicz
Same :/ I've already tried to replace double quotes with nothing On Feb 20, 5:34 pm, Jonathan Lundell wrote: > On Feb 20, 2011, at 8:13 AM, Alexandre Strzelewicz wrote: > > > > > > > > > > > > > Rhm sorry for posting 4 times the same message..

[web2py] Re: Displaying br instead new line in views

2011-02-20 Thread Alexandre Strzelewicz
ent, sanitize=True).xml().replace('\n',')}} > > Bruno Rocha > [ About me:http://zerp.ly/rochacbruno] > > 2011/2/19 Alexandre Strzelewicz > > > > > > > > > Thanks, but it doesn't work, it gives me the error "unexpected

[web2py] Re: Displaying br instead new line in views

2011-02-19 Thread Alexandre Strzelewicz
replace('\n',')}} > > On Feb 19, 8:18 am, Alexandre Strzelewicz > > > > > > > > wrote: > > In my view I display text with : > > {{=note.content}} > > > But I didnt find a way to replace new line with . > > I tried directly with replace('\n', '') but it escapes the br in > > html format > > > Thanks

Re: [web2py] Re: Displaying br instead new line in views

2011-02-19 Thread Alexandre Strzelewicz
gt; {{=XML(note.content,escape=True).xml().replace('\n',')}} > > > On Feb 19, 8:18 am, Alexandre Strzelewicz > wrote: > > In my view I display text with : > > {{=note.content}} > > > > But I didnt find a way to replace new line with . >

[web2py] Re: Displaying br instead new line in views

2011-02-19 Thread Alexandre Strzelewicz
It doesn't work, it gives me the error "unexpected keyword argument escape". Is there a way to remove double quotes when printing {{=note.content}} ? Thanks On Feb 19, 3:18 pm, Alexandre Strzelewicz wrote: > In my view I display text with : > {{=note.content}} > >

[web2py] Re: Displaying br instead new line in views

2011-02-19 Thread Alexandre Strzelewicz
replace('\n',')}} > > On Feb 19, 8:18 am, Alexandre Strzelewicz > > > > > > > > wrote: > > In my view I display text with : > > {{=note.content}} > > > But I didnt find a way to replace new line with . > > I tried directly with replace('\n', '') but it escapes the br in > > html format > > > Thanks

[web2py] Displaying br instead new line in views

2011-02-19 Thread Alexandre Strzelewicz
In my view I display text with : {{=note.content}} But I didnt find a way to replace new line with . I tried directly with replace('\n', '') but it escapes the br in html format Thanks

Re: [web2py] web2py 1.92.1 is OUT

2011-02-16 Thread Alexandre Andrade
IS_MATCH(...,strict=True) > URL(...,scheme=,host=,port=), thanks Jonathan > admin in Afrikaans, thanks Caleb > auth.signature (experimental) > many bug fixes > > please test it and report any issue. > > Massimo -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

Re: [web2py] IS_EMAIL allows upper and lower cases

2011-02-15 Thread Alexandre Andrade
Can I make a proposal to improve it? to me, a email have always to be lower case, specially when it is used to login. The problem is that email in auth_user need to be a unique key, and it allows to be duplicated. 2011/2/15 Jonathan Lundell > On Feb 15, 2011, at 9:06 AM, Alexandre Andr

[web2py] IS_EMAIL allows upper and lower cases

2011-02-15 Thread Alexandre Andrade
. -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

Re: [web2py] how may I do this (block and unblock buttons for admin dashboard)

2011-02-09 Thread Alexandre Andrade
k_access=A(T('unblock access'),_href=URL(r=request,c='default', > f='unblock_access')) > return dict(block_access=block_access, unblock_access=unblock_access) > > Since I will need to modify the block and unblock function like this : > > def block_access(): > """ > UPDATE auth_user > SET registration_key='blocked' > WHERE auth_user.registration_key = '' > AND auth_user.email <> 'myem...@mydomain.com' > """ > db((db.auth_user.registration_key == '') & (db.auth_user.email != ' > myem...@mydomain.com')).update(registration_key='blocked') > db.commit() > redirect(URL(r=request,c='default', f='index')) > > Is there an other way by not utilising redirection? > > Thanks > > Richard > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos

Re: [web2py] http and https

2011-02-04 Thread Alexandre Andrade
http://www.mydomain.org:80 and https://secure.mydomain.org:443 > > What shall I do: > - start two instances of web2py > - or use URL-rewrite? > > Regards, > Martin > > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes

Re: [web2py] Form to Email

2011-02-04 Thread Alexandre Andrade
like my application to send me the form fields > via email. > > My hosting provider will supply form mail.php files: > On Linux hosting accounts, this will re-install the "gdform.php", > "webformmailer.php", and "gdform.cgi" (this is in the "cgi" directory) > form-mailer scripts for your hosting account > > Can I utilize these? > > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes

Re: [web2py] cascading drop down list not working

2011-01-31 Thread Alexandre Andrade
ain/slices/take_slice/85 > [2] http://ompldr.org/vNzhnMg > > The model has no problem without the widget. > What am I doing wrong? > > Very thanks in advance for your help and time on this. > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes

Re: [web2py] widgets

2011-01-30 Thread Alexandre Andrade
çao > Casa Civil do Governador > 83 3214 7885 - 88269088 > Paraiba > > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes

Re: [web2py] Re: The web of connected p2p web2py apps ? (or a new kind of social network)

2011-01-28 Thread Alexandre Andrade
django's. > > -Bill > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes

Re: [web2py] Speeding up IS_IN_DB

2011-01-28 Thread Alexandre Andrade
divine power has given us everything we need > for life and godliness through the full knowledge of the one who called us > by his own glory and excellence. > 2 Pet. 1:2b,3a > > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes

Re: [web2py] looking for advice on validation

2011-01-17 Thread Alexandre Andrade
there was a way I could do this with SQLFORM. > > I'd appreciate any recommendations and/or examples. > > Thanks, - Tom > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes

Re: [web2py] is there a way to rename a database ?

2011-01-14 Thread Alexandre Andrade
Sorry, it is to migrate a table. To migrate/rename a database, do what is here: http://alexandremas.blogspot.com/2009/11/short-tutorial-to-migrate-web2py.html Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes 2011/1/14 Alexandre Andrade > How to

Re: [web2py] is there a way to rename a database ?

2011-01-14 Thread Alexandre Andrade
How to do it: 1. backup it, exporting to csv - you can use appadmin for it 2. rename 3. restore the csv backup, using appadmin Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes 2011/1/14 Stef Mientki > hello, > > I would like to rename a dat

Re: [web2py] Re: Why the need of return dict() in controller?

2011-01-14 Thread Alexandre Andrade
Wait, so are you saying that instead of return dict(items=items, > blah=blah, > > etc) we can just use return locals() on most or all controllers? What's > the > > downside, memory? Implicitness? > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes

Re: [web2py] country / state / city of the current visitor?

2011-01-14 Thread Alexandre Andrade
I really wanted it! Valeu Bruno! Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes 2011/1/14 Bruno Rocha > > I fund this useful script: http://eternal-todo.com/var/scripts/geoloc > > Bruno Rocha > http://about.me/rochacbruno/bio > --

Re: [web2py] Best practice for including python libraries with my app

2011-01-13 Thread Alexandre Andrade
try to import, and if fails, generate message to user to install it on the system Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes 2011/1/13 Lorin Rivers > I am using tabular <http://www.parsemydata.com/tabular> (which requires > numpy), as well as ps

Re: [web2py] Re: experts

2011-01-12 Thread Alexandre Andrade
and select the team/developer 2. What garanties the organization will give to contractor about time and costs 3. What percentage of project will be retained to maintain the organization? 4. How the organization will follow the project to make it a sucess everytime? Atenciosamente Alexandre

Re: [web2py] Email gateway

2011-01-12 Thread Alexandre Andrade
see http://web2py.com/book/default/chapter/06?search=upload+#Manual-Uploads <http://web2py.com/book/default/chapter/06?search=upload+#Manual-Uploads> 2011/1/10 Kenneth Lundström > Thank You Bruno and Alexandre for your answers. > > I think I have now downloaded the attachment

Re: [web2py] Re: flush in web2py?

2011-01-10 Thread Alexandre Andrade
ces, have an iterator process the pieces separately, return the > iterator. > > > Massimo > > > On Jan 10, 3:59 pm, Alexandre Andrade > wrote: > > In php, you can flush the data with the flush() function. > > > > It allows to send the data to the browser wi

[web2py] flush in web2py?

2011-01-10 Thread Alexandre Andrade
a way to do this with web2py? -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes

Re: [web2py] Email gateway

2011-01-10 Thread Alexandre Andrade
You can start from http://docs.python.org/library/poplib.html http://docs.python.org/library/imaplib.html http://docs.python.org/library/email.parser.html Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes 2011/1/10 Kenneth Lundström > A gateway t

Re: [web2py] Re: The first code example of the CRUD Methods section of the online web2py book

2011-01-10 Thread Alexandre Andrade
Please forgot my last message. 2011/1/10 Alexandre Andrade > > The problem is supposed to be in this line: > > persons = crud.select(db.person, fields=['name'], > > headers={'person.name': 'Name'}) > > There is a typo, the last line shoul

Re: [web2py] Re: The first code example of the CRUD Methods section of the online web2py book

2011-01-10 Thread Alexandre Andrade
t; > And I just got this error message: > > " > > Error snapshot > > Detailed traceback description > > Exception: ('person') > > " > > > > The problem is supposed to be in this line: > > persons = crud.select(db.person, fields=['name'], > > headers={'person.name': 'Name'}) > > > > What's wrong with that? Thanks. > -- Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes

Re: [web2py] Re: Another web2py powered site

2011-01-05 Thread Alexandre Andrade
I have turned my main website (hipercenter.com ) from Cycling news agregator (hipercenter.com/ciclismo) into a classifieds website ( hipercenter.com/classificados). Still working in it. Sugestions are welcome. Atenciosamente Alexandre Andrade Hipercenter.com Classificados Grátis e

Re: [web2py] Web2py Application Exhibition 2.0 Winning Entries

2011-01-02 Thread Alexandre Andrade
agement System by Falko Krause > > For more information and to see other entries, > go to http://w2pexhibition.appspot.com/ > > Special thanks goes to Martin Mulone for creating and > hosting the Voting Application and Massimo for a > great framework! > -- Atencios

[web2py] Re: Exception during file autodelete

2010-12-21 Thread Alexandre Strzelewicz
Thanks for fix line ! On Dec 14, 12:50 am, Kurt Grutzmacher wrote: > Using latest web2py trunk. > > Upload Field configured for autodelete=True and executing "del > db.t_file_uploads[form.vars.id]" after processing the file: > > File "/Users/grutz/src/web2py/gluon/dal.py", line 3696, in __delitem

[web2py] Broken web2py Layout on IE6

2010-11-26 Thread Alexandre Augusto
New web2py layout renders all broken on IE6, as most of you I'm also big fan of Firefox and it looks great on Firefox. Although not all of ours customers think the same way.. I looked over a post about this and could only find issues related to older versions of web2py not displaying correctly on

[web2py] Re: flow charts

2010-11-10 Thread Alexandre Augusto
Hey Mart, If you like visual appealing JavaScript Framework you may also be interested in Raphaël—JavaScript Library What is it? Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. If you want to create your own specific chart or image crop and r

[web2py] Upload a file to db and store all metadata to separated db fields

2010-11-09 Thread Alexandre Augusto
ng to avoid the manual record insert directly but the change didn't went to db on the manual insert I added fictitious properties and method trying to access the properties array directly of FieldStorage object.. they are marked with questions marks (?) to indicate where I'm looki

Re: [web2py] Re: Managing permissions

2010-10-14 Thread Alexandre Andrade
d everything you say but this. You can just say: > > db.auth_permission.table_name.requires = None > > or > > db.auth_permission.table_name.requires = IS_IN_SET(whatever) > -- Atenciosamente -- = Alexandre Andrade Hipercenter.com

Re: [web2py] Re: Managing permissions

2010-10-13 Thread Alexandre Andrade
blem. Can you provide a test case and > what you expect? > > On Oct 13, 5:07 pm, Alexandre Andrade > wrote: > > The book says about auth_permission: > > > > auth_permission links groups and permissions. A permission is identified > by > > a name and, optionall

  1   2   3   4   >