[web2py:32144] Re: "Add" button next to "combo box"

2009-10-02 Thread Iceberg
age to see the change after "add now", with a price of losing all his previous input. Lucky enough that I could arrange the is_in_db field at the first line of my form, so the waste of input is minimum. In this case, the benefit of "A

[web2py:32150] Re: new cron

2009-10-03 Thread Iceberg
I've tested latest trunk as well as web2py_1.67.2 binary on Windows platform. Both can call the cron job. In source code version it can print an error traceback on the console, while in binary version it can only print WARNING:root:WEB2PY CRON Call returned code 255: but not a big deal. So, it

[web2py:32184] Re: Ordering system

2009-10-04 Thread Iceberg
e in my order system, the user does not really want to "sort" orders by pickup place, but just wants to know which orders need to be prepared in ONE GIVEN pickup place. So I just provide a search-by-pickup-place feature. Hope you get the idea. Sincerely, Iceberg --~--~-~--~

[web2py:32187] Re: Can Web2py use a SQLite database on another machine on the LAN?

2009-10-04 Thread Iceberg
DAL('sqlite:///absolue/path') notice the /// On Oct4, 7:18pm, BluePoint wrote: > Yes, thanks, I understand that - my current apps look for the database > in a shared folder > on another machine. However, I was wondering how one would tell web2py > to do that. > Normally one specifies the databa

[web2py:32211] Re: Input validation

2009-10-04 Thread Iceberg
The IS_UPPER() is based on python's upper(). In python document it said, Return a copy of the string converted to uppercase. For 8-bit strings, this method is locale-dependent. So if your locale doesn't work for some reason, I think you can at least customize your own IS_UPPER(), and convert

[web2py:32215] Try out admin editor

2009-10-04 Thread Iceberg
. Regards, Iceberg --~--~-~--~~~---~--~~ 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 web2p

[web2py:32281] Re: newbie looking for style advice

2009-10-06 Thread Iceberg
On Oct5, 11:31pm, mdipierro wrote: > > On Oct 5, 10:14 am, devnull wrote: > > 2. I wanted a more specific error message for each field which uses an > > is-float-in-range validator ... But is there a way to refer to the > > actual max and min without repeating it in the string? Something like >

[web2py:32372] Re: Try out admin editor

2009-10-07 Thread Iceberg
Oct 6, 7:30 am, Kuba Kucharski wrote: > > > > > Still the main problem with admin editor is this > > wrong-refreshing/wrong-displaying trauma - never solved or did I miss smth ? > > > On Oct 5, 2009 3:47 AM, "Iceberg" wrote: > > > Did not really try

[web2py:32380] Re: how to import html helpers inside a module?

2009-10-07 Thread Iceberg
Since you gonna import one homemade module anyway, why not just: from applications.yourapp.modules.country import country_names_as_a_list db.define_table('shipping_info', Field('countries', _requires=IS_IN_SET(country_names_as_a_list)) ... ) This way you don't force yourself to know someth

[web2py:32389] Re: how to import html helpers inside a module?

2009-10-07 Thread Iceberg
way I was first doing it but I am wondering what must > be imported so module code can work (because it's working when it's in > db.py). > Also, creating a Field('country', 'countries') would be (I think) a > nice addition. Should I submit a patch, Massimo?

[web2py:32537] Re: SQLFORM

2009-10-08 Thread Iceberg
The "crazy" need not be that crazy. I normally do: db.Field('myfield','string', widget=lambda field,value,**kwargs: StringWidget.widget(field,value,_size=40,**kwargs) so that the output field has a size=40 setting. css should also work. Just make sure your definition appear in right

[web2py:32542] Re: Try out admin editor

2009-10-09 Thread Iceberg
I am just curious to know whether ctrl+s works in other user's environment. If it does not work, I won't mind because it is not really my first choice to edit my app. :-) On Oct7, 10:10pm, mdipierro wrote: > Please check again it should be there > > On Oct 7, 4:26 am, Iceberg wro

[web2py:32592] Re: Try out admin editor

2009-10-09 Thread Iceberg
every environment in existence > > In ASCII, it is "Device Control 3", and has been used for terminal control > since the beginnings of the use of terminals. > > > > On Fri, Oct 9, 2009 at 3:52 AM, Iceberg wrote: > > > Do you mean that the ctrl+s is already impl

[web2py:32593] Re: Could someone clear up some questions about cache?

