[web2py] slideshow widget plugin

2010-08-10 Thread Hans
Field('issue_volume','integer'), Field('artist','string'), Field('feature','string'), Field('description','text'), Field('approved_by', db.auth_user, default=None), timestamp, format=l

[web2py:23269] Re: web2py 1.63.4 is OUT

2009-06-04 Thread Hans
I just downloaded 1.63.5 from web2py.com and could not find release/ change notes for this version in the README file or here. Maybe it should be version 1.63.4 ? Keep up the great work! Hans On 4 Jun., 06:03, mdipierro wrote: > I just posted 1.63.4 because I patch in 1.63.3 had broken Pyt

[web2py:23288] global logging to file

2009-06-04 Thread Hans
I tried to define a global logging for a web2py app. The problem with that is that if I place the following code in my default.py controller or db.py model then in both cases its executed more than once...resulting into having every log line written multiple times into the log file. either starti

[web2py:23327] Re: global logging to file

2009-06-05 Thread Hans
upposed to also call the general controller stuff or only directly the redirection target function ? Thanks, Hans On Jun 4, 10:48 pm, mdipierro wrote: > Odd I think your controller is being called 3 times. Is that possible? > I would add a print statement to check. > > On Jun 4, 2:29 pm, H

[web2py:23333] Re: global logging to file

2009-06-05 Thread Hans
r? Thanks, Hans On Jun 5, 2:34 pm, Hans wrote: > yes confirmed, the controller is called multiple times. the reason I > found is that the redirect() statements I use cause this. every > redirect() seems to call the controller, not only the redirection > target function. > > for

[web2py:23379] Re: global logging to file

2009-06-05 Thread Hans
executed only once here global done_once done_once=true because the variable done_once is undefined each time the controller is executed again. How can a code in the controller be executed only once? Also completely different approach suggestions are welcome! Thanks, Hans On Jun 5, 4:36

[web2py:23380] Re: global logging to file

2009-06-05 Thread Hans
executed only once here global done_once done_once=true because the variable done_once is undefined each time the controller is executed again. How can a code in the controller be executed only once? Also completely different approach suggestions are welcome! Thanks, Hans On Jun 5, 4:36

[web2py:23582] Re: global logging to file

2009-06-08 Thread Hans
user. Can you provide a link or example code for execution only once per application (e.g. initialization function) ? On Jun 5, 10:19 pm, mdipierro wrote: > can you store it into a session? > > On Jun 5, 2:11 pm, Hans > wrote: > > > The problem I have with my code for generati

[web2py:23684] Re: global logging to file

2009-06-09 Thread Hans
cache are working, but I assume it could be a viable option. what do you think? On Jun 8, 2:43 pm, mdipierro wrote: > You are right. Not in session. You can store an application wide var > in cache but I would suggest using the db for this. Anyway, I will > post an example. > > On

[web2py:23817] Re: global logging to file

2009-06-10 Thread Hans
>     logger.addHandler(handler) > > > >     return logger > > > >   logging=cache.ram('once',lambda:_init_log(),time_expire=) > > > > > Then, in any of your controller, you can just do the usual: > > > >   logging.warn('blah blah'

[web2py:24229] Re: global logging to file

2009-06-15 Thread Hans
file through your application works as follows: def show_log(): return get_log() If required the GAE solution needs work. A BIG thank you to Iceberg! Feedback and usage is welcome ;-) Hans Here is the log.py model version I use to enable logging for web2py apps. import logging def

[web2py:24230] Re: global logging to file

2009-06-15 Thread Hans
Important note: do *not* 'import logging' in your controller if you use log.py. its done for all your controllers already in the log.py model and it would break the log.py magic. On Jun 15, 7:46 pm, Hans wrote: > Log file usage in Web2py is now simpler than ever! > You wan

[web2py:24234] db.table.truncate() error if migrate=False

2009-06-15 Thread Hans
db.table.truncate() on a table with migrate=False produces a error. Is that only allowed on table with migrate on? Hans Using web2py 1.64.1 with MySQL Traceback (most recent call last): File "F:\Documents and Settings\Hans\Desktop\web2py\", line 1, in File "F:\Documents an

[web2py:24349] Re: global logging to file

