[web2py] Question about superfish menu and roles

2011-06-09 Thread salbefe
Hello, I would like to use the superfish menu that is on the welcome application but showing only some links depending the role the user has. Is that possible?? Thanks in advance

[web2py] Problems using LOAD function

2011-06-01 Thread salbefe
Hello, The following code before I updated web2py via mercurial worked well for me. Now I get the following error if the ajax parameter is set to False. If is set to True, there is no error but the place where the view should be loaded is alway saying: loading... and nothing is showed. div

[web2py] Re: Problems using LOAD function

2011-06-01 Thread salbefe
myself. Thanks for all On 1 jun, 22:48, Massimo Di Pierro massimo.dipie...@gmail.com wrote: David and salbefe have different issues. @David web2py_component('quick_add_contact.load','contact_list') should be web2py_component('{{=URL('quick_add_contact.load'}}','contact_list') @salbefe

[web2py] Re: password encrypt during insert

2011-04-28 Thread salbefe
Hello, Yo can do this: db.auth_user.insert(first_name=...,last_name=...,email=...,password=db.auth_user.password.validate(myPassword)) On 28 abr, 08:36, 黄祥 steve.van.chris...@gmail.com wrote: hi, is there a way to input encrypted user password for the first time execution? i mean like

[web2py] Re: password encrypt during insert

2011-04-28 Thread salbefe
...@gmail.com wrote: hello, thank you so much for your pointer, salbefe. i can input the encrypted password but the result not like i've expected before. i mean there is an additional character on the field password. e.g.     db.auth_user.bulk_insert([{'first_name

[web2py] Re: password encrypt during insert

2011-04-28 Thread salbefe
wrote: hello, thank you so much for your pointer, salbefe. i can input the encrypted password but the result not like i've expected before. i mean there is an additional character on the field password. e.g.      db.auth_user.bulk_insert([{'first_name

[web2py] Question about custom registration form

2011-04-27 Thread salbefe
Hello, In the application were are developing a user with the admin role has to register the 'other users' that will have access to it. We would like to make a view that must have a form for registering users and a list of the users that are currently registered (all in the same view) For

[web2py] web2py last update from sources error: No module named simplejson.scanner

2011-03-01 Thread salbefe
I have downloaded last updates form Hello, I have downloaded last updates from the mercurial repository and when I try to execute web2py : python web2py.py I get the following error: ImportError: No module named simplejson.scanner File C:\web2py\web2py.py, line 16, in module import

[web2py] Re: web2py last update from sources error: No module named simplejson.scanner

2011-03-01 Thread salbefe
Now is working, Thanks !! On 1 mar, 20:24, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Please check again. On Mar 1, 12:25 pm, salbefe salb...@gmail.com wrote: I have downloaded last updates form Hello, I have downloaded last updates from the mercurial repository and when

[web2py] global name psycopg2 is not defined

2011-02-23 Thread salbefe
Hello, I have read severals posts about this error before posting but no one solves my problem. I'm running web2py from sources on a windows xp machine with python 2.6.6. I have downloaded and installed the last binary stable psycopg2 3.2.1 driver for windows and last I have downloaded

[web2py] Re: global name psycopg2 is not defined

2011-02-23 Thread salbefe
\bdist.win32\egg\psycopg2\_psycopg2.py, line 7, in module File build\bdist.win32\egg\psycopg2\_psycopg2.py, line 6, in __bootstrap__ ImportError: DLL load failed: No se puede encontrar el modulo especificado. On 23 feb, 12:21, salbefe salb...@gmail.com wrote: Hello, I have read severals posts about

[web2py] downloading a file

2011-02-20 Thread salbefe
Hello, I have a controller that gets same data from a database and creates a new file in excel format. These controller needs some time to write out the content of the database. In the view there is a form that when is submited calls this controller. I need to download the file once this has

[web2py] Orbited with web2py

