[web2py] drupal themes

2010-03-21 Thread mdipierro
I am writing a new script to convert drupal themes. It would help if somebody could download a few 100 zipped drupal 6 themes from http://drupal.org/project/themes or, even better, a script that can get a list of themes (from their rss feed, if it exists) with name, preview and zip file to download

[web2py] Re: PyPy 1.2 released!

2010-03-21 Thread mdipierro
LOL. In the end your email contained all the info needed. I agree with you that not closing files when they go out of scope is a major incompatibility. Massimo On Mar 21, 11:59 pm, Joe Barnhart wrote: > So you beat me to it, Massimo!  I needed to do a little background > study.  I downloaded

[web2py] Re: PyPy 1.2 released!

2010-03-21 Thread Joe Barnhart
So you beat me to it, Massimo! I needed to do a little background study. I downloaded and installed Mercurial for the Mac, then I cloned the repository at google. I went to make my change to sql.py and found you'd beat me to it! But next time, I'll be better prepared to send you a patch. I'm u

[web2py] gaema

2010-03-21 Thread mdipierro
Perhaps we could simplify some code and include this in auth. http://code.google.com/p/gaema/ -- 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 ema

[web2py] Survey: Functionality of the Drop Boxes widget

2010-03-21 Thread Thadeus Burgess
There is current on-going discussion of the default functionality of the drop boxes widget. This is an attempt to gather information from the community on this discussion. The results of this survey will determine what this default functionality will be. Here is the comparison of the two options c

Re: [web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread Thadeus Burgess
More about "why" there are so many questions. The first question gets us exactly what someone wants as a default option. This is a bi-polar measure, quickly getting a base response for what is wanted. The second one drills down qualitatively why they support this. The third reveals known cons of

[web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread mdipierro
Sorry. Thadeus. You are right. Do as you feel appropriate since this your survey. I trust people will not be biased since 1) I have been wrong before 2) this is an anonymous survey. Massimo P.S. time to tune on http://www.cnn.com/video/flashLive/live.html?stream=stream/2&hpt=T1 On Mar 21, 9:12 