2009-06-17 Thread Hans
I'm glad that its useful also to you Richard. Massimo, maybe you want to check if you want it in one of the next versions. On Jun 17, 2:23 am, Richard wrote: > this looks useful - thanks! > > On Jun 16, 3:53 am, Hans > wrote: > > > Important note: do *not* 'imp

[web2py:24900] Re: sql IS_NOT_IN_DB()

2009-06-24 Thread Hans
ld be and due to that its more difficult to maintain the code. See example below. It would be great also for me if future wep2by versions do automatic drop-down on combinations of IS_IN_DB and IS_NOT_IN_DB. Hans # vv the following construct replaces the broken dropdown function of the 1

[web2py:24967] Re: global logging to file

2009-06-25 Thread Hans
Richard, the following solution works for me in production without any problems. I use it for periodic, unattended functions (cron). I've send Massimo the code in case he wants to include it into web2py or make it available as optional add-on download. Hans ''' To use the

[web2py:25011] Datatables + jEditable

2009-06-25 Thread Hans
... --~--~-~--~~~---~--~~ 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 this group, send email to web2py+unsubscr...@googlegr

[web2py:25012] jEditable and Datatables

2009-06-25 Thread Hans
ing ? app + data attached in the next reply. Hans --~--~-~--~~~---~--~~ 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 f

[web2py:25057] Re: global logging to file

2009-06-26 Thread Hans
here your web2py related code... print 'code executed in Web2py %s' % request.env.web2py_version except: # put here your not Web2Py related code print 'code NOT executed in Web2py environment' #put here your general code print 'this part is always e

[web2py:25453] Re: XForms version of SQLFORM

2009-07-01 Thread Hans
more struggling with AJAX/scripting languages or browser incompatibilities' would go on my x-mas wish list to Santa Massimo ;-) Hans On 1 Jul., 19:13, mdipierro wrote: > right now you can do > > requires=IS_IN_DB(...) # options or > requires=[IS_IN_DB(...)] # no options > both cases

[web2py:25580] Re: need an ajax spreadsheet

2009-07-03 Thread Hans
great stuff massimo!!! how can the size of the cells be adjusted? Basically I want wider cells. Thanks, Hans On Jul 3, 4:16 am, mdipierro wrote: > Do you need to embed an ajax spreadsheet in you app. Now you have it: > > http://www.vimeo.com/5432441http://www.web2py.com/appliance

[web2py:25624] Re: need an ajax spreadsheet

