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
I noticed myself.
Thanks for all
On 1 jun, 22:48, Massimo Di Pierro wrote:
> David and salbefe have different issues.
>
> @David
>
> web2py_component('quick_add_contact.load','contact_list')"
>
> should be
>
> web2py_component('{{=URL('
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.
before.
>
>
>
>
>
>
>
> On Thu, Apr 28, 2011 at 9:46 PM, Anthony wrote:
> > On Thursday, April 28, 2011 7:42:15 AM UTC-4, 黄祥 wrote:
>
> >> hello,
>
> >> thank you so much for your pointer, salbefe. i can input the enc
; 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' :
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, 黄祥 wrote:
> hi,
>
> is there a way to input encrypted user password for the first time
> execution? i mean like
> e.g.
> db.auth_user.bulk_
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 testin
Now is working,
Thanks !!
On 1 mar, 20:24, Massimo Di Pierro wrote:
> Please check again.
>
> On Mar 1, 12:25 pm, salbefe wrote:
>
>
>
> > I have downloaded last updates form
> > Hello,
>
> > I have downloaded last updates from the mercurial reposito
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
import gluon.widge
...\PostgrSQL\9.0\bin and ...
\PostgrSQL\9.0\lib are not added to the path is were I have the
problem with the "ImportError: DLL load failed2" when I try to import
psycopg2.
On 25 feb, 08:36, salbefe wrote:
> Thank you Oleg,
>
> But it does not work for me. I get always the same error. I
Thank you Oleg,
But it does not work for me. I get always the same error. I have tried
moving the wsgi directory to several places outside the htdocs and
does not work. I get always "global name psycopg2 is not defined".I'm
using the last binary driver from http://www.stickpeople.com. There is
a c
Hello,
I have a "strange" problem with web2py when running as service alone.
When someone wants to see the website from internet, javascrit files
and css files are not "served" correctly. It seems as if web2py
embedded server "cuts" this type of files. When running from the
command line I do not h
yes, with these binary version wsgi does not work. I read a post where
someone post a solution:
ImportError: DLL load failed - How to compile psycopg2 to make it
cooperate with mod_wsgi.
1. install mingw
2. download psycopg2
3. setup.py build -c mingw32
4. replace "-lmsvcr90" with "-lmsvcrt" in
n
File "build\bdist.win32\egg\psycopg2\_psycopg2.py", line 7, in
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 wrote:
> Hello,
>
>
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 mod_wsgi-w
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 been
e broker. There are some python
> scripts that run in background and process some stuff and send
> notifications to browser through orbited built-in stomp server. I
> think I used this tutorial to get
> started:http://cometdaily.com/2008/10/10/scalable-real-time-web-architecture-...
&
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 shou
Hello,
I would like to know how can I obtain the number of the current users
that are logged on.
Thanks in advance!
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 wrote:
> Il giorno 10/set/2010, alle ore 12.07, salbe
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
:((
On 10 sep, 10:49, Roberto De Ioris 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:
>
>
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 --m
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
On 9 sep, 15:30, Jose wrote:
> On 9 sep, 07:42, salbefe 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 with
> > Cherokee via uWSGI: a simple, easy
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 cher
, None, None)
File "C:\eclipse\plugins
\org.python.pydev.debug_1.5.7.2010050621\pysrc\pydevd.py", line 780,
in run
execfile(file, globals, locals) #execute the script
File "C:\Documents and Settings\salbefe\workspace\web2py\web2py.py",
line 17, in
import gluon.
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, sessi
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 wrote:
> Thank you. will look into it.
>
> Massimo
>
> On May 11, 6:31
ot;>Hello</
> div>
> <div class="two" id="b">World</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 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
[]
.
Hello,
I need to generate inside a div tag the style attribute dinamically,
something like:
2
for some situations the following code works well:
[...]
elif day == current_day:
stilo = 'style=\"font-weight:bold;\"'
pass
[...]
{{=XML(day)}}
The problem comes when I try to do
> the html is already built, in strings.
>
> > > Specifying the default is the way to go here (annoying... I know).
>
> > > I usually perform the following
>
> > > if record_id:
> > > record = db.user[record_id]
> > > db.user.id.default
he is trying to do:
>
> depending on the logicl you may not need this if statement at all.
>
> Massimo
>
> On Apr 16, 6:55 am, salbefe wrote:
>
> > Hello,
>
> > I have a SQLFORM.factory form that I need to prepopulate with some
> > data from a database.
>
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 prepolut
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+unsubscr...@goog
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 "password_tw
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, visi
Hello,
With the following code:
{{=month_str}}
I get the following javascript error message:
document.getElementById(s[i]) is null
I do not why I'm getting that error. I think this code is very similar
to the same on page 274 of the web2py book.
--
You received this message becau
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.
F
... 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+unsubsc
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
Hello Massimo,
I'm using a custom layout and I don't get any other flash messages.
On 22 mar, 15:08, mdipierro wrote:
> Do you get other flash messages? do you have a custom layout?
>
> On Mar 22, 5:47 am, salbefe wrote:
>
>
>
> > Hello,
>
> > I
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
It's working fine now.
Thanks.
On 8 mar, 05:03, mdipierro wrote:
> Please check it. It is in.
>
> On Mar 6, 12:17 pm, Jose wrote:
>
>
>
> > On 6 mar, 15:36, salbefe wrote:
>
> > > I'm using the latest version from mercurial repository.
>
&
Thank you.
Regards
Salva
On 6 mar, 19:17, Jose wrote:
> On 6 mar, 15:36, salbefe 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 Gro
I'm using the latest version from mercurial repository.
On 6 mar, 13:53, Jose wrote:
> On 6 mar, 09:14, salbefe wrote:
>
> > The output from sql.log is as follows:
> >
> > ALTER TABLE node_details DROP COLUMN teaser;
>
> > The problems is that for dro
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'),
Fi
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 didn
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
aut
e all the variables needed by both views.
>
> On Feb 14, 5:54 am, salbefe wrote:
>
> > Another question
>
> > I would like a put a calendar on my website.
>
> >
> >
> > {{include 'default/calendar.html'}}
> >
> &
nk is that I need a contoller
to get the current month, the days that month have and then pass all
that information to the view, in this case calendar.html. That view
will be rendered within the main layout.
I don't know how can I do that.
Thanks in advance
On 14 feb, 11:08, salbefe wrote:
Hello,
I need to built a left sidebar from a database. In the main layout
file I have the following code:
{{include 'default/leftsidebar.html'}}
The problem is how I can built the leftsideb
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 requ
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 g
>
> On Jun 2, 6:04 pm, salbefe 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
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').
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 fro
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 li
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 hap
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
use
> underscores etc. tricks to achieve that).
>
> On Jun 2, 6:03 pm, JohnMc 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
> > abstr
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:
load->database();
}
function findUser($login)
Sorry I found it
On 1 jun, 17:44, salbefe 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
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 wrote:
> web2y 1.63.1 posted
--~--~-~--~~~---~--~~
You received this message because you are subscrib
Massimo, It happens on the mac version too.
Regards
On 25 mayo, 04:54, mdipierro wrote:
> Yes, this is a known problem with the windows version. I will fix it
> asap.
>
> Massimo
>
> On May 24, 9:40 pm, Yannick wrote:
>
>
>
> > Sorry maybe I don't understand but did you downloaded it from
> >
Hello,
I have the following question . It's possible to customize the forms
that comes by default
when web2py exposes then following urls?
I mean, if in the controller I have the following function
def user():
"""
exposes:
http:///[app]/default/user/login
http:///[app]/d
67 matches
Mail list logo