Re: [web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread Thadeus Burgess
Ok, to add (or remove) questions I "should" invalidate all the current results (4) and those "should" retake the survey. Also pre-exposure to this thread can skew the results as there are those who will always "follow" what others say on this thread just because of the merit this person has in the

[web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread mdipierro
I agree with Mr. Freeze but changing it now may constitute a breaking a backward compatibility. After reading the survey it has a lot of questions and it may confusing to a lot of users. Bottom line: zero='' is what we have now (vote for this if you do not want changes in your apps) zero=None is t

[web2py] Re: how to troubleshoot admin errors?

2010-03-21 Thread KMax
Hello My web2py instalation (1.73 and newer) was affected by the same issue. Running on debian by wsgi apache2. Installed by unzipping web2py_src.zip in to fresh folder and coping parameters_443.py. Creation of new application give an error flash "unable to create application." Workaround

[web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread mr.freeze
Done. I personally prefer zero='' as a default. I think the selection should be made explicitly by the user unless an actual default value for the field is set. This doesn't break backwards compatibility IMO because web2py wasn't controlling it before, the browser was. On Mar 21, 8:26 pm, Thadeus

[web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread mdipierro
I will also support to the results of the survey but I would require more than 10 responses. Massimo On Mar 21, 8:26 pm, Thadeus Burgess wrote: > That is not a good point. That is a interface and usability question, > also it is a clientell question of who will be using the app. > > I am tired o

Re: [web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread Thadeus Burgess
That is not a good point. That is a interface and usability question, also it is a clientell question of who will be using the app. I am tired of arguing this matter. As far as I see it, we broke backwards compatibility, forcing me to update all of my apps. I respectfully ask the community to ple

[web2py] Re: Formatting multiple select field

2010-03-21 Thread mdipierro
This mechanism is one of the worst things in web2py. There should be a list type that maps into ListProperty on GAE and something like this on RDMS but hides what you suggest. Anyway |1|2|11| allows you to search for |1| or |2| or |11|. This 1|2|11 would create problems when searhing for 1, in pa

[web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread mdipierro
Not everybody agreed. Somebody (do not remember who) made a good point that having zero=None will case people to fill forms with with wrong values (always the first alphabetical value). On Mar 21, 7:21 pm, Thadeus Burgess wrote: > Massimo, I think in the post everyone agreed to make zero=None the

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread mdipierro
Is there anything in the debian packaging mechanism that is inconsistent with the current web2py folder structure? As I see it, this just a matter of choosing where to put the files (I say /home/www-data/web2py). In principle it is possible to separate applications. This cannot cohexist with autom

Re: [web2py] Re: Update record if different than proposed changes

2010-03-21 Thread Thadeus Burgess
I think that this functionality is more for a ORM than the DAL. There are certain features that the an ORM could actually work a layer above the DAL, such as table Auditing, django-like query syntax, many-to-many mapping/handling. Probably more. But I always vote to keep the DAL minimal, and just

Re: [web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread Thadeus Burgess
Massimo, I think in the post everyone agreed to make zero=None the default, and yet after at least 13 of us said to make this the default, nothing happened. The original design was (is) a good idea, but making that a default was a bad idea. Nobody had any input at the moment, but after playing arou

Re: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread Thadeus Burgess
How would you propose web2py to write sql.log, or its .table files used in migrations for that matter? -Thadeus On Sun, Mar 21, 2010 at 11:32 AM, Dima Barsky wrote: > kaging individual applications is not easy either, there is another > problem I forgot to mention. Currently web2py assu --

Re: [web2py] Re: widgets in db.py

2010-03-21 Thread Thadeus Burgess
It is negligible. Unless you are talking about thousands of objects, I wouldn't be too concerned. -Thadeus On Sun, Mar 21, 2010 at 11:14 AM, Avik Basu wrote: > Are all the models executed on each server request?  If so, is it > still appropriate to create helper functions (to be accessed by

[web2py] Re: Congratulations to all

2010-03-21 Thread Joschua
congratulations - good work. On 16 Mrz., 12:11, dbb wrote: > web2py is the first to implement a working open source of HL7 protocol > as defined by HITSP, our efforts are being recognized around the globe > based on the questions we are receiving. -- You received this message because you are su

[web2py] Re: Add fields to db.auth_user

2010-03-21 Thread Francisco Costa
thank you Mr. Freeze I really should read the book On Mar 21, 7:20 pm, "mr.freeze" wrote: > Look here under Customizing Auth > > http://web2py.com/book/default/section/8/1 > > On Mar 21, 2:14 pm, Francisco Costa wrote:> Hello! > > I would like to add a few more fields to db.auth_user > > Where c

Re: [web2py] Re: Helper functions to "get one" from database

2010-03-21 Thread Vasile Ermicioi
this what is doing replace in mysql http://groups.google.com/group/web2py/browse_thread/thread/4e1a673378cbac5/58560da01ed85fa7?lnk=gst&q=replace#58560da01ed85fa7 and because web2py returns the id on insert, there will be more intuitive to use that function there was a question about in web2py ma

[web2py] Formatting multiple select field

2010-03-21 Thread what_ho
As an example of a multiple select field definition: db.define_table('fruit',Field('name')) db.define_table('fruit_basket',Field('contents')) db.fruit_basket.contents.requires=IS_IN_DB(db,'fruit.id','% (name)s',multiple=True) db.fruit.insert('apple') db.fruit.insert('orange') db.fruit.insert('ban

[web2py] Re: Update record if different than proposed changes

2010-03-21 Thread Richard
would it be sensible for the web2py DAL to handle this automatically? On Mar 22, 2:55 am, "mr.freeze" wrote: > Something like this?: > >     existing = db(db.person.id==desired_id).select().first() >     incoming = [f for f in request.vars.keys() if f in > db.person.fields] >     changes = dict

[web2py] Re: Bulk inserts in Google App Engine

2010-03-21 Thread Richard
great! I was going to ask about this. On Feb 1, 1:44 am, mdipierro wrote: > needs testing but please check in trunk > > db.table.bulk_insert([dict(field='value'),dict(field1='value')]) > > Massimo > > On Jan 31, 3:11 am, Jon Romero wrote: > > > Yeap the speadup is HUGE (one query to insert 100

[web2py] Re: cron - "day of week" documentation

2010-03-21 Thread mdipierro
I think more than noted, they must be fixed since we want the sytnax to be equivalent to official cron notation. Thanks for pointing this out. Massimo On Mar 21, 5:36 pm, Rowdy wrote: > Greetings, > > I have been implementing some cron jobs for my app, and was surprised to > find they did not ex

[web2py] Re: Helper functions to "get one" from database

2010-03-21 Thread Richard
I have been using these related functions: def get_or_create(table, fields): """ Return ID of record from table with passed field values. Create record if does not exist. 'table' is a DAL table reference, such as 'db.person' 'fields' is a dict, such as {'paren

[web2py] cron - "day of week" documentation

2010-03-21 Thread Rowdy
Greetings, I have been implementing some cron jobs for my app, and was surprised to find they did not execute this morning. The web2py documentation on cron notes that the cron schedule is as defined on the following page: http://en.wikipedia.org/wiki/Cron#crontab_syntax with some extensions f

[web2py] Re: Bulk inserts in Google App Engine

2010-03-21 Thread Jon Romero
Ok, then how about, bulk update? If you retrieve the model, make a small change and then "put" it back, it should be updated. I think that would work if I was using the bulk insert you've made but it's not. It just adds new rows. Any ideas for bulk update? On Mar 21, 6:20 pm, Jon Romero wrote:

[web2py] jqGrid plugin + ajax search and pagination + ui themes

2010-03-21 Thread mdipierro
http://web2py.com/plugins/default/jqgrid -- 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 o

[web2py] Re: User Authorization + Download management

2010-03-21 Thread mdipierro
select()[i] select().first() is same as .select()[0] but returns None if no record what you ask below is called 'denormalization' You can do it but your fields would not be of reference type. On Mar 21, 2:37 pm, Matthew McNaughton wrote: > Ok, thank you for the clarification. Does add

[web2py] Re: mail plain text message wrong charset -- possible solution

2010-03-21 Thread szimszon
Some more patch for headers: gluon/tools.py from line 259: payload['To'] = header.Header(', '.join(to).decode(encoding).encode('utf-8'),'utf-8') ... payload['Reply-To'] = header.Header(reply_to.decode(encoding).encode('utf-8'),'utf-8') ... payload['Subject'] = header.Heade

Re: [web2py] Re: User Authorization + Download management

2010-03-21 Thread Matthew McNaughton
Ok, thank you for the clarification. Does adding the ".first" extention to the command get a specific row? How would I be able to get a single row if it wasn't necessarily the first. I know you can do it with a for loop, but how would do it otherwise? I assume that the issue with Release_Date woul

[web2py] Re: Add fields to db.auth_user

2010-03-21 Thread mr.freeze
Look here under Customizing Auth http://web2py.com/book/default/section/8/1 On Mar 21, 2:14 pm, Francisco Costa wrote: > Hello! > I would like to add a few more fields to db.auth_user > Where can I do that? -- You received this message because you are subscribed to the Google Groups "web2py-

[web2py] Add fields to db.auth_user

2010-03-21 Thread Francisco Costa
Hello! I would like to add a few more fields to db.auth_user Where can I do that? -- 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

[web2py] Re: User Authorization + Download management

2010-03-21 Thread mdipierro
Two problems: 1) userSoftware references the release date by id not by actual date 2) db().select() returns Rows object (like a list) not a single record Here is a fix: appVer = db(db.version.fileS == request.args(0)).select(db.version.id).first() if not (db(queryID).update(Filename=req

[web2py] Re: problem to use database

2010-03-21 Thread mr.freeze
You put a colon instead of a comma. On Mar 21, 1:13 pm, kike wrote: > I put that and now web2py don't reconice that > > Traceback (most recent call last): >   File "/home/kike/sbdv/web2py/gluon/restricted.py", line 171, in > restricted >   File "/home/kike/Desktop/web2py/applications/SBDV/models/

[web2py] Re: problem to use database

2010-03-21 Thread kike
I put that and now web2py don't reconice that Traceback (most recent call last): File "/home/kike/sbdv/web2py/gluon/restricted.py", line 171, in restricted File "/home/kike/Desktop/web2py/applications/SBDV/models/db.py", line 6 Field('name', length=128):migrate=False)

Re: [web2py] Re: User Authorization + Download management

2010-03-21 Thread Matthew McNaughton
Thanks for all the help so far! Now that I got the userID and filename in the table, I'm having problems populating the other fields. I have been trying to run queries, but i'm not sure I completely understand the syntax allowed in the controller yet. Eitherway, these are the last two issues I've b

[web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread mdipierro
There was a long discussion about this. Different people disagreed on how this should behave. You can revert to the previous behavior with IS_IN_SET(...,zero=None) IS_IN_DB(...,zero=None) Or customize the empty value zero="Please choose one" Massimo On Mar 21, 12:42 pm, annet wrote: > Today,

[web2py] Re: problem to use database

2010-03-21 Thread mr.freeze
You need to put migrate=False after Field(...): vul.define_table('object_vendors',Field('name', length=128), migrate=False) On Mar 21, 12:47 pm, kike wrote: > I use yours sugestion but don't work, I definet again my database in > web2py, I think that is to work with a big app, but is for my mea

[web2py] Re: problem to use database

2010-03-21 Thread kike
I use yours sugestion but don't work, I definet again my database in web2py, I think that is to work with a big app, but is for my meaby the best solution, and now sendme a new error what is the keywork arg Traceback (most recent call last): File "/home/kike/sbdv/web2py/gluon/restricted.py",

[web2py] Drop boxes in 1.76.5

2010-03-21 Thread annet
Today, I upgraded my web2py installation to version 1.76.5. In this web2py version the drop boxes display an empty key value pair first, and then the key value pairs from the tables I based them on. What causes this change in behaviour? How do I correct it? Kind regards, Annet. -- You received

[web2py] Re: Mailing list.

2010-03-21 Thread annet
Yarko, > Hope this helps a little. Yes, actually it helped me a lot. Kind regards, Annet. -- 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 emai

[web2py] Re: AutocompleteWidget on multiple forms on the same page

2010-03-21 Thread mdipierro
hmmm. Need to think about this. The plugin was not designed with this scenario in mind. On Mar 21, 11:47 am, Tito Garrido wrote: > THIS IS THE MODEL: > *db.define_table('evento', >     SQLField('dono','reference auth_user',writable=False,readable=False), >     SQLField('paciente', 'reference paci

Re: [web2py] Re: AutocompleteWidget on multiple forms on the same page

2010-03-21 Thread Tito Garrido
THIS IS THE MODEL: *db.define_table('evento', SQLField('dono','reference auth_user',writable=False,readable=False), SQLField('paciente', 'reference paciente'), SQLField('titulo', 'string', length=255 ,default=''), SQLField('data','date',default=request.now,readable=False), SQLFi

[web2py] Re: Mailing list.

2010-03-21 Thread Yarko Tymciurak
On Mar 20, 12:24 pm, annet wrote: > In my application I have a table npa which contains non-physical > addresses, i.e. telephone numbers, fax numbers, e-mail addresses etc. > that are displayed on business cards. This table has a field company > which references a table company. Initially I insert

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread Dima Barsky
Hi Mark, The idea with symlinks might work, although it's not very elegant. Packaging individual applications is not easy either, there is another problem I forgot to mention. Currently web2py assumes that it has write permissions for the whole web2py directories (including subdirectories). It c

[web2py] Re: Bug in DocTests?

2010-03-21 Thread Joschua
oh, btw. can you make me an editor at the web2py-book and how can i contribute to the source? On 21 Mrz., 17:30, Joschua wrote: > it works great, but when the doctests fails, the error message is: > Line 2, in /home/joschua/seetor/Code/web2py/applications/examples// > controllers/simple_examples.

[web2py] Re: Bug in DocTests?

2010-03-21 Thread Joschua
it works great, but when the doctests fails, the error message is: Line 2, in /home/joschua/seetor/Code/web2py/applications/examples// controllers/simple_examples.py in makejson.__doc__ the are two ways to solve this (the second slash after examples) problem: #1: change line 62 at /gluon/compilea

[web2py] Re: Bulk inserts in Google App Engine

2010-03-21 Thread Jon Romero
Isn't the same thing as simple insert? (http://code.google.com/ appengine/docs/python/datastore/creatinggettinganddeletingdata.html). On Mar 21, 4:44 pm, mdipierro wrote: > It should do but the gaebulkinsertdoes not retuns such list. I > would not know how to get it. > > On Mar 21, 9:09 am, Jon R

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread Dima Barsky
On Mar 21, 2:46 pm, mdipierro wrote: > This would break automatic updates Of course it will. The only way to update a debian package is through the debian packaging mechanism, i.e, apt-get, aptitude, synaptic, etc. -- You received this message because you are subscribed to the Google Groups

[web2py] Re: widgets in db.py

2010-03-21 Thread Avik Basu
Are all the models executed on each server request? If so, is it still appropriate to create helper functions (to be accessed by controller function) within the model? I've been doing it this way because the helper functions I am writing usually access the db object and therefore having the helpe

[web2py] Re: Update record if different than proposed changes

2010-03-21 Thread mr.freeze
Something like this?: existing = db(db.person.id==desired_id).select().first() incoming = [f for f in request.vars.keys() if f in db.person.fields] changes = dict([(f,request.vars[f]) for f in incoming if existing[f] != request.vars[f] ]) if changes: existing.update_record(**change

[web2py] Getting R to work with web2py

2010-03-21 Thread Dutch opera
Hi, I can use rpy2 in python. When I run web2py I get this error... n \nRuntimeError: R_HOME not defined, and no R command in the PATH.\n' p8 s. What do I have to add in the controller to be able to use rpy2 and R? For all other apps...R and rpy2 work Thanks -- You received this message

[web2py] Re: crud.archive for full app auditing

2010-03-21 Thread Matthew
Thanks for the quick response. 1. To clarify, you CANNOT use the CRUD archive methods on the back. You must do the work yourself, like the example above, right? 2. I haven't seen the ** notation before. Is it literal, or do you mean that I will have to list all the fields within the parentheses?

RE: [web2py] Re: turnkeylinux help

2010-03-21 Thread Mark Breedveld
Testing a reply from outlook. Ignore this message -Oorspronkelijk bericht- Van: web2py@googlegroups.com [mailto:web...@googlegroups.com] Namens mdipierro Verzonden: vrijdag 12 maart 2010 19:12 Aan: web2py-users Onderwerp: [web2py] Re: turnkeylinux help My interest in turnkey is that once

[web2py] Re: Update record if different than proposed changes

2010-03-21 Thread Matthew
Thank you for your quick reply. In my example, I provided only field for simplicity. In reality, you could have 20 fields to check against. Would I have to check all of them manually, or is this a cleaner way? Thanks again! On Mar 21, 10:45 am, "mr.freeze" wrote: > existing = db(db.person.id==d

[web2py] Re: web2py beautification

2010-03-21 Thread mdipierro
Yarko, I like this. How about we simply add to what you did jquery.ui classes so we can style it using jquery? Massimo On Mar 20, 10:49 pm, Yarko Tymciurak wrote: > On Mar 20, 6:57 pm, Pepe wrote: > > > Hello, > > > i'm designer and before of that a human being, so i wonder: why make > > web2py

[web2py] Re: crud.archive for full app auditing

2010-03-21 Thread mdipierro
given db.define_table('mytable',) db.define_table('mytable_history', Field('current_record',db.mytable), db.mytable) before db(db.mytable.id==id).update(**fields) you need to retrieve and archive the current record current = db.mytable[id] current.current_record

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread Mark Breedveld
Thank you for your reply. Aldo my first reply suggested that I wanted to seperate the admin app. This not my intention. With web2py-.deb was for verified user apps from web2py.com. But still your interpretation of it ain't an wrong idee. For securite and vps reasons/situations it's required to ru

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread mdipierro
This would break automatic updates I normally installer web2py in /home/www-data/web2py/ On Mar 21, 7:15 am, Dima Barsky wrote: > On Mar 20, 5:01 pm, Mark Breedveld wrote: > > > The web2py community is searching help on debian / ubuntu packaging. > > The are concrete plans to deploy web2py

[web2py] Re: Update record if different than proposed changes

2010-03-21 Thread mr.freeze
existing = db(db.person.id==desired_id).select().first() if existing and existing.name != request.vars.name: existing.update_record(name=request.vars.name) On Mar 21, 9:38 am, Matthew wrote: > Is there a clean way to update a record only if it is different than > the proposed changes? > > F

[web2py] Re: Bulk inserts in Google App Engine

2010-03-21 Thread mdipierro
It should do but the gae bulk insert does not retuns such list. I would not know how to get it. On Mar 21, 9:09 am, Jon Romero wrote: > Shouldn't the bulk insert on Appengine (and on MySQL), return the ids > of the inserted row? > Now, it just returns True, where it should have been something lik

[web2py] Re: crud.archive for full app auditing

2010-03-21 Thread Matthew
Is there a way to do this (and to use CRUD, in general) in a scheduled job rather than just the web frontend? On Feb 13, 1:18 am, mdipierro wrote: > Here is a new feature in trunk. > > Say you have the following table: > > db.define_table('person', >     Field('name'), > > Field('created_by',defa

[web2py] Re: AutocompleteWidget on multiple forms on the same page

2010-03-21 Thread mdipierro
Can we see the code? On Mar 21, 8:50 am, Tito Garrido wrote: > Hi, > > Is there a way to change the name of the field? I'm generating the same form > N times using LOAD... each form has different parameters for some fields. > > Thanks, > > Tito > > > > On Sun, Mar 21, 2010 at 12:20 AM, mdipierro

[web2py] Re: mail plain text message wrong charset -- possible solution

2010-03-21 Thread mdipierro
Thank you! Fix is in trunk. On Mar 21, 7:04 am, szimszon wrote: > Okay I found the > --- cut -- >                 else: >                     text = > text.read().decode(encoding).encode('utf-8') >                 attachment.attach(MIMEText.MIMEText(text)) >             if htm

[web2py] Update record if different than proposed changes

2010-03-21 Thread Matthew
Is there a clean way to update a record only if it is different than the proposed changes? For example, I have a person in the table 'person' whose name is 'Pete'. To update his name: desired_id = 5 db(db.person.id == desired_id).update(name='Pete') Update is executed, even though his name did n

[web2py] Re: User Authorization + Download management

2010-03-21 Thread mdipierro
The problem is tht db(query).update(field=value) but you seem to have query where field=value goes. Try this: db.define_table('userSoftware', Field('user_id', db.auth_user), Field('filename')) def donwload(): query = db.userSoftware.user_id == auth.user_id if not db(query).upd

[web2py] Re: User Authorization + Download management

2010-03-21 Thread mr.freeze
Hard to say without seeing models for db.application and db.version but this may be what you're looking for: def downloadApp(): query = db(db.userSoftware.user_id==auth.user_id) & \ db(db.userSoftware.application_id == request.args(0) existing = db(query).count() if not e

[web2py] Re: problem to use database

2010-03-21 Thread mdipierro
Oops you are right. The problem is here then: auth_table=db.define_table( ... Field('preference', vul.object_vendors, label='Preferencia Principal'), ...) you cannot have a referent to a different database (db to vul). You can use a trick: auth_table=db.define_table( ... Fiel

[web2py] Re: trunkeylinux help

2010-03-21 Thread Dima Barsky
On Mar 20, 4:31 pm, mdipierro wrote: > I think this is a great idea. Do you know any debian developer? I'll try to package it. Dima. -- 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

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread Dima Barsky
On Mar 20, 5:01 pm, Mark Breedveld wrote: > The web2py community is searching help on debian / ubuntu packaging. > The are concrete plans to deploy web2py as Turnkey Appliance. Mark, I'll see what I can do, although it might be not straightforward. There is no clear separation in web2py between

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread Dima Barsky
On Sat, Mar 20, 2010 at 10:01:43AM -0700, Mark Breedveld wrote: > The web2py community is searching help on debian / ubuntu packaging. Mark, I'll see what I can do, but it's not that straightforward. There is no clear separation in web2py between the user code and the library code. Take, for exam

[web2py] Re: Bulk inserts in Google App Engine

2010-03-21 Thread Jon Romero
Shouldn't the bulk insert on Appengine (and on MySQL), return the ids of the inserted row? Now, it just returns True, where it should have been something like (taken from insert in gql.py): tmp.put() rid = Reference(tmp.key().id()) (rid._table, rid._record) = (self, None) On Mar 18, 6:42 pm, Jo

Re: [web2py] Re: ajax

2010-03-21 Thread Tito Garrido
Not sure if it's a thickbox problem but the widgets (date and time) works using iframe... but the behavior of the "onaccept" function is different and I can't update the page after the record is inserted... so I have to update the page manually to see the new record created by the modal window On

Re: [web2py] Re: AutocompleteWidget on multiple forms on the same page

2010-03-21 Thread Tito Garrido
Hi, Is there a way to change the name of the field? I'm generating the same form N times using LOAD... each form has different parameters for some fields. Thanks, Tito On Sun, Mar 21, 2010 at 12:20 AM, mdipierro wrote: > It should work with multiple fields as long they have different > names.

[web2py] Re: mail plain text message wrong charset -- possible solution

2010-03-21 Thread szimszon
Okay I found the --- cut -- else: text = text.read().decode(encoding).encode('utf-8') attachment.attach(MIMEText.MIMEText(text)) if html != None: if isinstance(html, str): html =

[web2py] Re: Using the Template System to Generate Emails

2010-03-21 Thread annet
In the send_mail.html view I have a link which reads like: Having trouble viewing this email? View it in your browser When I send the mail and open it this link reads like: Having trouble viewing this email? View it in your browser Does one of you know why the href isn't being rendered? Kind r

Re: [web2py] Re: User Authorization + Download management

2010-03-21 Thread Matthew McNaughton
Ok, so I'm trying to create a Download function that keeps track of the files that the user downloads and updates a database table. The database model is: db.define_table('userSoftware', Field('user_id', db.auth_user), Field('application_id'