2009-07-04 Thread Hans
27;%(r,c)].xml())}} > >       > >       {{pass}} > >     > >     {{pass}} > >   > >   > > > > > > >   function update_formula(t) { > >      if(t) { > >       jQuery('#selected_cell').html(jQuery(t).attr(&

[web2py:25635] Re: need an ajax spreadsheet

2009-07-04 Thread Hans
it > copies it in the cell and informs the sever. Doable in about 10 lines > of code but a bit tricky. If you do it let me know. > > On Jul 4, 8:31 am, Hans > wrote: > > > very nice! > > > how can a cell be made a drop down selection with values from db

[web2py:26055] Upload with previously used but removed applicationname

2009-07-09 Thread Hans
the problem. the folder ips does not exist on linux any more after the uninstall via admin interface. also changing the name of the file ips.w2p does not make a difference. are (old) application names in web2py stored somewhere else too? any other idea? both systems are on web2py 1.65.1 dev

[web2py:26145] Re: Upload with previously used but removed applicationname

2009-07-10 Thread Hans
odd. tehcnically uploaded files go in web2py/deposit/ before being > unpacked > > On Jul 9, 2:39 pm, Hans > wrote: > > > This has low priority for me because of possible workaround below - > > don't spend much time on this. > > > I use pack-all on a windows develop

[web2py:27428] feature request: auth email to approver

2009-07-26 Thread Hans
on application % (response.title)s requires your approval' Does that make sense? Thanks, Hans --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email

[web2py:27457] Re: feature request: auth email to approver

2009-07-27 Thread Hans
quired. Please approve user %s asap.' % form.email) So the from me requested feature is there already and working well ;-) Hans On Jul 27, 2:25 am, mdipierro wrote: > Yes but you can do already > > auth.settings.registration_requires_approval = False > auth.settings.register_onaccept = lamb

[web2py:27536] Re: web2py development and deployment

2009-07-29 Thread Hans
pment WinXP+MySQL+WingIDE Professional WingIDE Professional is fantastic. If you develop open source you can get a free Professional license. Hans On Jul 29, 12:02 am, Fran wrote: > On Jul 28, 10:52 pm, rb wrote: > > > I'm not crazy about having to modify code in > > web2py.py in o

[web2py:18502] Multi Column Unique Key, how to code best in web2py?

2009-03-23 Thread Hans
re a working example of how to implement such a basic enterprise requirement in web2py code. Beyond that I would appreciate help on how a good code for a 3 column unique key would be implemented (a good example would be shapename +colorname+month below). Thanks, Hans db=SQLDB('sqlite://test.db

[web2py:18804] search() in T2, [next and previous page], manual "Submit" required

2009-03-30 Thread Hans
ough. Is there a fix or workaround? like self submitting form? example code would be greatly appreciated on both 1) how to make a form self submitting and 2) a even better solution to the t2.search() next/previous page problem, if it exists Thank you, Hans --~--~-~--~~~--

[web2py:/] Re: search() in T2, [next and previous page], manual "Submit" required

2009-03-30 Thread Hans
Is there a more practicable temporary workaround than changing the development framework? Can a form submit itself or something similar, how ? Hans On Mar 30, 8:14 pm, mdipierro wrote: > Yes it is a bug. It will not be resolved too soon since first we need > to merge t2.search with crud.

[web2py:18811] t2.display(), reference field representation in view

2009-03-30 Thread Hans
table instead? code example below. Hans db.define_table('model_category', SQLField('code','string',length=3,required=True, requires=[IS_NOT_EMPTY(),IS_NOT_IN_DB (db,'model_category.code')],unique=True), SQLField('text','stri

[web2py:19556] http://mdp.cti.depaul.edu/ down?

2009-04-10 Thread Hans
For me it looks like http://mdp.cti.depaul.edu/ and http://www.web2py.com are down. http://depaul.edu/ is working. Can someone confirm or is the problem on our network side ? Hans --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[web2py:19561] Re: http://mdp.cti.depaul.edu/ down?

2009-04-10 Thread Hans
now for me its working again. hans On Apr 10, 7:17 pm, Boris Manojlovic wrote: > it really didn't worked today so it was not just you :) > > On Fri, Apr 10, 2009 at 7:16 PM, Álvaro Justen [Turicas] < > > > > alvarojus...@gmail.com> wrote: > > > On Fri,

[web2py:20073] db.table.field.represent question

2009-04-20 Thread Hans
7;None' if the field2 value is None How can this be achieved? Thanks, Hans db.table.id.represent = lambda value: A('%s' % (db (db.table.id==value).select(db.table.field2)),_href=URL (r=request,f='edit',args=value)) records=SQLTABLE(db(query).select( db.table2.cod

[web2py:20095] Re: db.table.field.represent question

2009-04-20 Thread Hans
,_href=URL (r=request,f='create',args='None')) On Apr 20, 4:23 pm, mdipierro wrote: > I think you just need > > db.table.id.represent = lambda value: A(db.table > [value].field2,_href=URL(r=request,f='edit',args=value)) > > On 20 Apr, 08:55, Hans

[web2py:20096] Re: db.table.field.represent question

2009-04-20 Thread Hans
es on db.alias2.field2.represent, db.alias3.field2.represent and so on ? On Apr 20, 7:10 pm, Hans wrote: > Thanks Massimo! > > The following code worked for me > >     db.table.id.represent = lambda value: A(db > (db.table.id==value).select(db.table.field2)[0].field2,_href=URL

[web2py:20170] csv export of a join select, how to?

2009-04-21 Thread Hans
Persons.P_Id=Orders.P_Id Thanks, Hans --~--~-~--~~~---~--~~ 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 this group, sen

[web2py:20175] Re: csv export of a join select, how to?

2009-04-21 Thread Hans
how do I get my_exporter() into csv? is there a web2py function which can be called? On Apr 21, 4:17 pm, mdipierro wrote: > def my_exporter(): >     return str(db(...).select(...)) > > On 21 Apr, 08:52, Hans wrote: > > > I would like to make a controller function that

[web2py:20185] Re: csv export of a join select, how to?

2009-04-21 Thread Hans
cally save it in a file you may > want to add two lines: > > def my_exporter(): >     response.headers['Content-Type']='text/x-csv' >     response.headers['Content-Disposition']='attachment; > filename=yourpreferredfilename.csv" ' >  

[web2py:20195] Re: db.table.field.represent question

2009-04-21 Thread Hans
Thanks Fran for your good hint. Unfortunately in my case I need different field.represents within one select, that's why I use the aliases. Looks like I need to alter the SQLTABLE columns content before passing it on. Hans On Apr 20, 9:46 pm, Fran wrote: > On Apr 20, 6:38 pm, mdipierr

[web2py:20608] Re: do you consult? do you have a company?

2009-04-27 Thread Hans
We provide tailored IT-Solutions, Consulting and Services. http://www.easytouch-edv.com On Apr 27, 7:42 am, mdipierro wrote: > I added the link. > > On 27 Apr, 00:37, SergeyPo wrote: > > > My company Zarealye develops personal loans data mining application > > with web frontend, uses web2py.  L

[web2py:20730] odd error: bug or limitation or ?

2009-04-28 Thread Hans
I'm experiencing a strange behavior within the code below. I tried to split the problem in the smallest pieces which I'm able to debug. My interpretation of the findings is that most likely I run into a web2py internal variable length issue/limitation. Let me tell you why I think that: The tables

[web2py:20803] Re: odd error: bug or limitation or ?

2009-04-29 Thread Hans
Update: I've found that its a mysql issue not a web2py one. On Apr 28, 4:52 pm, Hans wrote: > I'm experiencing a strange behavior within the code below. I tried to > split the problem in the smallest pieces which I'm able to debug. My > interpretation of the findings i

[web2py:20844] Re: odd error: bug or limitation or ?

2009-04-29 Thread Hans
ows_ips5) ], orderby=db.model_master.code|db.subsidary.line), headers=headers) Here db.subsidary is not a comma join any more but a join with ON clause - making it SQL 2003 compliant. Hans On Apr 29, 4:42 pm, Yarko Tymciurak wrote: > I'd be interested to hear a l

[web2py:20846] Re: odd error: bug or limitation or ?

2009-04-29 Thread Hans
So the limitation was my capability to write a SQL 2003 compliant select statement ;-) On Apr 29, 11:59 pm, Hans wrote: > Yarko, > > deep down in the reference manual of mysql 5.1 I've found the reason > for the issue,http://dev.mysql.com/doc/refman/5.1/en/join.html. > >

