[web2py] Re: blocks in template

2010-05-05 Thread Mengu
We were discussing this on the IRC and he has taken action, great! Block support is an important part of templating engines. Thank you both. On 5 Mayıs, 08:11, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: Less that two days ago Thadeus made a request:    

[web2py] Re: blocks in template

2010-05-05 Thread Yarko Tymciurak
On May 5, 12:11 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: Less that two days ago Thadeus made a request:    http://web2py.uservoice.com/forums/42577-general/suggestions/702804-b... for this to be supported in web2py:    

[web2py] Re: blocks in template

2010-05-05 Thread Yarko Tymciurak
right after I wrote this (especially about clases, calling super class methods), perhaps a more useful, and general function than what I just suggested for {{extends}} (that being: just append to parent's block), would be NOT to do that, but rather have a {{super blockname}}, which would be

[web2py] Re: auth_ tables problem

2010-05-05 Thread annet
Thanks for your reply, have you tried:             # defines all needed tables without migration/table files            auth.define_tables(migrate=False) where you configure auth for your app? I didn't now I could set migrate=False on the auth_ tables, this isn't documented anywhere, is it?

[web2py] Re: Dynamic update

2010-05-05 Thread PanosJee
Awesome! Thanx! On 4 Μάϊος, 19:14, mdipierro mdipie...@cs.depaul.edu wrote: db(db.user.id==1).update( **dict(first_name='Jack', title='CEO' ) ) or db.user[1] = dict(first_name='Jack', title='CEO') On May 4, 10:56 am, PanosJee panos...@gmail.com wrote: Hello everyone I hope you are

[web2py] confirmation dialog on delete

2010-05-05 Thread annet
The jQuery code for confirmation on delete connects the onclick event of the checkbox with a confirmation dialog. I would like this confirmation dialog to be triggered by the submit button. Is it possible to re-write the code in web2py_ajax.html:

Re: [web2py] confirmation dialog on delete

2010-05-05 Thread Jason Brower
It would recommend doing your own jquery code for that. Then based on the id of the button you can have it do anything you like. The jquery webpage is good to look at for this information. Best Regards, Jason On Wed, 2010-05-05 at 02:50 -0700, annet wrote: The jQuery code for confirmation on

[web2py] Data table

2010-05-05 Thread Sverre
has someone a data table like here http://www.web2py.com/plugins/default/datatable but with the feature to make links in the id column?

[web2py] Re: Different results in console vs. script

2010-05-05 Thread Matthew
Note that I've renamed my root web2py folder to 'app' as you'll see below. From console: os.getcwd() '/home/matthew/dev/projects/mywebapp/src/app' request.env.web2py_path Print statements from search_test.py: /home/matthew/dev/projects/mywebapp/src/app None On May 5, 12:01 am, mdipierro

[web2py] verify email limitations

2010-05-05 Thread Richard
I would like to send a registration confirmation with: Hi first name, click here to activate your account. here is a HTML link - currently the confirmation emails are sent plain text so embedding links is not possible. and first name would use the auth_user field - currently only key is

[web2py] Re: cant find rel path data from js library

2010-05-05 Thread yamandu
I usually put it on static folder so it can be server trought static controler. On 4 maio, 14:46, MaxDoesPython mslim...@gmail.com wrote: I am trying to integrate a javascript library (slickgrid) and can't seem to figure out where to place the images folder referred to by components of the

[web2py] Re: GAE delete no longer works

2010-05-05 Thread Christophe Plat
Hello again, the above fix breaks delete when items is already a list (such as when deleting a single entity). The correct fix would therefore be: def delete(self): self._db['_lastsql'] = 'DELETE WHERE %s' % self.where (items, tablename, fields) = self._select()

[web2py] Re: auth_ tables problem

2010-05-05 Thread yamandu
I don´t know if understood your problem right but looks like you are using sqlite. If that´s the case I guess it would be better and safer for you to use another relational database such as mysql. I think the problem could be you don´t have a db server. On 4 maio, 13:44, annet

[web2py] Re: Data table

2010-05-05 Thread mr.freeze
You have a few options: SQLTABLE Crud.select - an abstraction over SQLTABLE WebGrid - http://web2pyslices.com/main/slices/take_slice/39 jqGrid plugin - http://web2py.com/plugins/default/jqgrid On May 5, 6:08 am, Sverre sverreodeg...@gmail.com wrote: has someone a data table like here

[web2py] Re: blocks in template

2010-05-05 Thread mdipierro
I am not completely sure I understand. I think you should try what is there now and see if already does what you ask. If not, please provide an example of what you expect and what you get. One issue is that tamplates have to be bytecode compiled. Mixing logic with pure template keywords sometimes

[web2py] Re: Auth only shows a few feilds on the profile page...

2010-05-05 Thread mdipierro
What is the but? I do not understand the problem. On May 4, 8:56 am, Jason Brower encomp...@gmail.com wrote: I am not using any special view for the profile page... This is the relevent stuff in my model... db.define_table('users',         SQLField('nickname', 'string', length=20),        

[web2py] Re: Different results in console vs. script

2010-05-05 Thread mdipierro
I am lost. If you want send me you app and data (confidentially) I will take a look. On May 5, 6:51 am, Matthew matthew.g.nor...@gmail.com wrote: Note that I've renamed my root web2py folder to 'app' as you'll see below. From console: os.getcwd()

[web2py] Re: generating style attribute dinamically

2010-05-05 Thread mdipierro
There are some things you can do better: 1) use triple quotes: stilo1 = style=background-image:url(/init/static/li_dash.gif); 2) store the style, not style='...' stilo1 = background-image:url('/init/static/li_dash.gif'); 3) use helpers stilo1 =