2010-11-29 Thread salbefe
Hello, I need to push some content in my website in 'real time'. I'm asking if someone had tried orbited (http://orbited.org/). After reading this post: Integrating Orbited with Web App Frameworks (http://orbited.org/ blog/2008/09/integrating-orbited-with-web-app-frameworks/) it seems that it

[web2py] Re: Orbited with web2py

2010-11-29 Thread salbefe
, salbefe salb...@gmail.com wrote: Hello, I need to push some content in my website in 'real time'. I'm asking if someone had tried orbited (http://orbited.org/). After reading this post: Integrating Orbited with Web App Frameworks (http://orbited.org/ blog/2008/09/integrating

[web2py] number of logged users

2010-11-09 Thread salbefe
Hello, I would like to know how can I obtain the number of the current users that are logged on. Thanks in advance!

[web2py] Re: cherokee problem with fastcgi and uWSGI

2010-09-10 Thread salbefe
Roberto, thank you for all your responses by I can't make this thing working. As you told me I did the following: In a new terminal and as root I did :uwsgi --pythonpath /var/web2py -- module wsgihandler -s /tmp/ we2bpy.sock --socket :9092 and this one too: uwsgi --pythonpath /var/web2py

[web2py] Re: cherokee problem with fastcgi and uWSGI

2010-09-10 Thread salbefe
wrote: Il giorno 10/set/2010, alle ore 10.36, salbefe ha scritto: Roberto, thank you for all your responses by I can't make this thing working. As you told me I did the following: In a new terminal and as root I did :uwsgi --pythonpath /var/web2py -- module wsgihandler -s /tmp

[web2py] Re: cherokee problem with fastcgi and uWSGI

2010-09-10 Thread salbefe
...@unbit.it wrote: Il giorno 10/set/2010, alle ore 11.17, salbefe ha scritto: After downloading the current mercurial tip and after trying to compile I get the following error: [r...@tango uwsgi]# make -f Makefile.Py26 python2.6 uwsgiconfig.py --build Traceback (most recent call last

[web2py] Re: cherokee problem with fastcgi and uWSGI

2010-09-10 Thread salbefe
Yes !! It's working now ! Thank you very much :) Only one question more: because I'm running uWSGI independently from cherokee, how can I do to start uWSGI at system startup? Thanks a lot! On 10 sep, 12:15, Roberto De Ioris robe...@unbit.it wrote: Il giorno 10/set/2010, alle ore 12.07, salbefe

[web2py] cherokee problem with fastcgi and uWSGI

2010-09-09 Thread salbefe
Hello, I'm trying to deploy web2py with cherokee on a fedora core 13 distro but I have several problems on it. I have read the slice web2py with Cherokee via uWSGI: a simple, easy guide that it could be found in web2pyslices but this guide is outdated because it seems to be done for an older

[web2py] Re: cherokee problem with fastcgi and uWSGI

2010-09-09 Thread salbefe
. Anyone has any idea? Thanks in advance On 9 sep, 15:30, Jose jjac...@gmail.com wrote: On 9 sep, 07:42, salbefe salb...@gmail.com wrote: Hello, I'm trying to deploy web2py with cherokee on a fedora core 13 distro but I have several problems on it. I have read  the slice web2py

[web2py] Re: cherokee problem with fastcgi and uWSGI