[web2py:21132] Re: Table already exists problem [again]

2009-05-04 Thread Hans
I'm having a similar problem. Last time I solved it by deleting the database and setting it up new. With more data it gets a pain. I read about setting 'migrate=False' to avoid the issue. I could use that for 'own' tables, but I get the same error for tables created by the T2 plugin. Like TheDude

[web2py:21148] Re: Table already exists problem [again]

2009-05-04 Thread Hans
how to apply this for T2 tables like t2_person? would this workaround survive version updates of T2? hans On May 4, 4:23 pm, mdipierro wrote: > This is complex. Currently the way to avoid the problem is to name > the .table files via > > db.define_table('someth

[web2py:21222] Re: Table already exists problem [again]

2009-05-05 Thread Hans
h_ tables in a way that it survives framework updates? Hans On May 4, 4:54 pm, mdipierro wrote: > T2 is dead. I will be no longer be supported. In fact much of the T2 > functionality is in gluon.tools > T3 will survive but will be rebuilt on top of tools and events > > Massimo > &

[web2py:21241] Re: Table already exists problem [again]

2009-05-05 Thread Hans
le(migrate=False), this app will not work any more. Same for app #3, #4, ... Those apps can also be non web2py apps which automatically create non existing tables, like web2py does it by default. my 2 eurocents Hans I understand that throwing the default assumption 'the application owns the

[web2py:21250] Re: Table already exists problem [again]

2009-05-05 Thread Hans
Massimo > > On May 5, 2:09 pm, Hans > wrote: > > > IMO one more thing to consider is that a database is not necessarily > > exclusively owned by one application. I would even go further and say > > default should be a database is NOT exclusively owned by one app and

[web2py:21405] selection of local file

2009-05-07 Thread Hans
an this be achieved? Hans P.S. I'm using the xlrd module from http://pypi.python.org/pypi/xlrd ### viewer ### {{extend 'layout.html'}} excel_read.html template {{=t2.T('Select File')}} {{=FORM('File: ',INPUT(_type='file',_name='filename'),I

[web2py:21409] Re: cool menu

2009-05-07 Thread Hans
wow, very cool! how can it (or something similar) be integrated into a web2py app? hans On May 7, 9:44 pm, mdipierro wrote: > http://www.filamentgroup.com/lab/jquery_ipod_style_and_flyout_menus/ --~--~-~--~~~---~--~~ You received this message because you

[web2py:21509] Re: selection of local file

2009-05-08 Thread Hans
to solve that issue with the corrupt file (=getting a exact copy) ? thanks, hans On May 7, 10:56 pm, mdipierro wrote: > This should do > >  def excel_read(): >     result={} >     if request.vars.filename != None: >         try: >             import xlrd >    

[web2py:21512] Re: selection of local file

2009-05-08 Thread Hans
t on windows xp. Any other ideas how this can be achieved? Hans On May 8, 10:29 pm, mdipierro wrote: > It may be an issue with buffer size. Try > > import shutil > shutil.copyfileobj(request.vars.filename,open(path,'w')) > > Massimo > > On May 8, 2:56 pm, H

[web2py:21513] Re: selection of local file

2009-05-08 Thread Hans
t on windows xp. Any other ideas how to solve this? Hans On May 8, 10:29 pm, mdipierro wrote: > It may be an issue with buffer size. Try > > import shutil > shutil.copyfileobj(request.vars.filename,open(path,'w')) > > Massimo > > On May 8, 2:56 pm, H

[web2py:21514] Re: append/delete to SQLRow

2009-05-08 Thread Hans
t but still in the same view table a manually consolidated total from a query of a different table. Ideally would be if also a blank row/record could be inserted between the detail records and the total row(s). How can this be best achieved? hans On Apr 26, 4:07 pm, Álvaro Justen [Turicas] wrote:

[web2py:21544] Re: Tables (and more) with Google Visualization API (JS)

2009-05-09 Thread Hans
Has anyone managed to implement a editable grid into web2py, something like http://datatables.net/examples/example_editable.html ? If so could you share a full (working!) example ? Hans On 8 Mai, 14:46, mdipierro wrote: > http://www.ajaxline.com/10-best-jquery-plugins-for-working-with-tab

[web2py:21588] Re: Newbie debugger issues with IDLE and web2py.py

2009-05-10 Thread Hans
Wing really rocks! And if you are a open source developer you can get a free license. On 9 Mai, 22:32, dlypka wrote: > Yes, I intend to purchase Wing, however I still wish to gain some > experience with the core debuggers. > > On May 9, 2:53 pm, Yarko Tymciurak wrote: > > > You could try an eva

[web2py:21591] Re: Tables (and more) with Google Visualization API (JS)

2009-05-10 Thread Hans
ave used dataTable but I never tried jEditable. Should be easy to > do. > > On May 9, 12:03 pm, Hans > wrote: > > > Has anyone managed to implement a editable grid into web2py, something > > likehttp://datatables.net/examples/example_editable.html? > > If so could you sha

[web2py:21808] Re: selection of local file

2009-05-13 Thread Hans
let me run some tests. > > Massimo > > On May 8, 5:05 pm, Hans > wrote: > > > > shutil.copyfileobj(request.vars.filename,open(path,'w')) > > > raises exception: (, AttributeError > > ('read',), ) > > > tried also > >    

[web2py:21810] Re: selection of local file

2009-05-13 Thread Hans
web2py 1.61.4 WinXP Pro SP3 Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] If there is anything I can do to mail it down on my side then let me know! Thanks, Hans On May 13, 9:40 pm, mdipierro wrote: > The problem is not so much to solve it but to reproduce