[web2py] Re: GAE delete no longer works

2010-05-05 Thread mdipierro
in trunk. please check. On May 5, 8:48 am, Christophe Plat christophe.p...@gmail.com wrote: Hello again, the above fix breaks delete when items is already a list (such as when deleting a single entity). The correct fix would therefore be:     def delete(self):         self._db['_lastsql']

[web2py] Re: auth_ tables problem

2010-05-05 Thread annet
Hi, I don´t know if understood your problem right but looks like you are using sqlite. I am using PostgreSQL 8.4. If that´s the case I guess it would be better and safer for you to use another relational database such as mysql. I think the problem could be you don´t have a db server.

[web2py] when I do not answer questions

2010-05-05 Thread mdipierro
If I did not answer your questions it is probably because of one of the following reasons: 1) I do not understand it. I hope somebody else does and they will be able to answer it? 2) It has been discussed on the list already. I hope somebody else will be able answer it? 3) I missed it. If you do

[web2py] Re: blocks in template

2010-05-05 Thread Yarko Tymciurak
On May 5, 8:58 am, mdipierro mdipie...@cs.depaul.edu wrote: I am not completely sure I understand. I think you should try what is there now and see if already does what you ask. If not, please provide an example of what you expect and what you get. One issue is that tamplates have to be

[web2py] Re: verify email limitations

2010-05-05 Thread Patrick
On May 5, 8:34 am, Richard richar...@gmail.com wrote: I would like to send a registration confirmation with: Hi first name, click here to activate your account. here is a HTML link - currently the confirmation emails are sent plain text so embedding links is not possible. and first name

Re: [web2py] Re: Caching Advise !

2010-05-05 Thread Thadeus Burgess
If your images are fairly large they are going to be slow no matter what. You probably need two versions, a mini thumbnail version, and then the original. On your main page just display the thumbnails, they will load quite fast, but you can link them to the original. -- Thadeus On Tue, May

Re: [web2py] Re: First web2py app

2010-05-05 Thread Thadeus Burgess
Nice work! -- Thadeus On Tue, May 4, 2010 at 11:02 PM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On May 4, 4:19 pm, ScOut3R mailingl...@modernbiztonsag.org wrote: Here it goes. First of all, I'm not a developer by profession, not even a web developer. You'll notice it on the

Re: [web2py] Re: Different results in console vs. script