2009-10-09 Thread Iceberg
core, and has nothing to do with cache feature. Hope this explanation makes thing clear. Regards, Iceberg On Oct10, 1:27am, mdipierro wrote: > @cache.ram(...) > def index(): return dict(a=3) > > caches the dict only > > @cache.ram(...) > def index(): return response.rende

[web2py:32602] Re: Could someone clear up some questions about cache?

2009-10-09 Thread Iceberg
On Oct10, 10:28am, Thadeus Burgess wrote: > Is there a way to cache two different versions of a function? > > Say you have a contact page, that when users are logged in, includes a > comments and suggestions form, however when your not logged in, does not > display this form. > > Is there a way t

[web2py:32649] Re: SELECT - UTF-8 errors

2009-10-10 Thread Iceberg
On Oct11, 3:42am, leone wrote: > I have same string inserted in a table. > When I select them, I debug this error: > > File "/xx/xx/web2py/web2py/gluon/sql.py", line 2235, in > response >     return self._db._cursor.fetchall() > OperationalError: Could not decode to UTF-8 column 'subject'

[web2py:32650] Re: strip whitespace before validating fields

2009-10-10 Thread Iceberg
On Oct11, 4:21am, Thadeus Burgess wrote: > > > On Oct 10, 7:52 am, devnull wrote: > > > > Is there an option or a validator that will strip whitespace before > > > > applying remaining validators for a given field on a form? > > > > > Somewhat related: I tried the CLEANUP validator but the resu

[web2py:32655] Re: why doesn't this ajax call work? [RESOLVED -- updated web2py_ajax.html]

2009-10-11 Thread Iceberg
On Oct11, 12:24pm, weheh wrote: > > So caveat emptor: if you're working on ajax, make sure your views > folder has an updated version of web2py_ajax.html. > > In general, this may be an issue about releasing newer versions of > web2py because the apps aren't updated automatically. Perhaps the aja

[web2py:32656] Re: SELECT - UTF-8 errors

2009-10-11 Thread Iceberg
') to my default > > Field('subject','text', default=u''.encode('utf8')), > > On 11 Ott, 01:53, Iceberg wrote: > > > > > On Oct11, 3:42am, leone wrote: > > > > I have same string inserted in a table. > > > W

[web2py:32660] Re: using a calculation in a requires validator

2009-10-11 Thread Iceberg
On Oct11, 7:23pm, "Michael - afewtips.com" wrote: > Hi, > I need to do this > >    ( db.field % .25 == 0 ) > > calculation on a field entered into a form. > > Do I need to create a function that checks (what?) or can it be > entered directly in the > db definition? > > Thanks > Michael Yes, you

[web2py:32787] Re: strip whitespace before validating fields

2009-10-12 Thread Iceberg
ight spark a > > better idea. > > > On Oct 12, 3:59 am, Joe Barnhart wrote: > > > > +1 on the idea, but the name "dust" seems a little idiomatic, doesn't it? > > > > As an aside, I discovered the absolutely fastest way to remove a set of > >

[web2py:32800] Re: Multiple Requires criteria

2009-10-13 Thread Iceberg
Maybe you understand, but you still do not say it right. A list of validators can have more than one criteria (means validator here) if you want, but just that it can not be automatically rendered as a drop- down widget. And in your case, you just don't need multiple criteria (aka validator). On

[web2py:32894] Re: suggection to sqlform

2009-10-14 Thread Iceberg
No objection. IMHO, even my app might be affected due to css/jquery issue, but it is acceptable, because the modification is easy, and more importantly the new TH makes my app easier to use css/jquery to customize the table header. On Oct14, 8:39pm, mdipierro wrote: > This may be seen as breaki

[web2py:32992] Re: How can I set a view to a controller manually?

2009-10-16 Thread Iceberg
Newbie should really read through the built-in documents. It takes some time but it is worthy! http://www.web2py.com/examples/default/examples The response.view trick is mentioned inside. On Oct15, 7:12pm, Renato-ES-Brazil wrote: > Simple and perfect! > > Thanks. > > On Oct 14, 9:56 pm, mdipi

[web2py:33074] Re: Rails vs Web2py at Athens Digital Week

2009-10-17 Thread Iceberg
Nice slides! One comment. In slide 9, the web2py part is in fact the code of controller, but I think a more equivalent comparison should be the code of view, that is {{=form}} :-) BTW, slide 5 and slide 23 are duplicated. :-) On Oct18, 12:49am, mdipierro wrote: > I really like your presentati