[web2py:22068] Re: selection of local file

2009-05-18 Thread Hans
corrupt for excel and bigger than the original. Massimo, I sent you an email with a web2py mini app and small .xls sample files. can you reproduce the problem? thanks, hans my test environment: web2py 1.61.4 WinXP Pro SP3 Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] On

[web2py:22231] Re: selection of local file

2009-05-20 Thread Hans
shutil.copyfileobj(request.vars.filename.file,open(path,'w')) > > should be > >   shutil.copyfileobj(request.vars.filename.file,open(path,'wb')) > > else when you read it back some of the binary info in the file will be > messed up. > > Massimo > > On May 20, 10:18 am

[web2py:22220] need help with query/select

2009-05-20 Thread Hans
I need a list of sales.product, sales.date, continent.name, sales.amount.sum() with just one summed row per sales.product, sales.date, continent.name ! basically a sales total per product, day and continent. something like Banana 20090520 Europe123 Apple 20090520 Europe234 Ap

[web2py:22228] Re: need help with query/select

2009-05-20 Thread Hans
.amount.sum > > (),orderby=db.sales.product|db.product.date,db.product.country) > > for row in rows: > >     print row.sales.product, row.sales.date, row.country.name, > > row._extra[db.sales.amount.sum()] > > > BUT 'date' is not a field name in SQL. m