2010-05-05 Thread Thadeus Burgess
I am about to post a unittesting module as part of web2py_utils, it takes out all needed configurations for unittesting and makes it dead simple. -- Thadeus On Wed, May 5, 2010 at 9:01 AM, mdipierro mdipie...@cs.depaul.edu wrote: I am lost. If you want send me you app and data

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
{{include}} must stay there for backwards compatibility. Basically, {{include}} will take any line from the child template that is not in a block that is declared in the parent and places it in {{include}} Simply, what gets left over is put into {{include}}. Lets see if I understand you correctly

[web2py] Re: verify email limitations

2010-05-05 Thread annet
Maybe this post: http://groups.google.com/group/web2py/browse_thread/thread/420e0001e3c8949c/32a262d1c39cdb02?lnk=gstq=Mar+24#32a262d1c39cdb02 Annet.

[web2py] Re: Different results in console vs. script

2010-05-05 Thread mdipierro
We should identify a subset of web2py_utils that belongs to web2py itself. Any unittest util I will be happy to include. On May 5, 10:59 am, Thadeus Burgess thade...@thadeusb.com wrote: I am about to post a unittesting module as part of web2py_utils, it takes out all needed configurations for

Re: [web2py] Re: Different results in console vs. script

2010-05-05 Thread Jonathan Lundell
On May 5, 2010, at 8:59 AM, Thadeus Burgess wrote: I am about to post a unittesting module as part of web2py_utils, it takes out all needed configurations for unittesting and makes it dead simple. Looking forward to it. Consider adding support for coverage; it's pretty easy to call.

Re: [web2py] Re: Different results in console vs. script

2010-05-05 Thread Thadeus Burgess
It supports nosetests which includes a coverage plugin. I will look into adding the option stand-alone so you do not need nosetests. The problem is that there is no way to determine how much coverage you have in a web2py app. It will include the coverage of gluon + all apps, which is not what you

[web2py] Erro in conditional IS_IN_DB() validator

2010-05-05 Thread Leandro - ProfessionalIT
Friends, In my app running in GAE I'm receiving a error message when display/ create CRUD Create form. In db.py: db.define_table('conta_corrente', Field('conta_corrente_pai','reference conta_corrente', label=T('Conta Corrente Pai')), Field('descricao','string', length=255,

[web2py] Re: Erro in conditional IS_IN_DB() validator

2010-05-05 Thread Leandro - ProfessionalIT
Friends, I tried these two solutions: http://groups.google.com/group/web2py/browse_thread/thread/2f7465d678f24949/eaa0a076fcbded09?lnk=gstq=conditional+is_in_db#eaa0a076fcbded09

[web2py] Re: KeyError using T()

