[web2py:22932] Re: Auto_complete widget.

2009-05-30 Thread annet . vermeer
Iceberg, Good guess. value=str(value) solved the problem. Thanks for your help. Annet. --~--~-~--~~~---~--~~ 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:22933] Re: new DAL

2009-05-30 Thread annet . vermeer
Massimo, Will it be possible to have a foreign key on a non id field, in case of a look-up table? In my model I have: db.define_table('rechtsvorm', SQLField('rechtsvorm',label='Rechtsvorm * ',length=42,default='',notnull=True,unique=True), migrate=False) db.define_table('bedrijf',

[web2py:22934] Re: new DAL

2009-05-30 Thread Kacper Krupa
you should allow to use normal m2o relations. i mean with another table in db. i know it doesn't work on GAE but users should have choice. On 30 Maj, 08:21, annet.verm...@gmail.com wrote: Massimo, Will it be possible to have a foreign key on a non id field, in case of a look-up table? In

[web2py:22935] Re: jQuery noCoflict

2009-05-30 Thread Robert Marklund
Sounds good! /R 2009/5/29 mdipierro mdipie...@cs.depaul.edu yes and no. this would break backward compatibility. we can rewrite the provided jquery so that they use jQuery instead of $ and leave the it to the user to call jQuery.noConflict() if needed. I would probably take a patch for

[web2py:22936] @service.amfrpc decorator

2009-05-30 Thread roblund
I am trying to find an example of the flex that would be used to call an @service.amfrpc remote function. I posted full text with code snippets over at Stack Overflow, http://stackoverflow.com/questions/927028/using-mxremoteobject-with-web2pys-service-amfrpc-decorator. Has anybody used these

[web2py:22937] Re: Packaging discusion

2009-05-30 Thread JohnMc
I remember the discussion on packaging Web2Py for Linux distribution and subsequently run across this talk from the pycon2009. Might be useful? http://us.pycon.org/2009/conference/schedule/event/52/ --~--~-~--~~~---~--~~ You received this message because you are

[web2py:22938] Re: new DAL

2009-05-30 Thread annet . vermeer
Massimo, Will it be possible to have a foreign key on a non id field, in case of a look-up table? .. and an onupdate='CASCADE' in the field definition. Annet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:22939] Re: unable to read uploaded file

2009-05-30 Thread mdipierro
I tried this and it works fine for me print request.vars.import_csv # FieldStoarge print request.vars.import_csv.file.read() # shows file content print request.vars.import_csv.filename # shows filename Which version of Python are your using? Which OS? Can you try a few

[web2py:22940] Re: jQuery noCoflict

2009-05-30 Thread mdipierro
Done in trunk. May post 1.64 in the next few days. On May 30, 5:15 am, Robert Marklund robbelibob...@gmail.com wrote: Sounds good! /R 2009/5/29 mdipierro mdipie...@cs.depaul.edu yes and no. this would break backward compatibility. we can rewrite the provided jquery so that they use

[web2py:22941] Re: multiple=True usage

2009-05-30 Thread mdipierro
No but the new DAL may have ListType Field. Massimo On May 29, 4:15 pm, Fran francisb...@googlemail.com wrote: I'm trying out using simple multiple=True tagging-style for ManyMany relationships (simpler than developing custom Forms works on GAE). Currently my way to get the data out of

[web2py:22942] Re: Can I create an 'assotiated' input field?

2009-05-30 Thread Dan
Instead float numbers would not have enough precision to represent datetime. Is this statement correct? Python docs describe python doubles as having 53 bits of precision, or about 16 base-10 digits. If I'm thinking about this right, that leaves enough digits to have a resolution of 0.1

[web2py:22943] Re: Auto_complete widget.

2009-05-30 Thread annet . vermeer
Iceberg, I had a look at the content of the sqlhtml.py file. Given the following table: db.define_table('provincie', db.Field('provincie',label='Provincie * ',length=18,default='',notnull=True,unique=True), migrate=False)

[web2py:22944] IS_MATCH()