[web2py:22219] Re: selection of local file

2009-05-20 Thread Hans
could you reproduce it on your side? On May 18, 4:34 pm, mdipierro wrote: > Thank you. I will look into this later today. > > On May 18, 7:35 am, Hans > wrote: > > > diff did not help since excel files are considered binary format. > > the copies are bigger than the

[web2py:22618] migrate suggestion for tools.py

2009-05-25 Thread Hans
ng it to grandmaster massimo directly ;-) Hans --~--~-~--~~~---~--~~ 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 this

[web2py:23168] Re: windows service problem in 1.63 (source)

2009-06-02 Thread Hans Donner
see the docstring in gluon.Winservice it needs the win32 lib, to be installed seperately. --- Original Message --- From: mdipierro To: web2py Web Framework Sent: 03/06/2009, 06:37:07 Subject: [web2py:23165] Re: windows service problem in 1.63 (source) I have no idea. You may have to he

[web2py:23263] SQLFORM rendering

2009-06-04 Thread Hans Donner
Currently SQLFORM renders a complete table for the fields provided (or all) for a db.table, and does some other magic as well. Would love to reuse the magic, but be in more control of the rendering. Eg, would like to specify what fields are placed where, and if they should include labels or not e

[web2py:23266] Re: SQLFORM rendering

2009-06-04 Thread Hans Donner
Seems to be it, thanks. 2009/6/4 David Marko : > > Do you mean something like this?  http://web2py.com/AlterEgo/default/show/205 > > David > > On 4 čvn, 11:12, Hans Donner wrote: >> Currently SQLFORM renders a complete table for the fields provided (or >> all)

[web2py:23281] Re: SQLFORM rendering

2009-06-04 Thread Hans Donner
: self['hidden'] = {} self['hidden']['id'] = record['id'] + +form = Storage() +(form.start, form.close) = self._xml() +form.start = XML("<%s %s>" % (self.tag, form.start)) +form.c

[web2py:23370] Re: experimental: decimal and pickable and custom columns

2009-06-05 Thread Hans Donner
appreciate that, still learning python so I'm looking forward what I can learn from your fix. On Thu, Jun 4, 2009 at 11:16 PM, mdipierro wrote: > > I know what to do. I will fix it. > > On Jun 4, 3:27 pm, HansD wrote: >> not yet sure how to fix this, but fields of this type results in: >> >> cla

[web2py:23372] Re: SQLFORM rendering

2009-06-05 Thread Hans Donner
the foundation of the expanded example i've provided in my posting before the patch. feel free to update alterego (works probable even better, because a second pair of eys/hands might fight some issues or unclarities. :-) On Fri, Jun 5, 2009 at 7:56 PM, DenesL wrote: > > Nice patch

[web2py:23384] Re: SQLFORM rendering

2009-06-05 Thread Hans Donner
yes, master :-) i noticed there needs to be secuirty code entered what must this be? On Fri, Jun 5, 2009 at 8:52 PM, mdipierro wrote: > > Can you please update the AlterEgo entry instead? > > Massimo > > On Jun 5, 1:05 pm, Hans Donner wrote: >> the foundation of t

[web2py:23386] learning python

2009-06-05 Thread Hans Donner
bals and import from there? any reason why frequently reused keynames are not provided as CONST? Esp when used in different parts of web2py. This might also prevent the 'Postgre' (missing s?) in sql.py I've only been using python for a short time, so this migh

[web2py:23391] Re: learning python