2010-05-05 Thread Mariano Reingart
Advice: Using translated strings as keys is a very bad idea (sorry, my fault). As soon as other language is used, dictionaries and lists are broken anyway (some values stored translated, some other stored untranslated...) I think it is better to allways use untranslated strings internally (in

[web2py] Re: KeyError using T()

2010-05-05 Thread mdipierro
+1 On May 5, 12:29 pm, Mariano Reingart reing...@gmail.com wrote: Advice: Using translated strings as keys is a very bad idea (sorry, my fault). As soon as other language is used, dictionaries and lists are broken anyway (some values stored translated, some other stored untranslated...)

[web2py] email form into database table.

2010-05-05 Thread annet
In an application I have forms which on submit are mailed to my mail box. After verification I manually insert the form data into their respective tables, e.g. for an application form into the tables: company, address, nfa, and contact. Since this is a rather time consuming task I thought of

[web2py] web2py Mail tool - unwanted encoding of 'to' header

2010-05-05 Thread David Zejda
Hi, headers of my mails are being encoded to utf-8, which causes troubles with delivery. e.g. 'dvid[at]atlas.cz' (where [at] is '@') is being encoded as =?utf-8?q?dvid=40atlas=2Ecz?= processed by mailserver as: =?utf-8?q?dvid=40atlas=2ec...@crfreenet.org after decoding:

[web2py] Re: email form into database table.

2010-05-05 Thread mdipierro
You can insert them and have a flag (Field) called appreoved which default to false. Than you can send yourself an email with a link to a page so that by just clicking on the link you approve it. On May 5, 1:04 pm, annet annet.verm...@gmail.com wrote: In an application I have forms which on

[web2py] Re: web2py Mail tool - unwanted encoding of 'to' header

2010-05-05 Thread mdipierro
I guess we should check is the address contains non-ascii chars, and use ore of the other depedning on the result. On May 5, 1:08 pm, David Zejda d...@atlas.cz wrote: Hi, headers of my mails are being encoded to utf-8, which causes troubles with delivery. e.g. 'dvid[at]atlas.cz' (where [at]

Re: [web2py] Re: Different results in console vs. script

2010-05-05 Thread Jonathan Lundell
On May 5, 2010, at 9:13 AM, Thadeus Burgess wrote: It supports nosetests which includes a coverage plugin. I will look into adding the option stand-alone so you do not need nosetests. Nosetests works for me just fine; in fact it's preferable. The problem is that there is no way to

[web2py] Re: Previous location

2010-05-05 Thread Chris
How would you get the current url location? I've tried to build the current url using request.env.http_host + request.env.path_info, but it doesn't take into account routes.py. For example using that method returns 127.0.0.1:8000/init/default/ contact, but I want it to return

[web2py] Re: global name 'db' is not recognize in a module

2010-05-05 Thread cjrh
On May 4, 1:26 pm, canna c.ne...@gmail.com wrote: so how would you share functions between controllers easily? without passing global objects to the functions all the time? Functions in a module should really only have access to identifiers and namespaces within that module; hence passing db as

Re: [web2py] Re: Previous location

2010-05-05 Thread Jonathan Lundell
On May 5, 2010, at 12:16 PM, Chris wrote: How would you get the current url location? Generally speaking, you want to use URL(r=request, args=request.args, vars=request.vars), or something like that (I may not have all the spelling right). That will not include the host part of the URL,

[web2py] error in import pyserial

2010-05-05 Thread frankz
hi all, I want to import pyserial package. however, got an import error. I tried a really simple module and it imports just fine. I am not sure which problem is it. thanks for help! Controller === def start(): import sys path = C:\\Documents and Settings\\frank.zhu\\My Documents\

[web2py] Re: Previous location

2010-05-05 Thread Chris
That works. Thank you On May 5, 3:27 pm, Jonathan Lundell jlund...@pobox.com wrote: On May 5, 2010, at 12:16 PM, Chris wrote: How would you get thecurrenturllocation? Generally speaking, you want to use URL(r=request, args=request.args, vars=request.vars), or something like that (I may

[web2py] Re: First web2py app

2010-05-05 Thread ScOut3R
On May 5, 6:02 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On May 4, 4:19 pm, ScOut3R mailingl...@modernbiztonsag.org wrote: Here it goes. First of all, I'm not a developer by profession, not even a web developer. You'll notice it on the design. By the way, I like the default

[web2py] Re: First web2py app

2010-05-05 Thread ScOut3R
Thank You! Feel free to use it if You need it! Best regards, Mate On May 5, 5:58 pm, Thadeus Burgess thade...@thadeusb.com wrote: Nice work! -- Thadeus On Tue, May 4, 2010 at 11:02 PM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On May 4, 4:19 pm, ScOut3R

[web2py] Re: Caching Advise !

2010-05-05 Thread Yannick
@ Massimo, Thanks I was still using cherryPy webServer... But I'll try to install Apache on my environment and give it a try... When I look at your suggestion you king of assume that all the picture will be in the same directory Uploads... Each user will have his own Sub-directory of pictures

[web2py] Deployment Recipes Page 281

2010-05-05 Thread Yannick
Hello mate, Sorry to bug you with that...it may be an offline question... Maybe this is pretty easy but i was wondering the book give an example of how to deploy web2py, Apache on Linux and so on... I was wondering if there is an installation guide for macOS deployment as well ??? I tried to

[web2py] Re: error in import pyserial

2010-05-05 Thread mdipierro
You may need mark hammond win32 extensions On May 5, 2:29 pm, frankz frank.zhu.min...@gmail.com wrote: hi all, I want to import pyserial  package. however, got an import error.  I tried a really simple module and it imports just fine. I am not sure which problem is it. thanks for help!

[web2py] Re: Erro in conditional IS_IN_DB() validator

2010-05-05 Thread Leandro - ProfessionalIT
Friends, Another informationlocally with SQLite works perfectly, but in the GAE these errors happening. Any Idea ?

[web2py] pyohio

2010-05-05 Thread mdipierro
http://mail.cse.ohio-state.edu/pipermail/opensource/2010-May/001799.html I cannot go so I am not submitting a proposal but if you have the time and want to propose a web2py talk, you have all my support. Massimo

Re: [web2py] Deployment Recipes Page 281

2010-05-05 Thread Thadeus Burgess
The apt with super cow powers on a Mac! (eyes grow big in astonishment!) BLASPHEMY. -- Thadeus On Wed, May 5, 2010 at 2:56 PM, Yannick ytchatch...@gmail.com wrote: Hello mate, Sorry to bug you with that...it may be an offline question... Maybe this is pretty easy but i was wondering

[web2py] Re: Erro in conditional IS_IN_DB() validator

2010-05-05 Thread howesc
Hi, I don't see where the orderby is being added - based on the traceback it looks like from a validator, but i learned that on GAE orderby can't be a string. i have some of my own forms for viewing and editing data, and they convert orderby so it works on GAE: @auth.requires_login() def

[web2py] Re: web2py Mail tool - unwanted encoding of 'to' header

2010-05-05 Thread David Zejda
Yes, I agree, it seems as a good solution :) On May 5, 8:24 pm, mdipierro mdipie...@cs.depaul.edu wrote: I guess we should check is the address contains non-ascii chars, and use ore of the other depedning on the result.

[web2py] Re: web2py Mail tool - unwanted encoding of 'to' header

2010-05-05 Thread mdipierro
can you please check if the solution in trunk is ok? search for encode_header in gluon/tools.py Massimo On May 5, 4:01 pm, David Zejda d...@atlas.cz wrote: Yes, I agree, it seems as a good solution :) On May 5, 8:24 pm, mdipierro mdipie...@cs.depaul.edu wrote: I guess we should check is

[web2py] Re: web2py Mail tool - unwanted encoding of 'to' header

2010-05-05 Thread mdipierro
Can you check the solution in trunk? search for escape_header in gluon/ tools.py On May 5, 4:01 pm, David Zejda d...@atlas.cz wrote: Yes, I agree, it seems as a good solution :) On May 5, 8:24 pm, mdipierro mdipie...@cs.depaul.edu wrote: I guess we should check is the address contains