[web2py:33103] Re: error tickets on gae

2009-10-18 Thread Iceberg
appengine/web2py directory? Those .svn/* files seem not exclude in app.yaml so they will be uploaded too. Regards, Iceberg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py:33145] Re: error tickets on gae

2009-10-19 Thread Iceberg
On Oct19, 4:39am, mdipierro wrote: > On Oct 18, 2:58 pm, Iceberg wrote: > > > I am using web2py_src.zip 1.67.2, Sep28 edition. After uploading my > > apps, some of them work fine, some don't. Issues include: > > > 0. I can use gluon/contrib/login_methods/em

[web2py:33181] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-19 Thread Iceberg
> On Oct 19, 11:00 pm, Richard wrote: > > > hello, > > > I find the validator error "too small or too large" too general. > > Ideally they should return "not a number" if the int/float cast fails, > > or "too big" / "too small" when out of range. > > > Would this work with the current API, or doe

[web2py:33320] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-21 Thread Iceberg
It is a little bit surprising and happy to see these error_message draw enough attention. :-) So is it time to also consider my proposal more than one month before? http://groups.google.com/group/web2py/browse_frm/thread/8cbe658406be595f That way, we don't even have to adjust the default error

[web2py:33551] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-23 Thread Iceberg
> On Oct 21, 12:03 pm, Iceberg wrote: > > It is a little bit surprising and happy to see these error_message > > draw enough attention. :-)  So is it time to also consider my proposal > > more than one month before?   > > http://groups.google.com/group/web2py/browse_

[web2py:33640] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-24 Thread Iceberg
> > > On Oct 21, 12:03 pm, Iceberg wrote: > > > > It is a little bit surprising and happy to see these error_message > > > > draw enough attention. :-)  So is it time to also consider my proposal > > > > more than one month before?   > > &

[web2py:34164] Re: renaming validators

2009-10-30 Thread Iceberg
Glad to know this undocumented convention. Now I understand better why Massimo is not eager to do validators' i18n in a class-attribute, because it tends to mislead developers to further adjust them and then possibly affect other apps. :-) On Oct30, 11:31am, mdipierro wrote: > There is a reason

[web2py:34307] How to transfer gae database to local sqlite and vice versa?

2009-10-31 Thread Iceberg
Hi folks, Thanks for the hint Thadeus and Massimo give in this post http://groups.google.com/group/web2py/browse_frm/thread/d891a1e936599362 Yet I have one more relevant quick question. Does the export_to_csv_file() and import_from_csv_file() solution also work when one db is on gae? Actually

[web2py:34397] Re: How to transfer gae database to local sqlite and vice versa?

2009-11-02 Thread Iceberg
t use export_to_cvs or import_from_cvs_file on GAE is you > > have more than 1000 records. > > > On Oct 31, 10:35 pm, Iceberg wrote: > > > > Hi folks, > > > > Thanks for the hint Thadeus and Massimo give in this post > > >  http://groups.google.com/grou

[web2py:34488] Re: So to start with web2py and gae.

2009-11-03 Thread Iceberg
On Nov3, 11:36am, mdipierro wrote: > https://launchpad.net/t4 > > but it is not as stable as t3. Eventually we are going to need better > names. On Nov3, 12:32pm, Wiiboy wrote: > Perhaps more descriptive =) It is kind of faq. :-) IIRC, in the web2py 1.4x era, T2 was introduced. The name is a

[web2py:34717] Re: problem with 1.71.2

2009-11-05 Thread Iceberg
rameter for CacheInRam.__call__(..., deepcopy=True) for flexibility? Hope to hear more feedback on this. Thanks. Regards, Iceberg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users"

[web2py:34723] Re: problem with 1.71.2

2009-11-05 Thread Iceberg
ult behavor should be that the object is deepcopied. > > On Nov 6, 12:08 am, Iceberg wrote: > > > > > > On Nov 6, 2:42 am, mdipierro wrote: > > > > > I found the problem. > > > > > There is, there always was, a bug in cache.ram. It was caching the &

[web2py:34794] Re: hiprank

2009-11-07 Thread Iceberg
On Nov7, 1:10pm, mdipierro wrote: > It is good but I do not understand what the data source is. > > http://www.hiprank.com/django-vs-ruby-on-rails-vs-web2py.html That site is nothing more than a joke. But it really makes me laugh. For example, see this: http://www.hiprank.com/boy-vs-girl.html -

[web2py:34800] Re: problem with 1.71.2

2009-11-07 Thread Iceberg
Wow, the shallowcopy old days come back! ^o^ One more typo. You forgot the "self.locker.release()" in line 181 of cache.py in latest fix. I tried put it back and then everything is smooth again. On Nov7, 11:32pm, mdipierro wrote: > OK. Please try trunk again. > > On Nov 7

[web2py:34802] Re: problem with 1.71.2

2009-11-07 Thread Iceberg
I can confirm that the lock.release is back. Thanks! One minor suggestion, your valuable comments which come from many test and efforts, are worthy to be put into CacheInRam.__call__() 's doc string or comment. Do you think so? On Nov8, 12:34am, mdipierro wrote: > Turns out the deepcopy has som

[web2py:34803] Re: web2py 1.71.1 is OUT

2009-11-07 Thread Iceberg
One typo. In Rows.__getslice__(), there is a "seld.db" which should be "self.db". By the way, one of my app relied on Rows._db is broken now, but not a big deal, I can adjust it to use Rows.db instead. I know all Class._foo naming convention indicates it is an internal variable so no backward com

[web2py:35009] Re: Other new DAL features in trunk

2009-11-09 Thread Iceberg
Off topic. Recently web2py evolutes with many great enhancement. That is, without doubt, a good thing. Yet it will be better if the new features are documented, even roughly mentioned, in some well-known place. So that people who missed a post in google mail list (and google-maillist- search suck

[web2py:35245] Confirmation dialog on delete

2009-11-13 Thread Iceberg
I happened to find out that the "Confirmation dialog on delete" in web2py_ajax.html is defined as: $('input.delete').attr('onclick','if(this.checked) if(!confirm("{{=T ('Sure you want to delete this object?')}}")) this.checked=false;'); and it does NOT work. But a slightly adjusted version:

[web2py:35335] Re: CRUD

2009-11-14 Thread Iceberg
Use session.flash instead. On Nov14, 7:06pm, leone wrote: > Ooops... > It runs but .update_next interferes with message in response.flash and > redirect *before* the drop_down message. > There is a way to redirect *after* notification of response.flash? > Thanks in advance. > > On 14 Nov, 11:56,

[web2py:35344] Re: Incremental Development

2009-11-14 Thread Iceberg
On Nov15, 1:35am, Francisco wrote: > Hi hello every one. > > I'm building a simple application that consists of three modules but > they share some db tables. I have finish the first module and is right > now being tested. But I still need to finish the other two modules. > When I have finished t

[web2py:35391] Missing web2py-menu-active definition in base.css?

2009-11-15 Thread Iceberg
I noticed the MENU() helper uses a "web2py-menu-active" status, but there is no corresponding definition in static/base.css Suggest to add this into the default base.css: .web2py-menu-active a {background-color: white;} So that the active menu item will be shown in white background color. Wan

[web2py:35392] How to read an uploaded file object line by line?

2009-11-15 Thread Iceberg
Hi folks, How to read an uploaded file object line by line? This seemingly easy task stumps me. Now I am totally lost. :-/ def restore(): form = SQLFORM.factory(Field ('backup','upload',requires=IS_UPLOAD_FILENAME())) if form.accepts(request.vars,keepvalues=True,session=None): #

[web2py:35396] Re: How to read an uploaded file object line by line?

2009-11-15 Thread Iceberg
.file.seek(0) > request.form.vars.backup.file.read() > > if it does not work, then the file stream can only be read > sequentially and you need to re-open the file and read from there > > Massimo > > On Nov 15, 7:59 am, Iceberg wrote: > > > > > Hi folks, > > > How to read an uploaded f

[web2py:35817] How to delete file uploaded via SQLFORM.factory()?

2009-11-22 Thread Iceberg
I noticed that a file uploaded via SQLFORM.factory() exists in myapp/ uploads. How to delete them automatically? By the way, shall the auto-deletion be web2py's default behaviour? Since using SQLFORM.factory() hints no need to keep those file at all. Code for reproducing the problem. def foo():

[web2py:36136] Re: Omit default controller for for any action

2009-11-28 Thread Iceberg
On Nov29, 2:11am, Alex wrote: > Is there any way to omit default controller name in URL if there is > appropriate default controller action, like it's done for index action > but to work for any default controller action? Create a routes.py in your web2py directory. See web2py/ route.example.py f

[web2py:36329] Re: Off-Topic: Question about blog archive links

2009-12-01 Thread Iceberg
And consequently one item can not exist in different category, so user has to follow the predefined hierarchical tree to locate a post. Say, a post about "Camry6" only exist in /root/toyota/camry6, but you can't easily find it if you don't know Camry is built by Toyota. If using tags, user can jus

[web2py:36778] web2py on windows mobile?

2009-12-08 Thread Iceberg
b2py can run on windows mobile device. Does anyone try that before? Thanks in advance. Sincerely, Iceberg -- 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 unsubscrib

[web2py:36797] Re: web2py on windows mobile?

2009-12-08 Thread Iceberg
more (I was so fed up with its bugs that I > gave it away for free). > Anyway, it should work unless some module is missing. > Can you tell us more about the python version you are using and the > stack trace? > > Massimo > > On Dec 8, 9:22 am, Iceberg wrote: > > &g

[web2py:36877] Re: web2py on windows mobile?

2009-12-09 Thread Iceberg
On Dec9, 2:28am, mdipierro wrote: > I think the problem is that it is running from the python.exe folder > and not the web2py folder therefore it is not finding the libraries. > As a test. try edit web2py.py and append the full web2py path to > sys.path > > On Dec 8, 12:10 pm,

[web2py:36933] What do you think about python 2.7?

2009-12-09 Thread Iceberg
I am still using python 2.5.4, the favorite one for web2py. And just notice that Python 2.7 is released, although still in alpha phase. http://www.python.org/download/releases/2.7/ Other new features are not very necessary, but the statement "A much faster io module" catches my attention. Will it

[web2py:36964] Re: web2py on windows mobile?

2009-12-10 Thread Iceberg
ec10, 1:08am, mdipierro wrote: > 3) can you try comment that line? > > On Dec 9, 8:26 am, Iceberg wrote: > > > 3. However, web2py still breaks somewhere during starting up, the > > break point seems to be in bind() of gluon/wsgiserver.py: > >         prevent_socket_inh

[web2py] Caution: When same name params exist in both get_vars and post_vars

2010-01-12 Thread Iceberg
# it is actually ['123', '123'] I am not requesting to change the behaviour back to web2py 1.73 era, but just hope to hear some comments about such subtle circumstance. Thanks in advance! Regards, Iceberg [1]: http://code.google.com/p/web2py/source/detail?r=24c5e2bef11cb1dc48e

[web2py] Re: Caution: When same name params exist in both get_vars and post_vars

2010-01-12 Thread Iceberg
erstanding. On Jan12, 10:55pm, Timothy Farrell wrote: > You can read about the bug and patch here: > > http://groups.google.com/group/web2py/browse_thread/thread/6d9e0e6eb7... > > -tim > > On 1/12/2010 8:52 AM, Iceberg wrote: > > > > > Hi pals, > > > When up

[web2py] Re: choose a value

2010-01-12 Thread Iceberg
again and again when developing applications targeting to non-English end users. Regards, Iceberg On Jan13, 0:54am, mdipierro wrote: > IS_IN_DB(...,zero=None) > > On Jan 12, 9:51 am, Jose wrote: > > > > > How to remove the words "choose a value" of the dropbox?

[web2py] Re: Why double braces in view

2010-01-12 Thread Iceberg
I knew this, but I still avoid writing such long paragraph of code in view file. Because I am nervous that maybe someday some developer (other than me) modifies this my_view.html and unintentionally mess up all the indention, as we all know indention is not supposed to be important in a pure html f

[web2py] Re: format zero IS_IN_DB

2010-01-30 Thread Iceberg
e valuable, wise discussion in document. For example: IS_IN_DB(..., zero=None, # Why? See https://groups.google.com/group/web2py/browse_frm/thread/d25d13cd3f5bd7b1 ...) Regards, Iceberg On Jan29, 11:55pm, Thadeus Burgess wrote: > +1 supporting DenesL argument. (but we already know this) >

[web2py:11942] Bugfix and improvement for CAS

2008-11-16 Thread Iceberg
EMAIL_USER="[EMAIL PROTECTED]" EMAIL_PASS="blah" then later: server = smtplib.SMTP(EMAIL_SERVER) server.login(EMAIL_USER,EMAIL_PASS) # Add this line server.sendmail(fromaddr, toaddrs, msg) Sincerely, I

[web2py:12624] Is there a best way to do doctest for models?

2008-11-29 Thread Iceberg
anks in advance. Regards, Iceberg --~--~-~--~~~---~--~~ 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

[web2py:12664] Re: Log rotation

2008-11-30 Thread Iceberg
Thanks in advance. Regards, Iceberg On Oct1, 9:26pm, voltron <[EMAIL PROTECTED]> wrote: > You are right Achipa :-) I was thinking of something crossplatform. > And this would rotate the log files created by web2py? Ill try it out > > Thanks! > > On Oct 1, 2:55 pm, achipa <

[web2py:12783] What is "input.delete" for?

2008-12-01 Thread Iceberg
radio button with "_class='delete'", then click it again and again, but nothing special happened. Besides, I guess there should not be an excalmatory mark in front of the "confirm(...)". But I can not test it anyway. Yours, Iceberg --~--~-~--~~~---

[web2py:12840] Re: What is "input.delete" for?

2008-12-02 Thread Iceberg
's default db record delete function. But I suggest a more generic scenario: how about a radio button that can be "un- choose"? Though I know how to do that manually, I am still glad to see it becomes "battery included" of web2py, say, a "input.deletable" clas

[web2py:12861] Re: web2py 1.52 posted

2008-12-03 Thread Iceberg
On Dec 3, 6:29 am, mdipierro <[EMAIL PROTECTED]> wrote: > please check it out. Very minor changes. The major change is caching > of bytecode on GAE. Is there any latest whatsnew.txt or changes.txt which comes with every version of new web2py? I could not find any in web2py_win.zip neither web2py_

[web2py:13173] Re: SCRIPT() helper

2008-12-09 Thread Iceberg
Can web2py's XML(...) help you? On Dec 8, 11:24 pm, achipa <[EMAIL PROTECTED]> wrote: > I just noticed that by default it escapes some chars that it probably > shouldn't - for example 'if x < y' becomes 'if x < y'. You can of > course work around this, but is probably not what most users would >

[web2py:13449] Not-so-intuitive behavior when search in boolean field

2008-12-12 Thread Iceberg
elect all non-True records? Is this an intended design, or a unexpected flaw? Thanks in advance. Iceberg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group,

[web2py:13542] Re: Not-so-intuitive behavior when search in boolean field

2008-12-14 Thread Iceberg
f you do not rely on this if it is part of > a logical expression. > > For your specific example that would mean something along the lines of > db.( ~ (db.Orders.special==True)) > > If I'm cardinally wrong, please correct me. > > On Dec 12, 12:59 pm, Iceberg wrote: > &

[web2py:13734] Request for "Legend"

2008-12-17 Thread Iceberg
Hi Massimo, Why there is a definition of FIELDSET in html.py, but there is not a LEGEND? They usually show up together. Would you please append this in next version of web2py? class LEGEND(DIV): tag='legend' Regards, Iceberg --~--~-~--~~~---~--~~ Yo

[web2py:13841] Re: Request for "Legend"

2008-12-18 Thread Iceberg
; > specification. > > > -Marko > > > On 17 joulu, 17:42, DenesL wrote: > > > > You can create it using the TAG helper. > > > > t=TAG.LEGEND('a','b',_c='d') > > > t.xml() produces > > > 'ab'

[web2py:13850] Re: Request for "Legend"

2008-12-18 Thread Iceberg
the end of the section under > "Custom Helpers". > > On Thu, Dec 18, 2008 at 8:38 PM, Iceberg wrote: > > > It seems LEGEND does not qualify for either of the excluding criteria > > mentioned by Massimo. So I think it should be in. > > > Denesl's soluti

[web2py:13858] Suggestion about using IS_IN_SET to deal with order-less set

2008-12-19 Thread Iceberg
;Come on, Sushi sucks!', 'unknown': 'What is Sushi?' } )) # In case you want to ask, why a hack inside validators.py is the only way to do this? I tried to define a subclass of IS_IN_SET in my own model.py, it almost works, but fails when a record is going to be sa

[web2py:13881] Re: Edit multiple records at once

2008-12-19 Thread Iceberg
On Dec20, 12:05am, fja wrote: > Hello, is there a way to edit multiple records at once in a form? > > Say you have a table > > StudentName (string) > Term1 (string) > Term2 (string) > > I would like to have a form similar to this. > > Student Name         Grade Term 1       Grade Term2 > Roger  

[web2py:13882] Re: Suggestion about using IS_IN_SET to deal with order-less set

2008-12-19 Thread Iceberg
hough the doc said it can). We shall not keep the bug for backward compatibility, shall we? On Dec20, 1:26am, mdipierro wrote: > sorry. it breaks backward compatibility. > > Massimo > > On Dec 19, 4:53 am, Iceberg wrote: > > > Hi Massimo, > > > According to doc

[web2py:13885] Re: Suggestion about using IS_IN_SET to deal with order-less set

2008-12-19 Thread Iceberg
I know you are a reasonable man. :-) Thanks! On Dec20, 2:02am, mdipierro wrote: > Sorry I misunderstood. No objection. I will put it in. Thanks. > > Massimo > > On Dec 19, 11:59 am, Iceberg wrote: > > > Thanks for the quick feedback, but I don't understand. The h

[web2py:14128] Bug in nesting cache?

2008-12-26 Thread Iceberg
he_model=cache.ram) def annualStat(): teams=getAllRawData() result=doSomeComplexCalculationBasedOn( teams ) # I hope to cache the result of this too. return result Eliminate the nesting cache usage may be an option, but it will be more intuitive if I do not have to do so. Can web2py support nesting cache style? Than

[web2py:14200] Re[2]: Bug in nesting cache?

2008-12-28 Thread Iceberg
gards, Iceberg, 2008-Dec-29, 01:29(AM), Mon --- Original Message --- From:Massimo Di Pierro To: Iceberg Date:Sun, 28 Dec 2008 10:52:43 -0600 Subject: Re: Bug in nesting cache? --- > ok &

[web2py:14431] Helper for Custom Forms, inside controller

2009-01-02 Thread Iceberg
TE): return INPUT(_class='date',_type='text', _name=field.name,_id=field.name,_value=value,requires=field.requires,**kwargs) if field.type=='double': return INPUT(_class='double',_type='text', _name=field.name,_id=field.name,_value=value,requi

[web2py:14456] web2py.exe can not start as windows service

2009-01-03 Thread Iceberg
/browse_thread/thread/8382f8fcb7de0534/b7947df750e2a8de?lnk=gst&q=windows+service#b7947df750e2a8de I am writing to ask whether situation changes since then. Too bad that web2py.exe can not be deployed on a customer's PC with windows XP but without python. :-S Thanks in advance

[web2py:14510] Using threads to do re-occuring jobs

2009-01-04 Thread Iceberg
tial nudge to trigger all the magic __trigger() return 'started' def usual_action(): # Just to show that normal requests are served as usual return {'foo':'bar'} Sincerely, Iceberg, 2009-Jan-04, 20:54(PM), Sun --~--~-~--~~~

[web2py:14555] Re: web2py.exe can not start as windows service

2009-01-04 Thread Iceberg
On Jan5, 4:22am, Fran wrote: > On Jan 4, 4:53 pm, mdipierro wrote: > > > could you try > > import gluon.winservice > > Yes, that works :) > Both 1.54 bin & 1.55rc4 src > > F Excuse me, but what do you mean "that works"? In my 1.55rc4 bin, I got: C:\DOWNLOAD\web2py>web2py -S welcome ... Versio

[web2py:14558] How to custom form validation in T2?

2009-01-04 Thread Iceberg
eturn {'Oops':A('Try again',_href=URL(r=request,f='create'))} return {'Create':t2.create(db.config)} Thanks in advance. Iceberg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

[web2py:14570] Issues about itemize() and search() in T2, mainly about pagination

2009-01-05 Thread Iceberg
hat it does not need i18n at all! nav=[TR(TD( # Iceberg at 21cn dot com prefers this style of page navigation :-) INPUT(_type='button',_value='| <',_onclick='javascript:location="%s"'%self.action (args=request.args,vars={'_page&#

[web2py:14573] Re: web2py.exe can not start as windows service

2009-01-05 Thread Iceberg
rting as a service is only possible for a source distribution. So I think Fran's problem would be a little easier than mine. :-S Thanks for your concern. Iceberg On Jan5, 10:53pm, Timothy Farrell wrote: > Sorry guys.  I generally only watch the list at work.  Being it a holiday, > I

[web2py:14599] Re: web2py.exe can not start as windows service

2009-01-05 Thread Iceberg
382f8fcb7de0534/b7947df750e2a8de?lnk=gst&q=windows+service#b7947df750e2a8de "pythoncom will register a class, so if you use web2py.exe, it may cannot get the class file and run. . how to make a zipped python exe file into a windows service " Seems that is the proble

[web2py:14608] Re: web2py.exe can not start as windows service

2009-01-05 Thread Iceberg
--- Original Message --- Date:Mon, 5 Jan 2009 20:46:37 -0800 (PST) Subject: [web2py:14607] Re: web2py.exe can not start as windows service --- > I do not know what this means. Meanwhile I have incorporated Tim's > patch into > > http://

[web2py:14703] Re: web2py.exe can not start as windows service

2009-01-07 Thread Iceberg
--- Original Message --- From:mdipierro > On Jan 5, 9:02 pm, Iceberg wrote: > > On Jan6, 5:26am, Fran wrote: > > > it's all working for me now with latest > > > src & your new winservice.py :) > > > Al

[web2py:14715] Re: web2py 1.55 is out

2009-01-08 Thread Iceberg
ons. Besides, it would be nice if the following pattern will also be supported. {{=datetime.date(2009,1,8) # this trailing comment also causes error}} I guess this problem is caused by the new template engine. (Don't get me wrong, 6 times faster is awesome. ^_^) Iceberg --~--~-~--

[web2py:15056] Hierachical menu in T2

2009-01-17 Thread Iceberg
Hi there, T2 is supposed to support hierachical menu. But I am not familiar enough to make it run perfectly. What I did: 1. download T3 package and only use it as a T2 2. In my db.py of my application I do: from applications.t3.modules.t2 import T2 t2=T2(request,response,session,cache,T,db)

[web2py:15057] Recipe: how to define "auto" menus in web2py app

2009-01-17 Thread Iceberg
Hi folks, After some refinement, I use this way to define menus in my default.py # At the beginning of my default.py response.automenu=[ # Such as [('func_name1','menu_name1',absolute_url1), ...] ('tutor0','Tutorial 0',URL(r=request,f='tutor0')), ('tutor1','Tutorial 1',UR

[web2py:15504] db operations seems slow in a web2py on GAE

2009-01-27 Thread Iceberg
umors, such as: http://highscalability.com/google-appengine-second-look But I still can't believe the performance is as bad as what I mentioned above. Did I miss something? Do you guys encounter same problem when playing with GAE? Does your application successfully

[web2py:15593] Re: Patch for missing HTML-helper LEGEND

2009-01-29 Thread Iceberg
Familiar discussion to me because I raised same topic before. :-) Glad to see LEGEND is in, it is not too late for me to quit the habbit of TAG.LEGEND. :-P Seriously speaking, I still suggest to make TAG. more noticeable (e.g. the first one in HTML helper section) in the builtin document as

[web2py:15613] Re: db operations seems slow in a web2py on GAE

2009-01-30 Thread Iceberg
will be added to GQLDB eventually. > > Either way, to prepopulate a db on GAE, you have to do it over a > series of requests, because each request can only be 10 seconds max. > See bulk uploader:http://code.google.com/appengine/articles/bulkload.html > > Robin > > On Jan 2

[web2py:15798] Re: How to rollback a transaction

2009-02-02 Thread Iceberg
Hi Massimo, A further question for this topic. I remember one of the old topic in this forum group mentioned that, in every action we do not need an explicit db.commit() because web2py automatically does it when no exception is raised during the action. So I wonder whether web2py automatically

[web2py:16160] Re: Abusing model files for common functionality

2009-02-10 Thread Iceberg
Thanks for all the meaningful discussion here. I did learn something. When talking about generating the menu, perhaps you will like my trick here. http://groups.google.com/group/web2py/browse_thread/thread/4988b16cb2787b57 You might already notice that, if your application have only one cont

[web2py:16167] Re: cron patch

2009-02-11 Thread Iceberg
Hi gentlemens, web2py 1.56 with Achipa's cron patch is great. I just do a: copy applications/admin/cron applications/myapp/cron and then modify the applications/myapp/cron/crontab, replace the "admin" by "myapp", then the long time puzzle "old sessions" ( see http://groups.google.com/group/web2

[web2py:16497] can web2py_win.zip 's DAL run with mssql?

2009-02-18 Thread Iceberg
kage targets to this world too. Besides, pyodbc claims that it supports "almost any database", and it uses MIT license. Comments are appreciated. Iceberg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "w

[web2py:16656] Can hardcron work without being triggered by a request?

2009-02-21 Thread Iceberg
erved, does not guarantee execution precision". Did I miss something? Thanks in advance. Iceberg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group,

<    1   2   3   4   5   6   7   >