2009-06-05 Thread Hans Donner
key, while later it looks like it is referred to as 'Postgres' On Fri, Jun 5, 2009 at 10:29 PM, mdipierro wrote: > > I do not understand. I am sure it is because of lack of sleep and > headache due to broken glasses (waiting for a replament). > > Massimo > > On

[web2py:23404] Re: learning python

2009-06-05 Thread Hans Donner
09 at 6:37 AM, Yarko Tymciurak wrote: > On Fri, Jun 5, 2009 at 3:46 PM, Hans Donner wrote: >> >> what is it you do not understand? perhaps I can exaplin it better. > > Hans - > > I get the general idea you are trying to convey ---  for web2conf, we put > many configu

[web2py:23453] Re: experimental: decimal and pickable and custom columns

2009-06-06 Thread Hans Donner
consider it fixed. On Sat, Jun 6, 2009 at 6:07 PM, mdipierro wrote: > > I think this is now fixed but I have not tried. Can you please try it? > > On Jun 5, 12:49 pm, Hans Donner wrote: >> appreciate that, still learning python so I'm looking forward what I >> can

[web2py:23455] Re: Index Error on GAE

2009-06-06 Thread Hans Donner
running locally works fine? did you check index.yaml? On Sat, Jun 6, 2009 at 8:41 PM, Tito Garrido wrote: > Hi Folks, > > I've been receiving Index Errors when I try to run my web2py on gae > application: > > 189.115.246.131 - - [06/Jun/2009:11:37:39 -0700] "GET / HTTP/1.1" 500 251 > "http://appe

[web2py:23457] Re: web2py perfomance

2009-06-06 Thread Hans Donner
yep, add requires=IS_NOT_IN_DB(db,db.some_table.field1) in the SQField() statement as an argument On Sat, Jun 6, 2009 at 9:17 PM, vihang wrote: > > Very interesting mod. > > @Massimo, as mentioned about the requires statement, is there a way to > address the following directly in the field de

[web2py:23526] Re: web2py.com down?

2009-06-07 Thread Hans Donner
for me it works fine... On Sun, Jun 7, 2009 at 10:27 PM, mdipierro wrote: > > Now I cannot access web2py.com either. I cannot look into this until > tomorrow morning. > > Massimo > > On Jun 7, 3:15 pm, "mr.freeze" wrote: >> Yes. >> >> On Jun 7, 3:13 pm, mdipierro wrote: >> >> > can you accessww

[web2py:23529] Re: Informal Poll re use of admin interface

2009-06-07 Thread Hans Donner
>> I use Eclipse/Pydev but find the admin interface handy for quick, one- >> off changes. > +1 +1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web

[web2py:23613] Re: build automation

2009-06-08 Thread Hans Donner
you might have a look at the current makefile for web2py, there you can see how the current w2p files are generated. On Mon, Jun 8, 2009 at 9:21 PM, Sebastian E. Ovide wrote: > Hi Massimo, > > I was wondering if there is an easy way to compile and package an > application from command line. The q

[web2py:23754] html.py failed doctest

2009-06-09 Thread Hans Donner
Got: ** File "html.py", line 841, in __main__.FORM Failed example: form.xml() Expected: '' Got: '' ** 1 items had failures: 1 of 2 in __main__.F

[web2py:23761] Re: html.py failed doctest

2009-06-09 Thread Hans Donner
yep, just did a trunk upgrade 2009/6/9 mdipierro : > > BTW,... I am sure I fixed that a few days ago. Can you double check > you upgraded the tests? > > On Jun 9, 1:23 pm, Hans Donner wrote: >> Got: >> >> **

[web2py:23763] Re: html.py failed doctest

2009-06-09 Thread Hans Donner
anyway to run all the doctests in one go? On Tue, Jun 9, 2009 at 8:59 PM, Hans Donner wrote: > yep, just did a trunk upgrade > > 2009/6/9 mdipierro : >> >> BTW,... I am sure I fixed that a few days ago. Can you double check >> you upgraded the tests? >> >>

[web2py:23764] Re: web2py perfomance

2009-06-09 Thread Hans Donner
Alexey, custom.widget is already in trunk On Tue, Jun 9, 2009 at 2:14 PM, Alexey Nezhdanov wrote: > Finally, I started migration (before I was just slapping sql.py, checked out > of the trunk over my ancient 1.61.4 install). > Migration is not easy, I've been bending source for my needs so now I