[web2py] to Tim Farrell

2010-05-05 Thread elffikk
hi, this is not related to web2py, just to rocket I just got trac running with Rocket. Performance is great! But one thing that I need is authentication using at least basic auth, since trac is relying on web server authentication anyone can help with that? seems that cherrypy does it and

Re: [web2py] Re: Different results in console vs. script

2010-05-05 Thread Thadeus Burgess
OK. Thank you for the idea. You will be happy :) -- Thadeus On Wed, May 5, 2010 at 2:00 PM, Jonathan Lundell jlund...@pobox.com wrote: On May 5, 2010, at 9:13 AM, Thadeus Burgess wrote: It supports nosetests which includes a coverage plugin. I will look into adding the option stand-alone

[web2py] Re: verify email limitations

2010-05-05 Thread Richard
I can just override register? - awesome! On May 6, 2:03 am, annet annet.verm...@gmail.com wrote: Maybe this post: http://groups.google.com/group/web2py/browse_thread/thread/420e0001e3... Annet.

Re: [web2py] Re: error in import pyserial

2010-05-05 Thread Praneeth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/06/2010 01:35 AM, mdipierro wrote: You may need mark hammond win32 extensions Further I can confirm that pyserial works in conjugation with web2py (Latest trunk included). - -- Praneeth On May 5, 2:29 pm, frankz frank.zhu.min...@gmail.com

[web2py] Re: Web2py Utilities

2010-05-05 Thread Matthew
This is excellent! I know that the documentation is in its early stages, but are there any examples you can point to where this has been used? On Apr 29, 10:15 pm, muybay yabyum...@gmail.com wrote: Fantastic contribution Thadeus, I hope to contribute back a fraction of what you have already

[web2py] Re: blocks in template