2010-09-09 Thread salbefe
looking at /var/log/cherokee/error_log that is what I get: [uWSGI] parsing config file /var/web2py/config.xml *** Starting uWSGI 0.9.6 (32bit) on [Thu Sep 9 23:37:45 2010] *** compiled with version: 4.4.4 20100630 (Red Hat 4.4.4-10) Python version: 2.6.4 (r264:75706, Jun 4 2010, 18:20:16) [GCC

[web2py] Re: web2py 1.78.2

2010-05-18 Thread salbefe
Hello, I'm getting this error when I try to star any of the app: Ticket issued: admin/127.0.0.1.2010-05-18.10-39-45.4c56ac32- d0db-4f64-98f0-9e3c1c93518b Traceback (most recent call last):\n File C:\\web2py\\gluon\ \main.py, line 381, in wsgibase\nserve_controller(request, response,

[web2py] Re: left outer join problem on db2

2010-05-13 Thread salbefe
Hello, Only a question, at http://pypi.python.org/pypi/ibm_db/ there is a Python DBI driver for DB2. Why web2py is still using ODBC?? Will not be better to use this one instead of pyodbc?? Thanks On 11 mayo, 16:27, mdipierro mdipie...@cs.depaul.edu wrote: Thank you. will look into it.

[web2py] Re: jquery click function problem

2010-05-08 Thread salbefe
=bWorld/div this will work because the code is executed onclick and not on ajax load. Massimo On May 7, 12:22 pm, salbefe salb...@gmail.com wrote: Hello, First of all, I think I should say sorry because probably this is not the correct place to post the following problem but I'm getting

[web2py] jquery click function problem

2010-05-07 Thread salbefe
Hello, First of all, I think I should say sorry because probably this is not the correct place to post the following problem but I'm getting crazy. My problem with jquery is as follows: On a view I have a form that is submited via web2py ajax method. Something like this [] form

[web2py] prepolutating a SQLFORM.factory form

2010-04-16 Thread salbefe
Hello, I have a SQLFORM.factory form that I need to prepopulate with some data from a database. id_nodo = request.args(0) ## I get the data from the database nodo = db(db.node.id==id_nodo).select().first() detalle = db(db.node_details.node_id==id_nodo).select().first() ##Now I need to

[web2py] Re: prepolutating a SQLFORM.factory form

2010-04-16 Thread salbefe
: depending on the logicl you may not need this if statement at all. Massimo On Apr 16, 6:55 am, salbefe salb...@gmail.com wrote: Hello, I have a SQLFORM.factory form that I need to prepopulate with some data from a database. id_nodo = request.args(0) ## I get the data from

[web2py] Re: prepolutating a SQLFORM.factory form

2010-04-16 Thread salbefe
[record_id]   db.user.id.default = record.id   db.user.name.default = record.name   ... etc etc form = SQLFORM.factory(  db.user.name, db.user.email, Field('CustomField', default='hi') ) -- Thadeus On Fri, Apr 16, 2010 at 9:57 AM, salbefe salb...@gmail.com wrote: Thank

[web2py] custom registration form problem

2010-04-06 Thread salbefe
Hello, I'm trying to do my custom registration form. I have some problems with the password_two field.In my custom registration form form.custom.widget.password_two does not work (when it renders I get a None value) and as I could read on other thread (on august 2009) it is said that

[web2py] Re: custom registration form problem

2010-04-06 Thread salbefe
I have notice that the welcome application has the same problem. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] Re: problems using web2py ajax function

2010-03-28 Thread salbefe
Thanks, Now is clear to me. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit

[web2py] problems using web2py ajax function

2010-03-27 Thread salbefe
Hello, With the following code: div class=container style=color:#ff;text-align:center; span onclick=ajax('show_month',[3],'test'){{=month_str}}/ span div id=test/div /div I get the following javascript error message: document.getElementById(s[i]) is null I do not why I'm getting

[web2py] register action redirects to profile view

2010-03-24 Thread salbefe
Hello, I do not know why but on the default login form that I have on my application, If I click on the register link web2py redirects to the profile view. The default/user controller is the same as the welcome application and the default/user.html view the same. That happens only on my app. The

[web2py] Re: register action redirects to profile view

2010-03-24 Thread salbefe
... And the register link, links correctly to /init/dafult/user/ register -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] Re: register action redirects to profile view

2010-03-24 Thread salbefe
SOLVED. Something was happened with firefox Sorry -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com.

[web2py] custom login form doesn't return an errorm msg

2010-03-22 Thread salbefe
Hello, I made a custom login form with the following code. {{if request.args(0)=='login':}} {{=form.custom.begin}} Email:{{=form.custom.widget.email}} Password:{{=form.custom.widget.password}} {{=form.custom.submit}} {{=form.custom.end}} Now, when the user inputs an incorrect email or password

