Hello,
I'd like to have something like that:
class MyClass():
def __init__(self, id)
self.id = id
c = MyClass('some_id')
session[c.id] = c
I do not see a solution for this.
Can somebody help me?
Thanks.
i.
ot store your own classes in the session because the session
> is retrieved before your own classes are defined. You can only store
> in session primitive types. You can serialize your objects yourself.
>
> On May 8, 7:30 pm, ionel wrote:
>
> > Hello,
>
> > I'd like
Mea culpa!
Yes, they are equivalent. My key was empty... sorry. I think I'm
tired...
Thank you very much.
ionel
On May 8, 11:27 pm, mdipierro wrote:
> They should be equivalent. Can you show the traceback?
>
> On May 8, 9:54 pm, ionel wrote:
>
> > But I allready did
27;button1'
If you don't have any session file in the session folder
session['button1'] it is not working, but session.button1 it does.
You need to delete all the session files to replicate the bug.
Thanks.
ionel
On May 9, 12:05 am, ionel wrote:
> Mea culpa!
>
>
nd.
>
> This is typically python behavior.
>
> --
> Thadeus
>
> On Sat, May 8, 2010 at 11:44 PM, ionel wrote:
> > I think I found a bug.
>
> > Traceback (most recent call last):
> > File "G:\dev\proj\python\web2py\gluon\restricted.py", line 178, in
some_id = 'my_id'
session[some_id] = 'some content'
But I think, I need to learn the python way :)
i
On May 9, 8:47 am, ionel wrote:
> Thank you.
> I didn't know :) I'm still a python noob, I think.
>
> On May 9, 2:03 am, Thadeus Burgess wrote:
&
# Set a session value:
request.session["fav_color"] = "blue"
--
ionel
On May 9, 12:49 pm, Thadeus Burgess wrote:
> session['views'] = views is valid. This is because you are
Yes, you are right! I was creating the session variable in the View,
not in the Controller.
Oh, poor me! This is my ASP background. There I can create a session
variable anywhere.
Thanks.
ionel
On May 13, 12:02 am, Thadeus Burgess wrote:
> session['fav_color'] = "blu
I had worked for an ORM for Web2py.
I'm not a python programmer but I like Web2py very much and I try to
do my best.
Anyway, because I don't have much experience with python I decided to
show my work, maybe somebody can help and make something usable.
http://code.google.com/p/web2pyorm/
The modul
Ou peut-etre quatre?
:)
On Jun 10, 5:33 pm, Magnitus wrote:
> Oui.
>
> Il y en a au moins 3 on dirait.
>
> On Jun 10, 3:47 pm, Jean Guy wrote:
>
> > [?]
>
> > Je demandais s'il y avait des québécois qui développe avec Web2py et qui son
> > inscrit sur cette liste?
>
> > Jean Guy
>
> > 330.gif
Hello,
I try to add two ajax forms into a page with something like this:
{{=LOAD(url=URL(r=request,f='add_person.load'), ajax=True)}}
{{=LOAD(url=URL(r=request,f='add_image.load'), ajax=True)}}
If the form has errors, the error messages are displayed after a
second submit. So, I need to click tw
Addition: only the first form has the problem.
On Jul 20, 10:10 pm, ionel wrote:
> Hello,
>
> I try to add two ajax forms into a page with something like this:
>
> {{=LOAD(url=URL(r=request,f='add_person.load'), ajax=True)}}
> {{=LOAD(url=URL(r=request,f='add_
Hello,
Is pyforum a discontinued project?
I need a copy of pyforum but the http://www.pyforum.org is always
down.
Thanks
i.a.
Thank you.
On Jul 22, 12:10 pm, Bruno Rocha wrote:
> a copy is attached, I Don't know if it is discontinued, but I am
> working to port Pyforum to run on GAE.
>
> 2010/7/22 ionel :
>
> > Hello,
>
> > Is pyforum a discontinued project?
>
&g
Hello,
Web2py generates an error for:
db.person.importance.requires=[IS_INT_IN_RANGE(1,999),
IS_NOT_IN_DB(db, 'person.importance')]
but not if I change the order of the two validators:
db.person.importance.requires=[IS_NOT_IN_DB(db, 'person.importance'),
IS_INT_IN_RANGE(1,999)]
Traceback:
F
It's all right now.
Thank you.
i
On Aug 11, 1:09 pm, mdipierro wrote:
> uploading fix to trunk.Please check it.
>
> On Aug 11, 10:56 am, ionel wrote:
>
> > Hello,
>
> > Web2py generates an error for:
>
> > db.person.importance.requires=[IS
Hello,
I have a problem when I try to connect to an Oracle database with this
connection string:
db = DAL("oracle://username:password@//network_server:1521/
database_name")
Traceback (most recent call last):
File "C:\MyApps\web2py\gluon\restricted.py", line 186, in restricted
exec ccode i
Hello,
I have the following error:
Error traceback
Traceback (most recent call last):
File "C:\project\web2py\gluon\restricted.py", line 174, in
restricted
ccode = compile(code.replace('\r\n', '\n'), layer, 'exec')
File "C:/project/web2py/applications/phoenix/models/menu.py", line 0
Syn
Hello,
I have the following situation:
Model:
db.define_table('country', db.Field('country', 'string', length=50))
db.define_table(region',
db.Field('name', 'string', length=50),
db.Field('country', 'reference country')
)
db.region.country.requires=IS_IN_DB(db, 'country.id', '%(c
Hello everyone,
I have a table with multiples fields (20). The user can select the
fields for searching the table. He can select one field or all the
fields in any combination. I need to create a query with his
selection. Is this thing possible in web2py but without using
executesql() ?
Thanks.
Just to be more clear. The user can select multiples fields, from one
to all.
On Jul 18, 8:55 pm, ionel wrote:
> Hello everyone,
>
> I have a table with multiples fields (20). The user can select the
> fields for searching the table. He can select one field or all the
>
Thanks. It make sense.
On Jul 18, 3:16 pm, Yarko Tymciurak wrote:
> On Sat, Jul 18, 2009 at 1:00 PM, ionel wrote:
>
> > Hello,
> > I have the following situation:
>
> > Model:
>
> > db.define_table('country', db.Field('country
.field5=='same_value3')
I do not know what the user will select in advance. I need to generate
the query after his selection, in any field combination.
On Jul 18, 9:14 pm, mdipierro wrote:
> yes
>
> db(db.table.field0=='somevalue').select
> (db.table.field1,db.tab
{{=BEAUTIFY(form.vars)}} and compare that with {{=BEAUTIFY(request.vars)}}
>
> On Sat, Jul 18, 2009 at 8:29 PM, ionel wrote:
>
> > I think I wasn't clear. The user can make any selection to search the
> > database.
>
> > Search Form example:
>
> >
Another one:
http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/
demo page: http://loopj.com/tokeninput/demo.html
On Jul 22, 7:08 pm, DenesL wrote:
> On Jul 22, 4:39 pm, Fran wrote:
>
> > On Jul 22, 9:59 pm, DenesL wrote:
>
> > > I just found this, it could be an o
You can also try Netbeans for Python
http://download.netbeans.org/netbeans/6.7/python/ea2/
On 5 août, 10:05, Pynthon wrote:
> Ah, thanks both. Maybe I also need to give it a try :p.
>
> On 5 aug, 15:33, Fran wrote:
>
> > On Aug 5, 2:08 pm, Pynthon wrote:
>
> > > I read that some of you guys u
Massimo,
When will we have this feature added into menu helper? I really need
this...
Thanks.
On Jun 17, 12:13 pm, mdipierro wrote:
> Sorry, this needs to be added to the menu helper. Not there yet
>
> Massimo
>
> On Jun 17, 10:29 am, blackthorne wrote:
>
> > since the MENU() helper has been
If in form, username and password fields are empty:
Traceback (most recent call last):
File "C:\site\web2py\gluon\restricted.py", line 178, in restricted
exec ccode in environment
File "C:/site/web2py/applications/phoenix/controllers/default.py",
line 88, in
File "C:\site\web2py\gluon\
Hello Boris,
I tried to install the wwwsqldesigner but with no success.
I'm unable to list the database objects: Save/Load -> List items.
Firebug says:
GET
http://localhost:8000/test/static/designer/default/*backend/*web2py*/?action=list
400 BAD REQUEST
Response: Invalid request
I use Python
Thank you and keep up the good work.
ionel
On Sep 16, 10:02 am, Boris Manojlovic
wrote:
> Hi ionel,
>
> the reason is formating of my email sent to list i apologize for that
> (google bold chars...)
> that "*" should not be entered, anyway here is correct config file
Somebody interested ? http://golang.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
Hello Massimo,
I found an open source SQLite extension that provides 256 AES
encryption of database files.
site: http://zetetic.net/software/sqlcipher
github: http://github.com/sjlombardo/sqlcipher
license:
http://zetetic.net/page_attachments//0309/sqlcipher-license2009.txt
Is there a wa
Hello,
I have multiple forms (multiple submit buttons) and I need to submit
all forms when I click any submit button.
Is it possible?
Thank you.
i.a.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@
rower wrote:
> Couldn't you put all of them under one form?
>
> On Mon, 2010-01-18 at 19:59 -0800, ionel wrote:
> > Hello,
>
> > I have multiple forms (multiple submit buttons) and I need to submit
> > all forms when I click any submit button.
> > Is it
or a web2py problem. Can you help me,
please?
Thank you very much.
ionel
$(document).ready(function(){
$("form").each(function(){
var submitButton = $(this).find("input[type='submit']");
$(submitButton).bind("click", function(e){
e.preventDefa
Hello,
I configured web2py with wsgi and ssl.
For https://mywebsite/admin I have the following error:
"admin disabled because unable to access password file"
Any idea?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
earch for "admin"
>
> That may help.
>
> Regards,
> Yarko
>
> On Mon, Nov 10, 2008 at 9:44 PM, ionel <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I configured web2py with wsgi and ssl.
> > Forhttps://mywebsite/adminI have the fo
Hello everybody,
I am writing an application for a personal library. But now I need to
build a multiple field index because I don't want duplicate records
in my database. Can I do this with web2py?
Thanks
--~--~-~--~~~---~--~~
You received this message because
IS_NOT_IN_DB validate a single field, not multiple fields together. I
think is not possible to make a composite index in web2py.
Thanks anyway
ionel
On Jan 7, 11:22 pm, "Wes James" wrote:
> Look at IS_NOT_IN_DB
>
> -wj
>
> On Wed, Jan 7, 2009 at 9:01 PM, ionel wro
d/7551b50ef3...
>
> Massimo
>
> On Jan 8, 8:29 pm, ionel wrote:
>
> > IS_NOT_IN_DB validate a single field, not multiple fields together. I
> > think is not possible to make a composite index in web2py.
>
> > Thanks anyway
>
> > ionel
>
> > On
Hello,
Do anybody knows how to implement LEFT OUTER JOIN with 3 tables in
web2py?
I saw the example with 2 tables in massimo's book, but I can't figure
out how to implement it with 3 tables.
Thank you
ionel
--~--~-~--~~~---~--~~
You received th
ld
> ('bid',db.a))
> rows=db().select(db.t.name,db.a.name,db.a.with_alias('b').name,left=
> [db.a.on(db.a.id==db.t.aid),db.a.with_alias('b').on
> (db.a.id==db.t.bid)])
>
> On Jan 11, 1:24 pm, ionel wrote:
>
> > Hello,
I figured it out.
Thank you.
ionel
On Jan 11, 3:30 pm, ionel wrote:
> Thank you massimo for your prompt response.
>
> I didn't very well explained my problem.
>
> I have 3 tables: category, subcategory, subsubcategory
>
> subcategory references category
&
I forgot to write the solution:
rows=db().select(
db.category.ALL,
db.subcategory.ALL,
db.subsubcategory.ALL,
left=[db.subcategory.on(db.subcategory.id==db.category.id),
db.subsubcategory.on(db.subsubcategory.id==db.subcategory.id)]
)
ionel
On Jan 11, 3:37
==db.subcategory.id)]
)
On Jan 11, 3:41 pm, ionel wrote:
> I forgot to write the solution:
>
> rows=db().select(
> db.category.ALL,
> db.subcategory.ALL,
> db.subsubcategory.ALL,
> left=[db.subcategory.on(db.subcategory.id==db.category.id),
&
I have the following example:
the_category_id = 1
form=SQLFORM(db.book,
fields=['author','title'],
hidden=dict(category_id=the_category_id),
submit_button='Add')
After submit, the field "category_id" has no content.
I verified the source code of my page. The value is
Thank you Massimo.
I already applied your solution.
I verified the request.vars.category_id content. It's "None".
ionel
On 31 Ian, 22:18, mdipierro wrote:
> I am sure category_id is in request.vars.category_id
>
> accepts will not move it in form.vars.id it is not ob
web2py Version 1.55.2 (2009-01-08 08:38:01)
Apache/2.2.9 mod_python/3.3.1 Python/2.5.2 mod_wsgi/2.3
On Jan 31, 10:54 pm, mdipierro wrote:
> which version of web2py are you using?
>
> On Jan 31, 9:38 pm, ionel wrote:
>
> > Thank you Massimo.
>
> > I already a
string",length=10,notnull=True,default=""),
migrate=True)
db.book.title.requires=IS_UPPER()
db.book.author.requires=[IS_UPPER(),
IS_NOT_IN_DB(db((db.book.title==request.vars.title)&
(db.book.volume==request.vars.volume)),'book.author')]
The condition "IS_N
,'book.author')]
INPUT: RESULT IN DATABASE:
Author, Title Author, Title
python python PYTHON PYTHON
PythoN PythoN PYTHON PYTHON
The result is 2 identical records in database despite of IS_NOT_IN_DB!
Thanks.
ionel
On Feb 1, 4:12 am, Fran wrote:
>
rmname,keepvalues,onvalidation)
TypeError: accepts() takes at most 5 arguments (6 given)
ionel
On Feb 1, 12:17 pm, mdipierro wrote:
> can you get the gluon/sqlhtml.py and gluon/sql.py from trunk and see
> if the problem goes away?
>
> Massimo
>
> On Jan 31, 10:12 pm, ionel wrote
;,'year','pages','number','keywords','language','isbn','comment'],
labels={'author' : T('Author:'), 'title' : T('Title:')},
hidden=dict(docs_categ_id=categ_id),
You are right. Sorry for misunderstanding.
Populating the field in the new record it was my intention.
Thank you for your explanation.
ionel
On Feb 3, 12:59 pm, mdipierro wrote:
> I think this is a misunderstading.
>
> after
>
> form=
>
> before
>
>
Hello Massimo,
Any solution for this problem?
Thanks
ionel
On Feb 1, 9:26 am, mdipierro wrote:
> Let me try this
>
> On Feb 1, 9:41 am, ionel wrote:
>
> > I already did that:
>
> > 1) db.book.title.requires=IS_UPPER()
> > db.book.author.requires=IS_UP
Thank you very much
I didn't know that I can use : request.vars.get('title','').upper()
ionel
On Feb 9, 9:03 pm, mdipierro wrote:
> Hi ionel,
>
> it is not a bug. The validatior should be
>
> db.book.author.requires=[IS_UPPER(), IS_NOT_IN_DB(db
&g
Hello everyone,
There is a way to pre-populate a simple form?
Ex:
form=FORM('enter your name:', INPUT(_'name'), INPUT
(_type='submit'))
I tried
form.vars.name="John Doe"
No succes
Thank you for your help.
--~--~-~--~~~---~--~~
You received this messa
Thank you!
On Feb 13, 12:09 am, mdipierro wrote:
> form=FORM('enter your name:', INPUT(_'name',_value='John Doe'),
> INPUT
> (_type='submit'))
>
> On Feb 12, 9:40 pm, ionel wrote:
>
> > Hello everyone,
>
> > Th
Hello everyone,
I have this error:
Traceback (most recent call last):
File "gluon/restricted.py", line 62, in restricted
exec ccode in environment
File "/home/web2py/site/web2py/applications/docs/models/db.py", line
1, in
db=SQLDB('postgres://user:p...@localhost:5432/db1')
File "g
nections automatically when a thread ends unless you
> have pools.
>
> Massimo
>
> On Feb 15, 2:19 am, Fran wrote:
>
> > On Feb 15, 5:22 am, ionel wrote:
>
> > > OperationalError: FATAL: connection limit exceeded for non-superusers
> > > Do I need to clo
ld be the max number of concurrent
> requests you expect. That is the max value of
>
> /
>
> On Feb 15, 6:22 pm, Baron wrote:
>
> > hi ionel,
> > I was the one who switched from mysql to postgres to avoid that error
> > and haven't had any problems since.
Hello,
With custom form I can do this "form.table.field_name.length" and I
get the field length defined in model file, ex. Field('field_name',
'text', length=200)
But for length > 255, ex. Field('field_name', 'text', length=600), I
get always 255 in form.table.field_name.length
I use MySQL and I
rm = SQLFORM.factory(copyField(db.a_table.field_name))
i.a.
On Jan 30, 7:45 pm, ionel wrote:
> Hello,
>
> With custom form I can do this "form.table.field_name.length" and I
> get the field length defined in model file, ex. Field('field_name',
> 'text', lengt
http://www.meteor.com/
http://meteor.com/screencast
Hello Massimo,
This is the language file for appadmin in Romanian.
Thank you,
i.a.
# coding: utf8
{
'!=': '!=',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" (actualizeaz?) este o expresie op?ional? precum "c?mp1=\'
Hello Massimo,
This is the language file for welcome app in Romanian.
Thank you,
i.a.
# coding: utf8
{
'!=': '!=',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" (actualizeaz?) este o expresie op?ional? precum "c?mp1
Hello Massimo,
I sent you a pull request to correct the problem with the page encoding of
the files when uploaded to web2py group. The special characters were
replaced by "?".
Thank you,
ionel anton
On Saturday, 2 June 2012 15:36:37 UTC-4, Massimo Di Pierro wrote:
>
> Both
Thank you!
--
http://www.brython.info/index_en.html
--
Thank you very much!
On Tuesday, 12 June 2012 13:17:46 UTC, Massimo Di Pierro wrote:
>
> The official web2py book is now free for everybody:
>
> https://dl.dropbox.com/u/18065445/web2py/web2py_manual_4th.1.pdf
>
> Massimo
>
--
Hello,
In the controller I have a custom form that contains a password:
form = SQLFORM.factory(Field('afield', 'password'))
form.vars.afield = 'some initial password'
In view:
{{=form.custom.begin}}
{{=form.custom.widget.afield}}
{{=form.custom.submit}}
{{=form.custom.end}}
The problem is that
Done.
On 6 fév, 23:10, Massimo Di Pierro wrote:
> can you please open an issue in googlecode?
>
> On Feb 6, 7:06 pm, ionel wrote:
>
> > Hello,
>
> > In the controller I have a custom form that contains a password:
>
> > form = SQLFORM.factory(Field('a
Hello,
I need to fetch an IP but
from gluon.tools import fetch
html = fetch("http://74.125.226.80";)
doesn't work.
Thanks
i.a.
You are right. It works. It was my server. It is mis configured:
http://184.82.233.163
Thanks.
On Apr 3, 10:05 pm, Massimo Di Pierro
wrote:
> It works for me. Are you running on GAE?
>
> On Apr 3, 8:35 pm, ionel wrote:
>
> > Hello,
>
> > I need to fetch an IP but
&g
However,
The result of http://184.82.233.163/phpbb/index.html
is not the same with the result of fetch("http://184.82.233.163/phpbb/
index.html")
I don't know why.
On Apr 3, 10:17 pm, ionel wrote:
> You are right. It works. It was my server. It is mis
> configured:
http://pytools.codeplex.com/
Supports CPython and IronPython
On Aug 31, 10:04 am, ionel wrote:
> http://pytools.codeplex.com/
It doesn't work for me :(
On Feb 27, 6:15 am, DenesL wrote:
> It works for me.
>
> On Feb 27, 4:17 am, nakul mishra wrote:
>
> > Yes u are right.
> > I also checked but its not responding
>
> > On Sat, Feb 27, 2010 at 9:30 AM, Neno wrote:
> > >http://www.web2py.com/doesn'tseem to be responding.
77 matches
Mail list logo