[web2py:23407] Re: 1.63.1 issues.

2009-06-05 Thread annet
Massimo, I updated to 1.63.5 and got the updates from r992, but thats did not solve my first problem: > auth.settings.login_url=URL(r=request,c='authentication',f='login') > auth.settings.login_next=URL(r=request,c='core',f='index') > auth.settings.logout_next=URL(r=request,c='default',f='index

[web2py:23406] Re: web2py perfomance

2009-06-05 Thread Alexey Nezhdanov
Switched to lazy table definitions. Model init time was cut down to 0.046s. Some of excess time is eliminated, some (my guess is 30%) is moved into controller execution. At any rate - this is faster than before. Next step would be full-scale profiling but not yet. Here is excerpt from my SQLSto

[web2py:23405] Re: Best way to handle rich website?

2009-06-05 Thread JohnMc
I have looked at the jpolite for a possible portal. But I notice a odd effect. If you click on a tab to change the view for about 2 seconds the contents seem to 'shake' then lock on. Like the content is trying to sync to a grid. Anybody else notice this? On Jun 5, 9:42 pm, mdipierro wrote: > I d

[web2py:23404] Re: learning python

2009-06-05 Thread Hans Donner
Thanks all. I'm noot looking for a central place to store it all, or for real inmutable constants. For the example given: class PasswordWidget DEFAULT_DISPLAY = 8('*') () would be more than enough and in sql.py there could be things like DAL.FIELDTYPE_STRING = 'string' and in cache

[web2py:23403] Re: learning python

2009-06-05 Thread Yarko Tymciurak
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 configuration items into 'CONSTS' (ok, variables that should not be changed, except in

[web2py:23402] Re: web2py perfomance

2009-06-05 Thread Alexey Nezhdanov
ON Saturday 06 June 2009 00:25:47 mdipierro wrote: > One other trick you can try is replace > > db.define_table('table',SQLField('field'),...) > db.table.field.requires= > > with > > db.define_table('table',SQLfield('field',requires=...),...) > > and so for all the other attributes. That will

[web2py:23401] Re: Translating a line with a link

2009-06-05 Thread suiato
Thanks for quick response, Massimo On 6月6日, 午前11:49, mdipierro wrote: > I see what you are doing but I do not like the fact that this promotes > Tx to something special while that is a name that I made up as an > example. I do not like to introduce new symbols and functions in > web2py. What if

[web2py:23400] Re: Translating a line with a link

2009-06-05 Thread mdipierro
the more I think about this the more I think that just using XML(T ("")) where you need this is better. escape=False would not work because it would return an XML object and not a string. It would not be that explicit and confuse people. Massimo On Jun 5, 9:49 pm, mdipierro wrote: > I see

[web2py:23399] Re: Translating a line with a link

2009-06-05 Thread mdipierro
I see what you are doing but I do not like the fact that this promotes Tx to something special while that is a name that I made up as an example. I do not like to introduce new symbols and functions in web2py. What if instead we make a T(,escape=False)? with escape=True by default? I can im

[web2py:23398] Re: learning python

2009-06-05 Thread mdipierro
I think Hans is more concerned with do-not-repeat-yourself than making those internal strings constant (the solution proposed in the article would only make things slower). I would take a patch trying to collect strings in one place but (myregex.py does this to some extent). Yet there is an advat

[web2py:23397] Re: Best way to handle rich website?

2009-06-05 Thread mdipierro
I do not know if you have had time to look into http://www.web2py.com/jpolite which is a heavily modified version of jpolite adapted to web2py (I am working with the author of jpolite on this). Each web2py action is mapped into a box by the file static/ modules.js. If SQLFORM(...,_class='aja

[web2py:23396] Re: Translating a line with a link

2009-06-05 Thread suiato
I changed the regular expression in gluon/languages.py as below, and "update all languages" now updates the strings in T() and Tx() :-) PY_STRING_LITERAL_RE = r'(?<=[^\w]T)x?\((?P'\ + r"[uU]?[rR]?(?:'''(?:[^']|'{1,2}(?!'))*''')|"\ + r"(?:'(?:[^'\\]|\\.)*')|" + r'(?:"""(?:[^"]|"{1,2}(?!"

[web2py:23395] Delete error on crud

2009-06-05 Thread Tito Garrido
When I try to delete a record on update screen I'm receiving: Traceback (most recent call last): File "D:\Projetos\GAE\web2py\gluon\restricted.py", line 107, in restricted exec ccode in environment File "D:/Projetos/GAE/web2py/applications/store/controllers/manage.py"

[web2py:23394] Re: Translating a line with a link

2009-06-05 Thread suiato
On 6月5日, 午後9:59, mdipierro wrote: > in principle yes. what error do you get? Adding the line Tx=lambda *a: XML(str(T(*a)) to store.py in the model of eStore doesn't cause any errors. In fact, it seems to be working in Shell. After a good sleep, I realize findT() is made to look for T(), not Tx

[web2py:23393] Re: learning python

2009-06-05 Thread JohnMc
Hans, Python does not possess a constant as part of the syntax. So something like CONST is nothing but a variable in uppercase. One could define a hidden class that acts as an immutable once defined as this example shows -- http://code.activestate.com/recipes/65207/ . In Python would in most cas

[web2py:23392] Re: Best way to handle rich website?

2009-06-05 Thread eddie
Fantastic post, Ted. Much appreciated. Eddie On Jun 6, 2:29 am, Ted G wrote: > I think while the thread topic asks about handling "rich sites", the > discussion loosely associates "rich" with "modular", which may be > misleading. > > In a modular design under web2py you may have your sidebar de

[web2py:23391] Re: learning python

2009-06-05 Thread Hans Donner
what is it you do not understand? perhaps I can exaplin it better. Examples of 'strings' - in PasswordWidget (sqlhtml.py) there is the default display for a password, in FORM.accepts this is also re-used - In the top of sql.py, when loading the drivers 'Postgre' is used as a key, while later it l

[web2py:23390] Re: learning python

2009-06-05 Thread mdipierro
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 Jun 5, 3:09 pm, Hans Donner wrote: > could be my upbringing and my fat fingers/reliance on autocompletion, > but I see a lot of repetitive code and strings, eg

[web2py:23389] Re: web2py perfomance

2009-06-05 Thread mdipierro
One other trick you can try is replace db.define_table('table',SQLField('field'),...) db.table.field.requires= with db.define_table('table',SQLfield('field',requires=...),...) and so for all the other attributes. Did you bytecode compile the app? Does it make a difference? Massimo On

[web2py:23388] Re: SQLFORM rendering

2009-06-05 Thread mdipierro
I emailed it to you On Jun 5, 3:01 pm, Hans Donner wrote: > 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:

[web2py:23387] Re: global logging to file

2009-06-05 Thread mdipierro
can you store it into a session? On Jun 5, 2:11 pm, Hans wrote: > The problem I have with my code for generating log files that the part > of the code (see first posting in this thread) which is outside any > function in the controller (because it should be available for all > functions in this

[web2py:23386] learning python

2009-06-05 Thread Hans Donner
could be my upbringing and my fat fingers/reliance on autocompletion, but I see a lot of repetitive code and strings, eg table_field = re.compile('[\w_]+\.[\w_]+') and 'keyname' etc. like the table_field being present in multiple files, why not move them to some shared globals and import from the

[web2py:23385] Re: web2py perfomance

2009-06-05 Thread Alexey Nezhdanov
On Friday 05 June 2009 21:03:20 mdipierro wrote: > Can you tell us more about the setup, os, hardward etc. is mysql on > the same machine? Kubuntu 8.04. Turion64 1.6GHz, 1.6G RAM. MySQL is on the same box. SiS motherboard w/ nForce chipset. Laptop 3 years old (and it was about 1 year old model w

[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 the expanded example i've pr

[web2py:23383] Re: click click clik

2009-06-05 Thread JorgeR
I appreciate Eric having come here in peaceful terms. I *personally* think that Django is more suitable when a CMS is needed. And web2py when and app is needed. Anyways, I think that web2py cannot be criticized by being different from django. Suppose it was similar to django ... then the criti

[web2py:23382] Re: Concerning sqlite3 vs. pysqlite2

2009-06-05 Thread Markus Gritsch
Line 55 of sql.py contains a typo in the string: logging.debug('no sqlite3 or mysqlite2.dbapi2 driver') mysqlite2 -> pysqlite2 Kind regards, Markus On Fri, Jun 5, 2009 at 3:16 PM, mdipierro wrote: > > If no objections I agree. > > On Jun 5, 4:40 am, Markus Gritsch wrote: >> Hi, >> >>

[web2py:23381] Re: click click clik

2009-06-05 Thread weheh
No flame intended with my comments and questions. My questions were sincere and I appreciate the constructive comments about where web2py might be weak in terms of scalability. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:23380] Re: global logging to file

2009-06-05 Thread Hans
The problem I have with my code for generating log files that the part of the code (see first posting in this thread) which is outside any function in the controller (because it should be available for all functions in this controller) is executed every time a function is called. I have not found

[web2py:23379] Re: global logging to file

2009-06-05 Thread Hans
The problem I have with my code for generating log files that the part of the code (see first posting in this thread) which is outside any function in the controller (because it should be available for all functions in this controller) is executed every time a function is called. I have not found

[web2py:23378] Re: problem with non-ascii chars using rss2

2009-06-05 Thread mdipierro
I will look On Jun 5, 1:49 pm, dodobas wrote: > that does not make sense, why would it work with everything else, but > not with rss2? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To

[web2py:23377] Re: SQLFORM rendering

2009-06-05 Thread mdipierro
Can you please update the AlterEgo entry instead? Massimo On Jun 5, 1:05 pm, Hans Donner wrote: > 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 som

[web2py:23376] Re: problem with non-ascii chars using rss2

2009-06-05 Thread dodobas
that does not make sense, why would it work with everything else, but not with rss2? --~--~-~--~~~---~--~~ 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@googlegrou

[web2py:23375] Re: Posts to this group no longer visible.

2009-06-05 Thread DenesL
It seems that only posts from last month and before are searchable. Maybe Google groups are not indexed on the fly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group

[web2py:23374] 1.63.1 issues.

2009-06-05 Thread annet
Massimo, Updating from web2py from 1.61.4 to 1.63.1 caused my application to break in several ways. I set: auth.settings.login_url=URL(r=request,c='authentication',f='login') auth.settings.login_next=URL(r=request,c='core',f='index') auth.settings.logout_next=URL(r=request,c='default',f='index'

[web2py:23373] Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 299: ordinal not in range(128)

2009-06-05 Thread Rui Gomes
Thanks, But i found out the problem im using a old version of MySQLdb and for some reason give me this problem now is updated every thing work fine :D On Fri, Jun 5, 2009 at 3:43 PM, Yarko Tymciurak wrote: > Perhaps this will help: > > http://dev.mysql.com/doc/refman/5.1/en/charset-applications

[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 Hans. > An exa

[web2py:23371] Re: SQLFORM rendering

2009-06-05 Thread DenesL
Nice patch Hans. An example expanding AlterEgo 205 would be great too ;-) DenesL --~--~-~--~~~---~--~~ 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@googlegrou

[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:23369] Re: should login redirect to index function after login?

2009-06-05 Thread annet
Massimo, Thanks, in that case I won't face any problems. Kind regards, Annet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.

[web2py:23368] Re: web2py perfomance

2009-06-05 Thread mdipierro
BTW... I had a Turion64. It is not a very fast machine. On Jun 5, 12:03 pm, mdipierro wrote: > Can you tell us more about the setup, os, hardward etc. is mysql on > the same machine? > How much is the the SQLDB() vs the define_tables? Do you have many > tables? how long? > > One trick is to add

[web2py:23367] Re: web2py perfomance

2009-06-05 Thread mdipierro
Can you tell us more about the setup, os, hardward etc. is mysql on the same machine? How much is the the SQLDB() vs the define_tables? Do you have many tables? how long? One trick is to add is statements in the model so that only those tables needed are defined, depending on request.controller a

[web2py:23366] Re: should login redirect to index function after login?

2009-06-05 Thread mdipierro
I think I only changed the menu.py so that it does not break if you delete the Auth stuff in db.py On Jun 5, 11:45 am, annet wrote: > Massimo, > > On Mac OS X Leopard, your solution works. I noticed that you also > uploaded the welcome app, do I have to change anything in my existing > apps that

[web2py:23365] Re: Heap a little praise

2009-06-05 Thread mdipierro
Yes, many people have, over time. Thanks to all of them This work is still in progress as we move to Sphix On Jun 5, 11:23 am, JohnMc wrote: > Kudos to whomever has been updating doc strings in Web2Py. > > Updated to 1.63.4. I now notice a ? in iPython in many cases > returns a full notation and

[web2py:23364] Re: should login redirect to index function after login?

2009-06-05 Thread annet
Massimo, On Mac OS X Leopard, your solution works. I noticed that you also uploaded the welcome app, do I have to change anything in my existing apps that are based on the previous welcome app? Kind regards, Annet. --~--~-~--~~~---~--~~ You received this message

[web2py:23363] Re: web2py perfomance

2009-06-05 Thread Alexey Nezhdanov
On Friday 05 June 2009 17:07:55 mdipierro wrote: > In a production environment you would be using mysql or postgresql. In > this case you should be using > > SQLDB(...,pool_size=10) > dn.define_table(,migrate=False) > > the connection pooling and migrations off make a big difference. > Perhaps

[web2py:23362] Re: Best way to handle rich website?

2009-06-05 Thread Ted G
I think while the thread topic asks about handling "rich sites", the discussion loosely associates "rich" with "modular", which may be misleading. In a modular design under web2py you may have your sidebar defined in a separate html file that you are incorporating as part of your index html file,

[web2py:23361] Heap a little praise

2009-06-05 Thread JohnMc
Kudos to whomever has been updating doc strings in Web2Py. Updated to 1.63.4. I now notice a ? in iPython in many cases returns a full notation and examples. Great stuff. JohnMc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[web2py:23360] Re: Posts to this group no longer visible.

2009-06-05 Thread JohnMc
Annet, I just did a search and I can see posts back to early 2008. Probably a Google problem. I had problems earlier getting to mail here in the US this morning. On Jun 5, 10:38 am, annet wrote: > In my profile the posts I made to this group after May 27 are no > longer visible. They are counte

[web2py:23359] Re: Posts to this group no longer visible.

2009-06-05 Thread mdipierro
I have no idea. If there is anything I can do or should do, please let me know. On Jun 5, 10:38 am, annet wrote: > In my profile the posts I made to this group after May 27 are no > longer visible. They are counted below the list: 77 in May 10 in June, > however, when I click the 10, I am direct

[web2py:23358] Re: web2py 1.63.3 is out with some bug fixes

2009-06-05 Thread mdipierro
You are right. The changelog must be online. The next version will have it. I promise! Massimo On Jun 5, 10:23 am, rhubarb wrote: > Thanks for replying so promptly. > I second the comment from Fran about keeping the change-log (or > README) handy. > > When MacOS tells me there's a new update to

[web2py:23357] Re: should login redirect to index function after login?

2009-06-05 Thread mdipierro
Uploading a possible solution to trunk. Please give it a try in a minute On Jun 5, 10:53 am, mdipierro wrote: > you have a point. that needs to be fixed. > > On Jun 5, 10:17 am, annet.verm...@gmail.com wrote: > > > Massimo, > > > Login is not the entry point of my applications, however, I wonder

[web2py:23356] Re: should login redirect to index function after login?

2009-06-05 Thread mdipierro
you have a point. that needs to be fixed. On Jun 5, 10:17 am, annet.verm...@gmail.com wrote: > Massimo, > > Login is not the entry point of my applications, however, I wonder > what happens when the user bookmarks the login page. By doing so login > becomes the entry point for that user, how will

[web2py:23355] Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 299: ordinal not in range(128)

2009-06-05 Thread Yarko Tymciurak
Perhaps this will help: http://dev.mysql.com/doc/refman/5.1/en/charset-applications.html ...you might want DEFAULT COLLATE utf8_unicode_ci; instead of utf8_general_ci; On Fri, Jun 5, 2009 at 12:24 AM, NewBeen wrote: > > Hi, > > Its me again, now when I put the code in the production(Linu

[web2py:23354] Posts to this group no longer visible.

2009-06-05 Thread annet
In my profile the posts I made to this group after May 27 are no longer visible. They are counted below the list: 77 in May 10 in June, however, when I click the 10, I am directed to a page displaying a no results message. Googling my own name results in a lists of my post before May 27. Am I the

[web2py:23353] custom form using Auth

2009-06-05 Thread Bill
Hi, I'm attempting to use Auth to create a custom form. Working on piecing together the examples from the wiki and from postings on the web2py Web Framework group. Here's the progress so far: 1. Got the code below to work except for the section marked "#Define" which ends with "#End of Defin

[web2py:23352] Re: web2py 1.63.3 is out with some bug fixes

2009-06-05 Thread rhubarb
Thanks for replying so promptly. I second the comment from Fran about keeping the change-log (or README) handy. When MacOS tells me there's a new update to download, I always click the link to find out what's new. Often it's minor fixes for stuff I never use. In that case I'm not going to interru

[web2py:23351] Re: should login redirect to index function after login?

2009-06-05 Thread annet . vermeer
Massimo, Login is not the entry point of my applications, however, I wonder what happens when the user bookmarks the login page. By doing so login becomes the entry point for that user, how will web2py behave in this case? Kind regards, Annet. --~--~-~--~~~---~--~--

[web2py:23350] Re: SQLFORM rendering

2009-06-05 Thread mdipierro
Uploading to trunk now. Please check it. Thanks Hans. On Jun 4, 2:42 pm, "Elcimar L. Santos" wrote: > Yeah :D > > Thanks! I didn't know I could do it there. > > I just found another way (massimo rocks!): > > http://mdp.cti.depaul.edu/examples/static/epydoc/gluon.sqlhtml.SQLFOR... > > Elcimar Lea

[web2py:23349] Re: _onclick

2009-06-05 Thread annet . vermeer
Massimo, Problem solved. Thanks. Annet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, se

[web2py:23345] Re: click click clik

2009-06-05 Thread JohnMc
weheh, Hmmm. Out of the box to handle something like YouTube? Maybe. Before YouTube was bought out by Google they were a huge MySQL shop. One of the tricks they utilized was the FEDERATED keyword that's not in the DAL. That gave them cross server-DB access. Using executesql might be able to do it

[web2py:23348] Re: multiple choise from collection

2009-06-05 Thread pk
ok thanks, i will try this solution. peter On 5 Jun., 16:33, mdipierro wrote: > If you do a proper many2many you need to create your own interface for > that. > Alternatively you can use tagging > > db.define_table('project',SQLField('name'),SQLField('members','text') > db.define_table('member',

[web2py:23347] Re: global logging to file

2009-06-05 Thread mdipierro
Sorry Hans, I still do not understand the problem. code outside function is executed when a function in the controller is called (whatever the function) code in the function is executed only when that function is called. A call to redirect causes the browser to make another request thus the contr

[web2py:23346] Re: multiple choise from collection

2009-06-05 Thread mdipierro
If you do a proper many2many you need to create your own interface for that. Alternatively you can use tagging db.define_table('project',SQLField('name'),SQLField('members','text') db.define_table('member',SQLField('name')) db.project.members.requires=IS_IN_SET(db,'member.id','%(name) s',multiple

[web2py:23344] multiple choise from collection

2009-06-05 Thread pk
hello, i know i ask very much, but i´m very interested in web2py. ok i have two tables. first = projects and second = members. the user can create projects on the website (projectname, startdate ...) can i create a multiple option box where i can select members from the table members for every pro

[web2py:23343] Re: Insert in Table

2009-06-05 Thread pk
ok thanks for the the very fast help greets On 5 Jun., 15:38, mdipierro wrote: > SQLField('userid', default=auth.user.id if auth.user else 0, > writable=False, readable=False), > > On Jun 5, 8:01 am, pk wrote: > > > Hi together, > > > I´m a beginner of coding web2py and now I have (I think) a l

[web2py:23342] Re: web2py.com not working?

2009-06-05 Thread mdipierro
It is up. I do not have any record of it going down. Could be a network problem (it is hosted at the university) or traffic These days we get 2000 visitors/day and 4requests/day. The server is a virtual machine on my desktop and it is starting to choke. Massimo On Jun 4, 11:52 pm, zendevel

[web2py:23341] web2py.com not working?

2009-06-05 Thread zendevel
I was reading some documentation and all of the sudden the site went down. Any word of when it will be back? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send e

[web2py:23340] Re: Insert in Table

2009-06-05 Thread mdipierro
SQLField('userid', default=auth.user.id if auth.user else 0, writable=False, readable=False), On Jun 5, 8:01 am, pk wrote: > Hi together, > > I´m a beginner of coding web2py and now I have (I think) a little > problem: > After a successfull login the user gets shown a new page calls > menu.html.

[web2py:23334] Re: click click clik

2009-06-05 Thread mdipierro
I think both Eric and weheh are right. On the one side there is no reason you cannot use something like web2py for it (benefit from DAL and templating language and caching) on the other size there are some issue with scalability that have to be resolved outside web2py or any framework (storage and

[web2py:23339] Re: Shell display crippled on expired session

2009-06-05 Thread Markus Gritsch
On Fri, Jun 5, 2009 at 3:20 PM, mdipierro wrote: > > ouch! can you propose a patch? no Markus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2p

[web2py:23338] Re: Shell display crippled on expired session

2009-06-05 Thread mdipierro
ouch! can you propose a patch? On Jun 5, 7:12 am, Markus Gritsch wrote: > Hi, > > when the session expires while the shell is displayed, the next > command in the shell cripples the displayed shell page.  See the > attached screenshot. > > Markus > >  shot.png > 71KViewDownload --~--~-~-

[web2py:23337] Re: _onclick

2009-06-05 Thread mdipierro
form[0][-1][1].append(INPUT (_type='button',_value='Cancel',_onclick="window.location='%s';"%URL (r=request,f='index'))) On Jun 5, 5:58 am, annet wrote: > In my application I have a form which contains a cancel button: > > form[0][-1][1].append(INPUT > (_type='button',_value='Cancel',_onclick="w

[web2py:23336] Re: Concerning sqlite3 vs. pysqlite2

2009-06-05 Thread mdipierro
If no objections I agree. On Jun 5, 4:40 am, Markus Gritsch wrote: > Hi, > > Python 2.5 ships with SQLite.  Since the version of this library > included in Python 2.5 is quite dated now, some users might prefer > installing a more recent version > fromhttp://oss.itsystementwicklung.de/trac/pysq

[web2py:23335] Re: Stray sql_cache_sqlite.py File in Source Distribution

2009-06-05 Thread mdipierro
Yes, it was a mistake. ignore it. On Jun 5, 4:20 am, Markus Gritsch wrote: > Hi, > > I just downloaded the latest source distribution and noticed, that it > contains a file 'sql_cache_sqlite.py' at the top level.  It seems to > serve no purpose and it is also not present in the BZR repository, s

[web2py:23333] Re: global logging to file

2009-06-05 Thread Hans
Correction: redirect() usage is NOT causing the problem. Every call of a controller function also executes 1) general parts of the model (db.py) 2) general parts of the controller (default.py) 3) the requested function in controller In my case every click to an menu function adds another multiple

[web2py:23332] Re: web2py perfomance

2009-06-05 Thread mdipierro
In a production environment you would be using mysql or postgresql. In this case you should be using SQLDB(...,pool_size=10) dn.define_table(,migrate=False) the connection pooling and migrations off make a big difference. Perhaps you can run some tests and quantify this. When using sqlite y

[web2py:23331] Re: problem with non-ascii chars using rss2

2009-06-05 Thread mdipierro
You should do it when pushing to db. it is done automatically when pulling. On Jun 5, 1:38 am, dodobas wrote: > How can i use that when im pulling data from db( changing db encoding > or db backend seems to have no effect)? --~--~-~--~~~---~--~~ You received this

[web2py:23330] Insert in Table

2009-06-05 Thread pk
Hi together, I´m a beginner of coding web2py and now I have (I think) a little problem: After a successfull login the user gets shown a new page calls menu.html. he can there create new projects. Therefore I create a new table: db.define_table('project', SQLField('userid'),

[web2py:23329] Re: Translating a line with a link

2009-06-05 Thread mdipierro
in principle yes. what error do you get? On Jun 4, 10:08 pm, suiato wrote: > On 6月5日, 午前1:47, JorgeR wrote: > > > cool > > > this should go in the wiki under 'tips and tricks' > > Oh, inhttps://mdp.cti.depaul.edu/wiki/? > Actually, it'd be nice to have a topic on translation/i18n/l10n. > > > >

[web2py:23328] Re: RIAs, services and authentication

2009-06-05 Thread Kuba Kucharski
could you show us how to achieve that? example or a link .. thx -- Kuba --~--~-~--~~~---~--~~ 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

[web2py:23327] Re: global logging to file

2009-06-05 Thread Hans
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 example my index is mainly a redirect function, based on settings its for ins

[web2py:23325] Re: Best way to handle rich website?

2009-06-05 Thread eddie
And related to this topic, the scenario described here: http://groups.google.com/group/web2py/browse_thread/thread/2378eef8fbc1a940/89cb05a3369dfa25?lnk=gst&q=response.view#89cb05a3369dfa25 could be used in solving the "rich site" issue, but relies on the applets being available as static html,

[web2py:23324] _onclick

2009-06-05 Thread annet
In my application I have a form which contains a cancel button: form[0][-1][1].append(INPUT (_type='button',_value='Cancel',_onclick="window.location='{{=URL (r=request,f='index')}}';")) When I click the cancel button nothing happens. Which adjustment do I have to make to get this to work prope

[web2py:23323] Re: Best way to handle rich website?

2009-06-05 Thread eddie
I'm just arriving at this point in my first web2py project, and I'm still a bit unclear what the result of this discussion is. I would just like to clarify what is supported in web2py. The sample scenario is this. In view 'default/index.html': * This might be the 'front page' of a site * You in

[web2py:23322] Re: RIAs, services and authentication

2009-06-05 Thread desfrenes
I use a token auth handle at the service level. It has disadvantages (need to check auth on each method, but should be easy with python decoratorsà but at least I can use the same services with no modification, whatever the message format (soap, json, xml, anything...) or the transport layer. On

[web2py:23321] Concerning sqlite3 vs. pysqlite2

2009-06-05 Thread Markus Gritsch
Hi, Python 2.5 ships with SQLite. Since the version of this library included in Python 2.5 is quite dated now, some users might prefer installing a more recent version from http://oss.itsystementwicklung.de/trac/pysqlite/ Unfortunately gluon/sql.py tries to import sqlite3 first, so the manually

[web2py:23320] Stray sql_cache_sqlite.py File in Source Distribution

2009-06-05 Thread Markus Gritsch
Hi, I just downloaded the latest source distribution and noticed, that it contains a file 'sql_cache_sqlite.py' at the top level. It seems to serve no purpose and it is also not present in the BZR repository, so I suppose it slipped into the source package accidentally. I do not think that the

[web2py:23319] Re: click click clik

2009-06-05 Thread Eric Florenzano
On Jun 5, 1:09 am, weheh wrote: > Why wouldn't a web2py serve to handle a website on the order of > youTube? Why couldn't an IBM handle their corporate intranet as well > as their extranet with web2py? Is web2py missing something in > particular? Is it missing something critical that can't be bui

[web2py:23318] Re: click click clik

2009-06-05 Thread weheh
Why wouldn't a web2py serve to handle a website on the order of youTube? Why couldn't an IBM handle their corporate intranet as well as their extranet with web2py? Is web2py missing something in particular? Is it missing something critical that can't be built? For sure, it is the only framework t

[web2py:23317] web2py perfomance

2009-06-05 Thread Alexey Nezhdanov
Hello again. Recently I measured the perfomance of web2py regarding to 'milliseconds per request'. Got some unexpected results. The most slow part of the application is the model. It takes 40-60% of total time. Measurement was done simply by putting import time;print time.time(),'model start' a