[web2py] Re: custom login form doesn't return an errorm msg

2010-03-22 Thread salbefe
Hello Massimo, I'm using a custom layout and I don't get any other flash messages. On 22 mar, 15:08, mdipierro mdipie...@cs.depaul.edu wrote: Do you get other flash messages? do you have a custom layout? On Mar 22, 5:47 am, salbefe salb...@gmail.com wrote: Hello, I made a custom

[web2py] Re: DAL problems on Firebird 2.1 (DROP COLUMN DOES NOT WORK)

2010-03-08 Thread salbefe
It's working fine now. Thanks. On 8 mar, 05:03, mdipierro mdipie...@cs.depaul.edu wrote: Please check it. It is in. On Mar 6, 12:17 pm, Jose jjac...@gmail.com wrote: On 6 mar, 15:36, salbefe salb...@gmail.com wrote: I'm using the latest version from mercurial repository. I sent

[web2py] DAL problems on Firebird 2.1 (DROP COLUMN DOES NOT WORK)

2010-03-06 Thread salbefe
Hello, After successfully connecting to the database I tried altering the definition of a table from this: db.define_table('node_details', Field('uid', 'integer', notnull=True), Field('title', length='255'), Field('body', 'text'),

[web2py] Re: DAL problems on Firebird 2.1 (DROP COLUMN DOES NOT WORK)

2010-03-06 Thread salbefe
I'm using the latest version from mercurial repository. On 6 mar, 13:53, Jose jjac...@gmail.com wrote: On 6 mar, 09:14, salbefe salb...@gmail.com wrote: The output from sql.log is as follows: ALTER TABLE node_details DROP COLUMN teaser; The problems is that for dropping a column

[web2py] Re: DAL problems on Firebird 2.1 (DROP COLUMN DOES NOT WORK)

2010-03-06 Thread salbefe
Thank you. Regards Salva On 6 mar, 19:17, Jose jjac...@gmail.com wrote: On 6 mar, 15:36, salbefe salb...@gmail.com wrote: I'm using the latest version from mercurial repository. I sent a patch to Massimo. Jose -- You received this message because you are subscribed to the Google Groups

[web2py] Re: firebird error when tries to execute auth.defines_tables()

2010-03-05 Thread salbefe
Thank you, I did as Villas said and is working fine but I do not understand the DAL for checking reserved SQL keywords. If put the following connection string : db = DAL('firebird:// SYSDBA:master...@localhost/c:\programas\ctodb.fdb', check_reserved=['firebird']) I get the same error as if I

[web2py] firebird error when tries to execute auth.defines_tables()

2010-03-04 Thread salbefe
Hello, I'm testing web2py with firebird 2.1 and I get the following error when I try to connect: Traceback (most recent call last): File C:\web2py\gluon\restricted.py, line 173, in restricted exec ccode in environment File C:/web2py/applications/init/models/db.py, line 34, in module

[web2py] modular layout

2010-02-14 Thread salbefe
Hello, I need to built a left sidebar from a database. In the main layout file I have the following code: div class=unit div class=container {{include 'default/leftsidebar.html'}} /div /div

[web2py] Re: modular layout

2010-02-14 Thread salbefe
, 11:08, salbefe salb...@gmail.com wrote: Hello, I need to built a left sidebar from a database. In the main layout file I have the following code: div class=unit      div class=container             {{include

[web2py] Re: modular layout

2010-02-14 Thread salbefe
the variables needed by both views. On Feb 14, 5:54 am, salbefe salb...@gmail.com wrote: Another question I would like a put a calendar on my website. div class=unit      div class=container             {{include 'default/calendar.html'}}     /div /div I know how to generate

[web2py:37948] Let Eclipse know about variables being passed into the controller at runtime

2009-12-28 Thread salbefe
Hello, I'm using eclipse IDE to develop an application. After reading the FAQ Support Eclipse, web2py, imports, code hints and code completion. There it explains that to let Eclipse know about variables being passed into the controller at runtime, you can do the following global db global

[web2py:36903] DB2 python driver

2009-12-09 Thread salbefe
Hello, I would like to know which is the best way to connect to a DB2 database. Could I use for example, the PyDB2 module or have I to connect through ODBC?? Thanks in advance. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this

[web2py:23176] Re: should login redirect to index function after login?

2009-06-03 Thread salbefe
. Massimo On Jun 2, 6:04 pm, salbefe salb...@gmail.com wrote: Annet, I found the problem but not the solution The login form that exposes  http:///[app]/default/user/login  has a hidden field called _next. This field at the beginning is empty. Because is empty web2py should redirect

[web2py:23104] Question related to models

2009-06-02 Thread salbefe
Hello, To explain what I'm trying to say I will put an example. For people that come from PHP frameworks like Zend or Code Igniter we use the models on the following way: First, we write each model on a file (like web2py) for example: ?php class Usermodel extends Model { function

[web2py:23124] Re: Question related to models

2009-06-02 Thread salbefe
, 6:03 pm, JohnMc maruadventu...@gmail.com wrote: salbefe, I understand your point coming from a CakePHP utilization. But most of the PHP based frameworks naturally gravitate to using a lower level of abstraction when operating on the DB with a global namespace. What you will find

[web2py:23126] should login redirect to index function after login?

2009-06-02 Thread salbefe
Hello, I don't know If I doing something wrong but I thought that after login using @auth.requires_login() I should be redirected to the index function. With this code, after login I remain on the loging screen: http:// 127.0.0.1:8000/test/default/user/login def index(): example

[web2py:23130] Re: should login redirect to index function after login?

2009-06-02 Thread salbefe
Thank you Annet I have tried your code but I does not work :( . Inside the Auth class source code I found this line of code inside the __init__ function : self.settings.login_next = self.url('index'). I think that means that after login it should be redirected to the index funtion. Tht's what

[web2py:23146] Re: should login redirect to index function after login?

2009-06-02 Thread salbefe
Hello Annet, I have set the URLs as you did in db.py, in my case: auth.settings.login_url=URL(r=request, c='default', f='user/login') auth.settings.login_next=URL(r=request, c='default', f='index') auth.settings.logout_next=URL(r=request,c='default',f='index') I think I do not need the first

[web2py:23151] Re: should login redirect to index function after login?

2009-06-02 Thread salbefe
Annet, Which version are you using?? Best regards Salva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from

[web2py:23155] Re: should login redirect to index function after login?

2009-06-02 Thread salbefe
Annet, I found the problem but not the solution The login form that exposes http:///[app]/default/user/login has a hidden field called _next. This field at the beginning is empty. Because is empty web2py should redirect to auth.settings.login_next=URL (r=request, c='default', f='index').

[web2py:23035] Re: web2y 1.63.1 posted

2009-06-01 Thread salbefe
Hello Massimo, Only one question: what's new on this version??? It's possible to known the changes between versions?? Thanks a lot.!! On 1 jun, 17:17, mdipierro mdipie...@cs.depaul.edu wrote: web2y 1.63.1 posted --~--~-~--~~~---~--~~ You received this message

[web2py:23036] Re: web2y 1.63.1 posted

2009-06-01 Thread salbefe
Sorry I found it On 1 jun, 17:44, salbefe salb...@gmail.com wrote: Hello Massimo, Only one question: what's new on this version??? It's possible to known the changes between versions?? Thanks a lot.!! On 1 jun, 17:17, mdipierro mdipie...@cs.depaul.edu wrote: web2y 1.63.1 posted

[web2py:22605] Re: Version reports a 1.62.3 (2009-05-19 23:25:03) as newest version

2009-05-25 Thread salbefe
Massimo, It happens on the mac version too. Regards On 25 mayo, 04:54, mdipierro mdipie...@cs.depaul.edu wrote: Yes, this is a known problem with the windows version. I will fix it asap. Massimo On May 24, 9:40 pm, Yannick ytchatch...@gmail.com wrote: Sorry maybe I don't understand