[web2py:23767] Re: Custom Display Values

2009-06-09 Thread Hans Donner
Gary, how dows your model look like? And how does it show when you are just using SQLFORM? On Tue, Jun 9, 2009 at 9:40 PM, Gary wrote: > > Thank you Fran and Massimo for the info. > > I downloaded the trunk using: > > bzr branch lp:~mdipierro/web2py/devel web2py-devel > > and installed the applic

[web2py:23769] Re: table/sqltable helper post-production

2009-06-09 Thread Hans Donner
3) provide a patch, so it might end up in SQLTABLE ? On Tue, Jun 9, 2009 at 6:57 PM, mdipierro wrote: > > There is no may to make a SQLTABLE taht fits everybody's taste and > needs. I think you should > > 1) define your own SQLTABLE2, or > 2) loop over rows explicitly > > Massimo > > On Jun 9, 11

[web2py:23805] Re: response.flash upgrade

2009-06-09 Thread Hans Donner
Maybe somebody can make an example page displaying the various pickers out there with some descriptions etc. On Wed, Jun 10, 2009 at 2:27 AM, DenesL wrote: > > OK, but I am not the only one overlooking features ;-) > > There is a new version of www.dynarch.com/projects/calendar/ > with a demo at

[web2py:23816] Re: getHelperById ?

2009-06-10 Thread Hans Donner
Not quite, but has the same effect (hence the copy) for every component processed, it 'adds' the child components to the end of the processing que. So it searches layer by layer On Wed, Jun 10, 2009 at 10:29 AM, AchipA wrote: > > @massimo: thanks for the clarification, I just remember seeing > c

[web2py:23867] Re: Custom Display Values

2009-06-10 Thread Hans Donner
> You only need widgets > > > {{=form.custom.widget.field1}} > {{=form.custom.widget.field2}} > {{=form.custom.widget.field3}} > > {{=form.hidden_fields()}} > better is to use {{=form.start}} in stead of , this will take over any actions/methods etc that are used in the SQLFORM, and for now {{

[web2py:23871] Re: Custom Display Values

2009-06-10 Thread Hans Donner
.custom.widget.field2}} > {{=form.custom.widget.field3}} > > {{=form.custom.form.end}} includes hidden fields! > > Massimo > > On Jun 10, 11:27 pm, Hans Donner wrote: >> > You only need widgets >> >> > >> > {{=form.custom.widget.fie

[web2py:23928] Re: web2py 1.64.0 posted

2009-06-11 Thread Hans Donner
nd better error codes (thanks Hans) > - better LDAP support (thanks Fran and Mr. Freeze) > > Massimo > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" g

[web2py:24032] aplliances in a version control system

2009-06-12 Thread Hans Donner
Hi, is the sourcecode for the web2py.com/appliances also available in a verison control system like web2py itself? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group,

[web2py:24071] readonly fields dont validate on form level

2009-06-13 Thread Hans Donner
db.define_table( 'test', SQLField('unique', 'string', unique = True, requires = IS_NOT_IN_DB(db, 'test.unique')), ) def pseudo(): db.table.field.writable = False db.table.field = 'some invalid value for the requires[]' form = crud.create(db.table) the form doesn't r

[web2py:24076] Re: readonly fields dont validate on form level

2009-06-13 Thread Hans Donner
sorry, should be db.table.field.default = '' On Sat, Jun 13, 2009 at 3:54 PM, mdipierro wrote: > > I am not what you mean by: > > db.table.field = 'some invalid value for the requires[]' > > It seems to be redefining the field. It should give an error. >

[web2py:24088] Re: readonly fields dont validate on form level

2009-06-13 Thread Hans Donner
e only > validate visitor provided input. > > Massimo > > On Jun 13, 9:02 am, Hans Donner wrote: >> sorry, should be db.table.field.default = '' >> >> On Sat, Jun 13, 2009 at 3:54 PM, mdipierro wrote: >> >> > I am not what you mean by: >&g

[web2py:24096] Re: How to modify SQLRows

2009-06-13 Thread Hans Donner
def as_list(self, compact=True, storage_to_dict=True, datetime_to_str=True): so you can prevent the conversion by providing the datetime_to_str = False On Sat, Jun 13, 2009 at 5:57 PM, weheh wrote: > > Massimo, this is great and it works. Thank

  1   2   3   >