2010-05-05 Thread Yarko Tymciurak
On May 5, 10:50 am, Thadeus Burgess thade...@thadeusb.com wrote: {{include}} must stay there for backwards compatibility. --- yes, it can stay for compatibility; no problem. I just say I think it is useless, and should be deprecated. If you like, think of it this way: if you have a class,

[web2py] Re: KeyError using T()

2010-05-05 Thread Yarko Tymciurak
+1 On May 5, 12:39 pm, mdipierro mdipie...@cs.depaul.edu wrote: +1 On May 5, 12:29 pm, Mariano Reingart reing...@gmail.com wrote: Advice: Using translated strings as keys is a very bad idea (sorry, my fault). As soon as other language is used, dictionaries and lists are broken

[web2py] Re: global name 'db' is not recognize in a module

2010-05-05 Thread Yarko Tymciurak
you might want to look up some of the materials presented as arguments under: design by responsibility, and David Parnas original writings on cohesion and coupling (i.e. his 1972 paper) -- I think Wikipedia entry on him gives a fairly good, generic overview w/ links. For design by

[web2py] Re: First web2py app

2010-05-05 Thread Yarko Tymciurak
On May 5, 2:46 pm, ScOut3R mailingl...@modernbiztonsag.org wrote: On May 5, 6:02 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On May 4, 4:19 pm, ScOut3R mailingl...@modernbiztonsag.org wrote: Here it goes. First of all, I'm not a developer by profession, not even a web

[web2py] Re: Deployment Recipes Page 281

2010-05-05 Thread Yannick
Do you have the installation guide for Mac ? Thanks On May 5, 4:35 pm, Thadeus Burgess thade...@thadeusb.com wrote: The apt with super cow powers on a Mac! (eyes grow big in astonishment!) BLASPHEMY. -- Thadeus On Wed, May 5, 2010 at 2:56 PM, Yannick ytchatch...@gmail.com wrote:

[web2py] Re: Building compiled version of web2py app