2009-05-30 Thread annet
Just to make sure I do not overlook anything ... I have a table definition: db.define_table('postcoderegio', db.Field('regio',label='Regio * ',length=2,default='',notnull=True,unique=True), ... migrate=False) db.postcoderegio.regio.requires=[IS_MATCH('[0-9]{2}',error_message=T

[web2py:22945] Re: Can I create an 'assotiated' input field?

2009-05-30 Thread Dan
Furthermore, I just ran a test using a web2py app, converting a double to a datetime and storing it in a SQLite database. Reading back the information, this is what it has in the database: time.struct_time(tm_year=2009, tm_mon=5, tm_mday=19, tm_hour=14, tm_min=0, tm_sec=8, tm_wday=1,

[web2py:22946] Re: Auto_complete widget.

2009-05-30 Thread Iceberg
On May30, 11:33pm, annet.verm...@gmail.com wrote: Iceberg, I had a look at the content of the sqlhtml.py file. Given the following table: db.define_table('provincie',     db.Field('provincie',label='Provincie * ',length=18,default='',notnull=True,unique=True),     migrate=False)

[web2py:22947] Complex field validation.

2009-05-30 Thread annet
In my model I have the following table: db.define_table('adres', db.Field('bedrijf',db.bedrijf,label='Bedrijf * ',default='',notnull=True), db.Field('adressoort',label='Adressoort * ',length=30,default='',notnull=True), db.Field(...), migrate=False)

[web2py:22948] Re: Auto_complete widget.

2009-05-30 Thread annet . vermeer
Iceberg, I took the province table as an example to get an idea of instantiating the OptionsWidget. I need several drop boxes based on a widget because complex field validation cancels the drop down generation. Furthermore, I need a MultipleOptionsWidget combined with an IN operator (something

[web2py:22949] Re: mediawiki markup in web2py wiki?

2009-05-30 Thread Tim Michelsen
You may want to take a look at: Pandoc converter: http://johnmacfarlane.net/pandoc/ --~--~-~--~~~---~--~~ 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:22950] Re: pre-populated forms

2009-05-30 Thread Tim Michelsen
Have you made any progress in the last few days? Sorry, no progress on this so far. My development has stalled a bit as I am now in a decision making process involving many parties... But let's not forget about this! --~--~-~--~~~---~--~~ You received this

[web2py:22951] Re: web2py2po/po2web2py

2009-05-30 Thread Fran
On May 30, 4:29 am, suiato homm...@gmail.com wrote: I'm translating an appliance eStore as an example in learning how to localize web2py appliances, and found web2py2po/po2web2py programs useful because I usually work on po format in traslation. Has anyone here worked on these? I know the

[web2py:22952] Re: IS_MATCH()

2009-05-30 Thread DenesL
On May 30, 11:13 am, annet annet.verm...@gmail.com wrote: Just to make sure I do not overlook anything ... I have a table definition: db.define_table('postcoderegio',     db.Field('regio',label='Regio * ',length=2,default='',notnull=True,unique=True),     ...     migrate=False)

[web2py:22953] Re: mediawiki markup in web2py wiki?

2009-05-30 Thread Joe Barnhart
Massimo -- I really don't want to deliver an I told you so but somebody needs to say this. It's been several months ago when we got some shared community excitement behind documenting web2py. It is widely recognized that the ONLY thing holding web2py back from users is the disheveled and

[web2py:22954] Re: IS_MATCH()

2009-05-30 Thread annet . vermeer
Hi Denes, I have another validator about which I am not sure ... db.adres.plaats.requires=[IS_IN_DB(db,db.plaats.plaats,'%(plaats)s')] db.adres.plaats.widget=lambda self,value:INPUT (_type='text',_id='place',_class='ac_input',_name='plaats',value=str (value),requires=self.requires) The

[web2py:22955] Re: mediawiki markup in web2py wiki?

2009-05-30 Thread mdipierro
Hi Joe, I appreciate the criticism. I agree the wiki has lagged behind. Is this really because of the technology behind it? I think the problem is that people (including myself) have not really been posting on the wiki, except for a few weeks after it was created. This is probably my fault. I