2010-05-05 Thread Yarko Tymciurak
On May 4, 9:24 pm, mdipierro mdipie...@cs.depaul.edu wrote: Just take the web2py binary distribution. Unzip, start it, upload your app via admin (as init), stop web2py. Copy web2py.app on the USB drive and you are done. Just want to report on this: --- Indeed, this worked well (but - there

Re: [web2py] Re: Web2py Utilities

2010-05-05 Thread Thadeus Burgess
http://code.google.com/p/blogitizor/ -- Thadeus On Wed, May 5, 2010 at 6:48 PM, Matthew matthew.g.nor...@gmail.com wrote: s is excellent! I know that the documentation is in its early stages, but are there any examples you can point to where this has been us

[web2py] Re: Building compiled version of web2py app

2010-05-05 Thread mdipierro
When you start it the first time, user the password web2py (document somewhere that this they password they should use). copy options_std.py into options.py and set options so that it starts without the widget. I have never tried this so you may have to play with it a little bit. You can also

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
Right. As much as I would like the functionality... This cannot be done as the system stands. Child templates know nothing of their parent, therefore they are unable to request anything from the parent template. The way that you effectively override a block is by effort of the parent looking at

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
It might be possible for the parent to look into its children, and analyze the child blocks, and if a block in the child contains a {{super me}} it can then take its own value and replace it into the {{super me}}. -- Thadeus On Wed, May 5, 2010 at 9:56 PM, Thadeus Burgess

[web2py] Re: blocks in template

2010-05-05 Thread mdipierro
Before you go and implement this can you assess if this will affect the speed of template processing? On May 5, 9:57 pm, Thadeus Burgess thade...@thadeusb.com wrote: It might be possible for the parent to look into its children, and analyze the child blocks, and if a block in the child contains

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
I can't really say, we need some tests to analyze the effects of this. I am thinking of a way that might not include any extra overhead at all. -- Thadeus On Wed, May 5, 2010 at 10:02 PM, mdipierro mdipie...@cs.depaul.edu wrote: Before you go and implement this can you assess if this will

Re: [web2py] error in import pyserial

2010-05-05 Thread Jason Brower
Sounds like something called wintypes is missing. See if you can install that. Jason - Original message - hi all, I want to import pyserial  package. however, got an import error.  I tried a really simple module and it imports just fine. I am not sure which problem is it. thanks for

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
This implementation will not work recursively. You will be able to call {{super name}}, however it will only be able to include blocks that were declared in its immediate parent, it cannot for instance, include a blocknode from a grandparent or older. Meaning, if you declare {{block title}} in

[web2py] Re: blocks in template

2010-05-05 Thread Yarko Tymciurak
On May 5, 9:56 pm, Thadeus Burgess thade...@thadeusb.com wrote: Right. As much as I would like the functionality... This cannot be done as the system stands. Child templates know nothing of their parent, therefore they are unable to request anything from the parent template. The way that

[web2py] Re: blocks in template

2010-05-05 Thread Yarko Tymciurak
On May 5, 10:02 pm, mdipierro mdipie...@cs.depaul.edu wrote: Before you go and implement this can you assess if this will affect the speed of template processing? Speed is the _last_ thing to think about / address in implemenation, _not_ the first Anyway, this should not at all affect

[web2py] Re: blocks in template

2010-05-05 Thread Yarko Tymciurak
On May 5, 10:14 pm, Thadeus Burgess thade...@thadeusb.com wrote: I can't really say, we need some tests to analyze the effects of this. I am thinking of a way that might not include any extra overhead at all. Yep - then you are on the right track; I predict it will be no worse, or possibly

[web2py] Re: blocks in template

2010-05-05 Thread Yarko Tymciurak
On May 5, 10:28 pm, Thadeus Burgess thade...@thadeusb.com wrote: This implementation will not work recursively. You will be able to call {{super name}}, however it will only be able to include blocks that were declared in its immediate parent, it cannot for instance, include a blocknode from a

[web2py] Re: blocks in template

2010-05-05 Thread Yarko Tymciurak
I've said I think a lot of things will get easier, I think I see a fundamental (structure of responsibility) problem, and believe solving it will generate beneficial impact But this is experimentation, just a concept. Lets not worry too much about a realease, performance - it might not be

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
Yarko, I am done. No overhead, just an extra dictionary with pointers in memory. Yes you can have nested blocks. -- Thadeus On Wed, May 5, 2010 at 10:43 PM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: I've said I think a lot of things will get easier, I think I see a fundamental

[web2py] Re: blocks in template

2010-05-05 Thread Yarko Tymciurak
On May 5, 10:45 pm, Thadeus Burgess thade...@thadeusb.com wrote: Yarko, I am done. No overhead, just an extra dictionary with pointers in memory. W-w-w-w-wah! Want to work on some contracts with me? ;-) (Thanks, Thadeus) I'll beat on it some when it's checked in. Yes you can have

[web2py] Re: blocks in template

2010-05-05 Thread mdipierro
wow. what else can I say. wow. On May 5, 10:45 pm, Thadeus Burgess thade...@thadeusb.com wrote: Yarko, I am done. No overhead, just an extra dictionary with pointers in memory. Yes you can have nested blocks. -- Thadeus On Wed, May 5, 2010 at 10:43 PM, Yarko Tymciurak

[web2py] session.flash after registration (2)

2010-05-05 Thread Richard
(there was an earlier thread about this but is old now so can't reply: http://groups.google.com/group/web2py/browse_thread/thread/e8a948848ef85c72) On registration a verification email is sent but nothing is flashed to user. (Flash is working for other operations.) I tried adding:

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
Ok I had to to end up using a couple of lists instead of a dict. So the following is what you are asking for? # layout.html h1{{block title}} Hello World {{end}}/h1 {{include}}

[web2py] Invalid boundary in multipart form?

2010-05-05 Thread vince
i am trying to implement the html5 multiple file upload with progress http://webreflection.blogspot.com/2009/03/safari-4-multiple-upload-with-progress.html to web2py, it comes with example on php. but i run into some parsing error from python's cgi library. is it possible to turn off auto

[web2py] Re: session.flash after registration (2)

2010-05-05 Thread Richard
aha! auth was redirecting it again so needed: auth.settings.register_next = URL(r=request, c='default', f='user/ login') On May 6, 3:22 pm, Richard richar...@gmail.com wrote: (there was an earlier thread about this but is old now so can't