[web2py:26238] Re: innerHTML about javascript

2009-07-10 Thread 张峥
in the version 1.64.3, I rivise the function: function ajax(u,s,t) { var query=""; for(i=0; i0) query=query+"&"; query=query+encodeURIComponent(s[i])+"="+encodeURIComponent(document.getElementById(s[i]).value); } jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) { document.ge

[web2py:26237] Re: auth registration nit

2009-07-10 Thread Yarko Tymciurak
On Fri, Jul 10, 2009 at 9:41 PM, Jonathan Lundell wrote: > On Jul 10, 2009, at 7:22 PM, Yarko Tymciurak wrote: > > Hold on - > > getting away from the code / implementation for a second - what do you want > to happen from the person's end: > > requires_login => login() > > login() -> fail retry l

[web2py:26236] Re: auth registration nit

2009-07-10 Thread Jonathan Lundell
On Jul 10, 2009, at 7:22 PM, Yarko Tymciurak wrote: > Hold on - > > getting away from the code / implementation for a second - what do > you want to happen from the person's end: > > requires_login => login() > > login() -> fail retry login() (which should have a link for > registration); >

[web2py:26235] Re: auth registration nit

2009-07-10 Thread Yarko Tymciurak
Hold on - getting away from the code / implementation for a second - what do you want to happen from the person's end: requires_login => login() login() -> fail retry login() (which should have a link for registration); -> fail(limit) -> login_failed() -> succeed -> login_next

[web2py:26234] Re: task forces

2009-07-10 Thread Yarko Tymciurak
SO I don't think we should have a signup sheet I think it should be more virtual-open spaces style: a regular time IRC, and whoever shows up takes on a task... The real "work" will be syncing everyone up to the same version code, and working and re-syncing every 15 minutes (I would like to d

[web2py:26233] Re: auth registration nit

2009-07-10 Thread mdipierro
what about this? auth.settings.registration_onaccept=lambda form: auth.is_logged_in() or redirect(URL(r=request,f='login')) On Jul 10, 7:51 pm, Jonathan Lundell wrote: > On Jul 10, 2009, at 5:34 PM, mdipierro wrote: > > > I do not like the idea of a paremeter dependent on another parameter. >

[web2py:26232] Re: auth.messages.verify_email

2009-07-10 Thread mdipierro
No, web2py cannot determine it. Massimo On Jul 10, 8:04 pm, Jonathan Lundell wrote: > Is there a standard way to get the current server name for the   > verification string? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:26231] auth.messages.verify_email

2009-07-10 Thread Jonathan Lundell
Is there a standard way to get the current server name for the verification string? --~--~-~--~~~---~--~~ 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@googlegr

[web2py:26230] Re: auth registration nit

2009-07-10 Thread Jonathan Lundell
On Jul 10, 2009, at 5:34 PM, mdipierro wrote: > I do not like the idea of a paremeter dependent on another parameter. > What do other people think? > I think people should propably override this variable anyway. The problem is that there's no way to override the variable(s) to get the desired

[web2py:26229] Re: Recursive vs Iterative Algorithm

2009-07-10 Thread eric cs
No problem, I am sorry about that. and thanks everyone for the info, I'll take it there, very interesting stuff. Thanks. On Jul 10, 8:07 pm, mdipierro wrote: > Eric, > > I am not sure this is the place for this type of discussions. I would > recommend this mailing list instead. > >    http://mai

[web2py:26228] Re: auth registration nit

2009-07-10 Thread mdipierro
I do not like the idea of a paremeter dependent on another parameter. What do other people think? I think people should propably override this variable anyway. Massimo On Jul 10, 7:10 pm, Jonathan Lundell wrote: > On Jul 9, 2009, at 3:05 PM, mdipierro wrote: > > > > > You are right. Uploading y

[web2py:26227] Re: auth registration nit

2009-07-10 Thread Jonathan Lundell
On Jul 9, 2009, at 3:05 PM, mdipierro wrote: > > You are right. Uploading your fix to trunk. Thanks. There's a remaining problem, I think. The current behavior (after this patch) is to log in after registration and go to index. The problem is that (and I think that Fran brought this up), a

[web2py:26226] Re: Recursive vs Iterative Algorithm

2009-07-10 Thread mdipierro
Eric, I am not sure this is the place for this type of discussions. I would recommend this mailing list instead. http://mail.python.org/mailman/listinfo/tutor Of course your questions are welcome here but there you will find more people interested in general python programming. Here users t

[web2py:26225] Re: Recursive vs Iterative Algorithm

2009-07-10 Thread eric cs
COOL...can you post some examples explaining what it does line by line? what about an example of: Concurrent programming encompasses the programming languages and algorithms used to implement concurrent systems. Concurrent programming is usually considered to be more general than parallel program

[web2py:26224] Re: task forces

2009-07-10 Thread mdipierro
I agree but I want to be a contributor not the coordinator or project owner. Massimo On Jul 10, 6:20 pm, viniciusban wrote: > On Jul 10, 5:49 pm, Yarko Tymciurak wrote: > > > Those are bigger, more ambitious projects. > > > We could start with something shorter, just to work out the task force

[web2py:26223] Re: task forces

2009-07-10 Thread viniciusban
On Jul 10, 5:49 pm, Yarko Tymciurak wrote: > Those are bigger, more ambitious projects. > > We could start with something shorter, just to work out the task force > processes Yarko, I agree with you. > How does this sound?   A simpler job to work out the basics of the working > process, f

[web2py:26222] Re: Recursive vs Iterative Algorithm

2009-07-10 Thread rb
A recursive "loop" is effected by using a function (let's call it "myFunc") which has two return points, one which calls itself and digs deeper (eg "return myFunc(some, modified, args)") and the other which unwinds the digging and returns (eg. "return (value)"). Thus if calling myFunc many times

[web2py:26221] Re: amf3

2009-07-10 Thread mdipierro
Flash/Flex interface On Jul 10, 8:12 pm, Jason Brower wrote: > What is this for? > > On Fri, 2009-07-10 at 14:21 -0700, mdipierro wrote: > > amfrpc3 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framew

[web2py:26220] Re: sending HTML emails

2009-07-10 Thread mdipierro
import smtplib server = smtplib.SMTP(host, port) server.ehlo() server.starttls() server.ehlo() server.login(username, password) server.sendmail(sender, to, msg) server.quit() look into the docs for datils. Mind that the docs say .ehlo and .helo are the same. They are not. The latter does not work

[web2py:26219] Re: sending HTML emails

2009-07-10 Thread mdipierro
yes. On Jul 10, 4:46 pm, kralin wrote: > ok, so smtplib should work instead of Mail? > > On 10 Lug, 23:39, mdipierro wrote: > > > Here is the problem. The current implementation of Mail is designed to > > be cross platform, i.e. work on GAE. It has the same API as GAE. > > Unless we figure out

[web2py:26218] Re: Check out your web2py app in multiple environments

2009-07-10 Thread JohnMc
Yarko, Isn't that the way everyone does it? :) I have VB3 running on x64 Ubuntu XFCE. Good stuff. Wish I have a V/VT capable processor to try the guest-in-guest feature. On Jul 10, 4:34 pm, Yarko wrote: > ugh - can't even spell my own blog address right: > > http://2linices.blogspot.com/ > > O

[web2py:26217] Re: Multithreaded and Multicore Programming/Solutions

2009-07-10 Thread AchipA
Whether it's faster depends on the particular problem (in some cases it's faster, in some it isn't), but it's definitely not more scalable (have you heard of Google App Engine ? You don't get much more scalable than that and it's running a version of Python). The GIL plays no role in web applicat

[web2py:26216] Re: amf3

2009-07-10 Thread Jason Brower
What is this for? On Fri, 2009-07-10 at 14:21 -0700, mdipierro wrote: > amfrpc3 --~--~-~--~~~---~--~~ 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@googlegroup

[web2py:26215] Re: javascript function call from controller

2009-07-10 Thread JohnMc
Julius, Javascript has a built in restrictions at two levels. 1) Do not permit client side file access. 2) Accept only data from the originating DOM source. Both are designed for security protections. Using the ajax call as Massimo defined it permits the state in the current form to change so th

[web2py:26214] Re: Recursive vs Iterative Algorithm

2009-07-10 Thread eric cs
ahaa, yes I on the deep end, but I like to know the diferent way of thinking/programming. and if it makes fast better yet...heheh On Jul 10, 5:49 pm, Yarko Tymciurak wrote: > On Fri, Jul 10, 2009 at 4:38 PM, eric cs wrote: > > > Yarko, I hope you are not talking about Python vs Ruby, I don't wa

[web2py:26213] Re: Recursive vs Iterative Algorithm

2009-07-10 Thread Yarko Tymciurak
On Fri, Jul 10, 2009 at 4:38 PM, eric cs wrote: > > Yarko, I hope you are not talking about Python vs Ruby, I don't wanna > know that > just the Recursive vs Iterative Algorithm tecnics to speed you code > up!! > :-) No, I meant the "rabbit hole" of getting caught up in performance numbers! ;-)

[web2py:26212] Re: sending HTML emails

2009-07-10 Thread kralin
ok, so smtplib should work instead of Mail? On 10 Lug, 23:39, mdipierro wrote: > Here is the problem. The current implementation of Mail is designed to > be cross platform, i.e. work on GAE. It has the same API as GAE. > Unless we figure out how to send MIME email messages on GAE, if you > want

[web2py:26211] Re: Multithreaded and Multicore Programming/Solutions

2009-07-10 Thread eric cs
Does anyone know why(technical reason), they say Php scale better and it is faster. What does it use to scale better for web apps. On Jul 10, 5:04 pm, mdipierro wrote: > There is no real problem with python and multi threading (web2py > includes a multithreaded server) except for one issue with

[web2py:26210] Re: sending HTML emails

2009-07-10 Thread mdipierro
Here is the problem. The current implementation of Mail is designed to be cross platform, i.e. work on GAE. It has the same API as GAE. Unless we figure out how to send MIME email messages on GAE, if you want to send MIME you should not use Mail native SMTP. On Jul 10, 4:31 pm, kralin wrote: > I

[web2py:26209] Re: Recursive vs Iterative Algorithm

2009-07-10 Thread eric cs
Yarko, I hope you are not talking about Python vs Ruby, I don't wanna know that just the Recursive vs Iterative Algorithm tecnics to speed you code up!! On Jul 10, 5:27 pm, Yarko Tymciurak wrote: > ugh!  don't go down the rabbit hole! > > > > On Fri, Jul 10, 2009 at 4:19 PM, eric cs wrote: >

[web2py:26208] Re: Check out your web2py app in multiple environments

2009-07-10 Thread Yarko
ugh - can't even spell my own blog address right: http://2linices.blogspot.com/ On Jul 10, 4:05 pm, Yarko Tymciurak wrote: > I just got done installing 5 new browsers in my new windows environmenet > all running under Linux. > > If you've got a OS/X, Linux, Solaris, Windows, BSD host a

[web2py:26207] Re: sending HTML emails

2009-07-10 Thread kralin
I've also tried to use MIME to encode both the html, and an alternative text/html message, however all the encoding goes after the double newline and is not interpreted as an header. so Yarko are you saying that by doing send(message='hello message') instead of send(to=['m...@me.com'], message=

[web2py:26206] Re: task forces

2009-07-10 Thread Yarko Tymciurak
I've just _just_ started running the flex for Linux to see if I can make it thru Eckel's "First Steps in Flex" book, if the Linux alpha is up to the task... On Fri, Jul 10, 2009 at 4:22 PM, eric cs wrote: > > Flex and Flash front end kick ass. > > On Jul 10, 5:14 pm, mdipierro wrote: > > magne

[web2py:26205] Re: Recursive vs Iterative Algorithm

2009-07-10 Thread Yarko Tymciurak
ugh! don't go down the rabbit hole! On Fri, Jul 10, 2009 at 4:19 PM, eric cs wrote: > > They compare Ruby 1.9 with Python, than a Python guy change the > algorithm from being recursive to being iterative and runs way > faster...wow. > > Can you guys explain those ways of programming with simple

[web2py:26204] Re: task forces

2009-07-10 Thread mdipierro
I meant the store is a special class of a CMS so there should be some overlap. On Jul 10, 4:22 pm, Yarko Tymciurak wrote: > On Fri, Jul 10, 2009 at 4:14 PM, mdipierro wrote: > > > I think it would be a good exercise to start from there. I do know if > > sachmo has this but we it would be nice t

[web2py:26203] Re: task forces

2009-07-10 Thread eric cs
Flex and Flash front end kick ass. On Jul 10, 5:14 pm, mdipierro wrote: > magneto is nice. > > On Jul 10, 3:56 pm, eric cs wrote: > > > W > > We have to beat them...hehehe > > Rails for Spree and Magento for Php/Zend. > > At least Magento for inspiration. > > > On Jul 10, 4:49 pm, Yarko Tymciur

[web2py:26202] Re: task forces

2009-07-10 Thread Yarko Tymciurak
On Fri, Jul 10, 2009 at 4:14 PM, mdipierro wrote: > > I think it would be a good exercise to start from there. I do know if > sachmo has this but we it would be nice to a web service layer so that > users can develop frontends in html (the default) or Flex (via > standard APIs provided by the sys

[web2py:26201] amf3

2009-07-10 Thread mdipierro
the web2py in trunk now works with AMF3. Use the decorator @service.amfrpc3('yournamespace') def yourfunction(): def call(): return service() call it with http://.../app/default/call/amfrpc3 Let me know if it works or does not work for you. I have not tried it yet. --~--~-~-

[web2py:26200] Re: task forces

2009-07-10 Thread Yarko Tymciurak
for me this is a meta-activity: porting as an ending action, starting with analysis of other's solutions. Analyze (reverse engineer) / restructure (for web2py) / adjust design / port is a useful idiom to have down. On Fri, Jul 10, 2009 at 4:09 PM, nathan.ms wrote: > > I wonder if we could us

[web2py:26199] Recursive vs Iterative Algorithm

2009-07-10 Thread eric cs
They compare Ruby 1.9 with Python, than a Python guy change the algorithm from being recursive to being iterative and runs way faster...wow. Can you guys explain those ways of programming with simple examples with comments? I heard is very used on functional programming (Erlang,Scala). How to ite

[web2py:26198] Re: task forces

2009-07-10 Thread mdipierro
magneto is nice. On Jul 10, 3:56 pm, eric cs wrote: > We have to beat them...hehehe > Rails for Spree and Magento for Php/Zend. > At least Magento for inspiration. > > On Jul 10, 4:49 pm, Yarko Tymciurak wrote: > > > Those are bigger, more ambitious projects. > > > We could start with something

[web2py:26197] Re: task forces

2009-07-10 Thread mdipierro
I think it would be a good exercise to start from there. I do know if sachmo has this but we it would be nice to a web service layer so that users can develop frontends in html (the default) or Flex (via standard APIs provided by the system). On Jul 10, 4:11 pm, Yarko Tymciurak wrote: > I thin

[web2py:26196] Re: task forces

2009-07-10 Thread Yarko Tymciurak
I think for a CMS, defining what to do, how it would look initially, and it's structure could take some time to review the "best" (or most used) CMS's and what they offer. The basic structure should not be too hard to start (Massimo has started several times). A wiki is probably a core component

[web2py:26195] Re: task forces

2009-07-10 Thread nathan.ms
I wonder if we could use satchmo django project for the estore? On Jul 10, 1:32 pm, mdipierro wrote: > I think we need to build two task forces. > > 1) to build a CMS > > 2) to build a eStore > > the more overlap the better. We need two project leaders and > volunteers. I also suggest starting b

[web2py:26194] Check out your web2py app in multiple environments

2009-07-10 Thread Yarko Tymciurak
I just got done installing 5 new browsers in my new windows environmenet all running under Linux. If you've got a OS/X, Linux, Solaris, Windows, BSD host and would like to run / test under other environments (like setup a linux that your hosting company has to work out your deployment, be

[web2py:26193] Re: Multithreaded and Multicore Programming/Solutions

2009-07-10 Thread mdipierro
There is no real problem with python and multi threading (web2py includes a multithreaded server) except for one issue with the Glbal Interpreter Lock (i.e. Python multi threaded apps get slower, not faster the most cores you have unless you lock python on a core, for example by using a virtual ma

[web2py:26192] Re: task forces

2009-07-10 Thread eric cs
We have to beat them...hehehe Rails for Spree and Magento for Php/Zend. At least Magento for inspiration. On Jul 10, 4:49 pm, Yarko Tymciurak wrote: > Those are bigger, more ambitious projects. > > We could start with something shorter, just to work out the task force > processes > > Perhap

[web2py:26191] Re: task forces

2009-07-10 Thread Vidul
I've always been on the opinion that MVC like WEB2PY (i.e. a normal MVC) is a MVC and a CMS in one (probably I am missing some end-users' points of view). But eStore - that makes a lot of sense to me, so I am for it. On Jul 10, 11:49 pm, Yarko Tymciurak wrote: > Those are bigger, more ambitious

[web2py:/] Multithreaded and Multicore Programming/Solutions

2009-07-10 Thread eric cs
Guys I am not expert just thinking about the Twiiter/Rails problem and Scala solution and I was wondering that with Python. I heard the best option to use Web2py is 2.5 and this version doesn't support same features that take care "kind of" the Multithreaded and Multicore problems on Python 2.6 an

[web2py:26189] Re: task forces

2009-07-10 Thread Yarko Tymciurak
Those are bigger, more ambitious projects. We could start with something shorter, just to work out the task force processes Perhaps a web2py resources site, an update to the appliances app could be the first part of that (and an update to it). This will give us relatively little to do, and we

[web2py:26188] Re: sending HTML emails

2009-07-10 Thread Yarko Tymciurak
well, web2conf was... I found your update (actually I think its on launchpad) and it looks like you worked off of something older than what we ran at the conference, so will need to merge and update all the parts from last years conference site. I'll try to do that before you leave so you can have

[web2py:26187] Re: task forces

2009-07-10 Thread eric cs
I am in...but no knowledge, just wanna help and learn on the process if that is possible, count with me. On Jul 10, 4:32 pm, mdipierro wrote: > I think we need to build two task forces. > > 1) to build a CMS > > 2) to build a eStore > > the more overlap the better. We need two project leaders

[web2py:26186] Re: task forces

2009-07-10 Thread Mr admin
I like the idea! I'd like to be a tester, documenter for the eStore. Sterling On Fri, Jul 10, 2009 at 3:32 PM, mdipierro wrote: > > I think we need to build two task forces. > > 1) to build a CMS > > 2) to build a eStore > > the more overlap the better. We need two project leaders and > volunt

[web2py:26185] task forces

2009-07-10 Thread mdipierro
I think we need to build two task forces. 1) to build a CMS 2) to build a eStore the more overlap the better. We need two project leaders and volunteers. I also suggest starting by creating google docs to gather requirements. Lots of people needs these, including me. Massimo --~--~-~-

[web2py:26184] Re: latest sqlhtml.py breaks update function

2009-07-10 Thread mdipierro
That line is needed to make sure that if Field (...'upload',requires=IS_NOT_EMPTY()) validated on update even when a file is already updated and the update is not allowed to delete the uploloaded file without replacement. On Jul 10, 3:24 pm, Hans Donner wrote: > it's certainly improved and for m

[web2py:26183] Re: latest sqlhtml.py breaks update function

2009-07-10 Thread Hans Donner
it's certainly improved and for my test setup it works On Fri, Jul 10, 2009 at 10:18 PM, mdipierro wrote: > > You are right. I think I fixed the fix and I am uploading 1017. Please > give it a try. > > On Jul 10, 2:32 pm, Hans Donner wrote: >> Yep, >> >> Massimo, your last fix broke it (line 737

[web2py:26182] Re: sending HTML emails

2009-07-10 Thread mdipierro
Yarko, I can tell you are still at web2py 1.52. ;-) Massimo On Jul 10, 3:15 pm, Yarko Tymciurak wrote: > See > > http://bazaar.launchpad.net/~yarkot1/web2conf/pycon2009site/annotate/... > > (just use send()  instead of t2.eamil() ) > > On Fri, Jul 10, 2009 at 1:31 PM, kralin wrote: > > > I spe

[web2py:26181] Re: Sending a welcome message but not a cofirm message...

2009-07-10 Thread mdipierro
def welcome(form): auth.settings.mailer.send(to=form.vars.email,message='Hello %s' %form.vars.first_name) auth.settings.register_onaccept = welcome Massimo On Jul 10, 6:14 pm, Jason Brower wrote: > Hmm I get an error. it tells me that there is no sent method. > > Traceback (most recent call

[web2py:26180] Re: drop-box that keeps previous value

2009-07-10 Thread mdipierro
This is more difficult than I thought. It requires major change in that delicate mechanism that is form validation. It will happen but not today. Massimo On Jul 10, 2:43 pm, Yarko Tymciurak wrote: > I think this is generally useful;  in fact an inverse of this is common in > forms you've seen a

[web2py:26179] Re: latest sqlhtml.py breaks update function

2009-07-10 Thread mdipierro
You are right. I think I fixed the fix and I am uploading 1017. Please give it a try. On Jul 10, 2:32 pm, Hans Donner wrote: > Yep, > > Massimo, your last fix broke it (line 737+), esp the > if not self.errors: ret = true > > here ret is set to true where it shouldn't be... > > On Fri, Jul 10, 2

[web2py:26178] Re: sending HTML emails

2009-07-10 Thread Yarko Tymciurak
See http://bazaar.launchpad.net/~yarkot1/web2conf/pycon2009site/annotate/head%3A/applications/register/models/db_fa.py (just use send() instead of t2.eamil() ) On Fri, Jul 10, 2009 at 1:31 PM, kralin wrote: > > I spent the whole afternoon trying to send an HTML formatted email > with web2py.

[web2py:26177] Re: sending HTML emails

2009-07-10 Thread mdipierro
While this can be and something like this can be added it is my understanding that you do not need to change the header to send html emails. You need to use the MIME encoding and that should be transparent to what mail.send does now. If I am wrong please provide an example of how to change the hea

[web2py:26176] Re: Sending a welcome message but not a cofirm message...

2009-07-10 Thread Jason Brower
Hmm I get an error. it tells me that there is no sent method. Traceback (most recent call last): File "/home/encompass/Desktop/web2py/gluon/restricted.py", line 176, in restricted exec ccode in environment File "/home/encompass/Desktop/web2py/applications/gbata/controllers/default.py", l

[web2py:26175] Re: web2py cache

2009-07-10 Thread mdipierro
You always cache the object returned by the function. The function can be a dummy that returns the object you want to cache. On Jul 10, 1:30 pm, krista wrote: > Is there a way to just cache the object and not the function? --~--~-~--~~~---~--~~ You received this m

[web2py:26174] Re: What about backward compatibility?

2009-07-10 Thread mdipierro
web2py is not moving to Python 3. Period. We may have a web3py in the future while still supporting and improving web2py. That is not a priority right now. On Jul 10, 1:20 pm, Yarko Tymciurak wrote: > The concepts you discuss are... one perspective, one sided (even if > important). > > Backward

[web2py:26173] Re: ip of a logged-in-user

2009-07-10 Thread mdipierro
Yes we have that. Look into gluon.contrib.memdb On Jul 10, 1:03 pm, Yarko Tymciurak wrote: > On Fri, Jul 10, 2009 at 8:58 AM, Kuba Kucharski > wrote: > > > > > Hi, > > > Yes, I've been there.. it generates a lot of updates :/ > > what about a cache-db for this (an in-memory model) ? > > > > >

[web2py:26172] Re: javascript function call from controller

2009-07-10 Thread mdipierro
You cannot call the javascript from the controller. The js calls the controller, the controller responds with other js that gets executed by the browser. On Jul 10, 12:34 pm, Julius Minka wrote: > Massimo, > I can see following: > > 1. in Jquery documentation: > html(val) > Set the html contents

[web2py:26171] Re: auth_add_permission()

2009-07-10 Thread mdipierro
Make a proposal. Perhaps passing a SQLQuery instead of a record id? On Jul 10, 12:19 pm, Jonathan Lundell wrote: > auth_add_permission() (and its brethren) accept a record_id, or 0 for   > a whole table. > > I'm wondering whether it'd be practical to extend that to specify a   > horizontal slice

[web2py:26170] Re: eStore appliance

2009-07-10 Thread mdipierro
I am very much interested in building a new and more powerful eStore. I think we need to setup a task force of people interested int his and build one all together. We need somebody willing coordinate and be project leader. Massimo On Jul 10, 11:45 am, Benigno wrote: > Hey, > >     I just happe

[web2py:26169] Re: drop-box that keeps previous value

2009-07-10 Thread Yarko Tymciurak
I think this is generally useful; in fact an inverse of this is common in forms you've seen around the net: For exaample, register to a site and server validation fails: you get your form presented back to you with maybe a few sensitive fields (e.g. password) On Fri, Jul 10, 2009 at 1:11 PM, a

[web2py:26168] Re: latest sqlhtml.py breaks update function

2009-07-10 Thread Hans Donner
Yep, Massimo, your last fix broke it (line 737+), esp the if not self.errors: ret = true here ret is set to true where it shouldn't be... On Fri, Jul 10, 2009 at 3:21 PM, annet wrote: > > Hans, > >> What version where you using before (please spicy svn or bazaar/launchpad) ? > I was using the

[web2py:26167] Re: DAL remote control

2009-07-10 Thread rb
On Jul 10, 5:48 am, Fran wrote: > On Jul 10, 9:40 am, rb wrote: > > > I don't have the resources for ajax thin client programming. I'll > > stick with the trials of deploying the thick client. > > I don't think you need full-blown GWT to have an AJAX client. > jQuery (integrated with Web2Py) a

[web2py:26166] Re: DAL remote control

2009-07-10 Thread rb
Thx for the review of my idea. For what it's worth, Here is a sample of my code which uses 'eval' to create the DAL code: The input args are the db object, a db.tbl object, and a string of comma separated DAL-type field specifiers (eg. "db.myTbl.person, db.myTbl.dog...") --- def Select(db, tbl, s

[web2py:26165] Re: ssh tunnel from windows (putty) client [ security and admin ]

2009-07-10 Thread Alexandre Andrade
You should save the information of the connection (session) and from the left side (below categories), Connection->SSH->Tunnels: (look at the right side now) Add new forwarded port: Source Port (8000) or the port you use in web2py Destination (localhost:8000) or the port you use in web2py Click

[web2py:26164] sending HTML emails

2009-07-10 Thread kralin
I spent the whole afternoon trying to send an HTML formatted email with web2py. while I cannote use smtplib directly, cause it seems not to work, and I think this should be "normal" in the framework. however in the current release (Version 1.65.0 (2009-07-01 12:16:25)) it is not possible to alter

[web2py:26163] Re: web2py cache

2009-07-10 Thread krista
Is there a way to just cache the object and not the function? --~--~-~--~~~---~--~~ 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

[web2py:26162] ssh tunnel from windows (putty) client [ security and admin ]

2009-07-10 Thread Jeffield
goal: to be able to publicly view the admin interface from a windows client. ( my web2py server is running on a linux) the instructions in this page are very good. http://mdp.cti.depaul.edu/AlterEgo/default/show/68 However, how can I make an ssh tunnel in windows? ( note: putty is installed) Th

[web2py:26161] Re: What about backward compatibility?

2009-07-10 Thread Yarko Tymciurak
The concepts you discuss are... one perspective, one sided (even if important). Backward compatibility is (in the big picture) a double-edged sword. Yes, Massimo is dedicated to backward compatibility, but Python 3 is not. Python not being so wed to backward compatibility has it's benefits (see h

[web2py:26160] Re: drop-box that keeps previous value

2009-07-10 Thread annet
> ...you mean a list of fields, correct?   Anyway, that is what Annet is > asking for I think. Yes, a list of fields that should keep their previous values when the form reloads. Something like keepvalues=[field2,field4] Annet. --~--~-~--~~~---~--~~ You receive

[web2py:26159] Re: ip of a logged-in-user

2009-07-10 Thread Yarko Tymciurak
On Fri, Jul 10, 2009 at 8:58 AM, Kuba Kucharski wrote: > > Hi, > > Yes, I've been there.. it generates a lot of updates :/ what about a cache-db for this (an in-memory model) ? > > > I thought maybe about some generic js solution already used by > someone, we have dozens of very wise people h

[web2py:26158] Re: drop-box that keeps previous value

2009-07-10 Thread Yarko Tymciurak
On Fri, Jul 10, 2009 at 8:07 AM, mdipierro wrote: > > We could make keepvalues take a list of file names. ...you mean a list of fields, correct? Anyway, that is what Annet is asking for I think. > > > On Jul 10, 1:16 am, annet wrote: > > > The question to ask here is what would it take to

[web2py:26157] Re: javascript function call from controller

2009-07-10 Thread Julius Minka
Massimo, I can see following: 1. in Jquery documentation: html(val) Set the html contents of every matched element. This property is not available on XML documents (although it will work for XHTML documents). 2. in current svn trunk in web2py_ajax.html something like this: function ajax(u,s,t)

[web2py:26156] Re: web2py based queue

2009-07-10 Thread kralin
thanks a lot AchipA! On Jul 10, 5:33 pm, AchipA wrote: > You could try something like this - not too clean but, good for > kicking off async tasks in another thread after the page has been > served. > > import gluon.contrib.wsgihooks as wsgihooks > > class myasynctask(wsgihooks.PostConnectionTas

[web2py:26155] auth_add_permission()

2009-07-10 Thread Jonathan Lundell
auth_add_permission() (and its brethren) accept a record_id, or 0 for a whole table. I'm wondering whether it'd be practical to extend that to specify a horizontal slice of a table, perhaps defined by the value of a field, or more generally a select. And even more generally, a set of field

[web2py:26154] Re: Sending a welcome message but not a cofirm message...

2009-07-10 Thread mdipierro
def welcome(form): auth.settings.mailer.sent(to=form.vars.email,message='Hello %s' % form.vars.first_name) auth.settings.register_onaccept = welcome Need to add this to the book. Thanks for the reminder. Massimo On Jul 10, 2:25 pm, Jason Brower wrote: > Is there a way with auth to send a

[web2py:26153] Re: eStore appliance

2009-07-10 Thread Benigno
Hey, I just happen to have been playing around both with estore and with the Paypal Engine that Matt did. (I have the same problem you do, UK is the only country that gets some of googles love in europe, the rest go way behind, so no google checkout here either). Actually Google checkout work

[web2py:26152] Sending a welcome message but not a cofirm message...

2009-07-10 Thread Jason Brower
Is there a way with auth to send a welcome message when people register? Regards, JAson --~--~-~--~~~---~--~~ 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@goog

[web2py:26150] Re: What about backward compatibility?

2009-07-10 Thread viniciusban
On Jul 10, 12:29 pm, mdipierro wrote: > OK. check out web2py.com, the second item after the slides. Nice! And so quick. :-) -- [ ]s Vinicius Assef. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Fra

[web2py:26151] Re: dynamic css

2009-07-10 Thread Álvaro Justen [Turicas]
On Fri, Jul 10, 2009 at 13:05, Jonathan Lundell wrote: > > On Jul 10, 2009, at 8:43 AM, Álvaro Justen [Turicas] wrote: > >> You can test setting HTTP header Pragma to 'no-cache' as W3C says[1] >> or if you are suspecting that web2py is setting headers in a way you >> don't want you could view head

[web2py:26149] Re: dynamic css

2009-07-10 Thread Jonathan Lundell
On Jul 10, 2009, at 8:43 AM, Álvaro Justen [Turicas] wrote: > You can test setting HTTP header Pragma to 'no-cache' as W3C says[1] > or if you are suspecting that web2py is setting headers in a way you > don't want you could view headers (using Firefox addon Live HTTP > Headers, wget etc.) to mak

[web2py:26148] Re: dynamic css

2009-07-10 Thread Álvaro Justen [Turicas]
On Fri, Jul 10, 2009 at 12:14, Jonathan Lundell wrote: > > On Jul 10, 2009, at 7:03 AM, JohnMc wrote: > >> Before you get too far into it, you might want to take a look at >> CleverCSS. (http://sandbox.pocoo.org/clevercss/). Might be able to >> incorporate it to save some time. > > Nice, but I'm n

[web2py:26147] Re: web2py based queue

2009-07-10 Thread AchipA
You could try something like this - not too clean but, good for kicking off async tasks in another thread after the page has been served. import gluon.contrib.wsgihooks as wsgihooks class myasynctask(wsgihooks.PostConnectionTask): def __init__(self): wsgihooks.PostConnectionTask.__in

[web2py:26146] Re: What about backward compatibility?

2009-07-10 Thread mdipierro
OK. check out web2py.com, the second item after the slides. On Jul 10, 10:02 am, viniciusban wrote: > On Jul 10, 11:26 am, mdipierro wrote: > > > On Jul 10, 9:12 am, Vinicius Assef wrote: > > > > What's web2py commitment with backward compatibility? > > > We are fully committed to backward com

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

2009-07-10 Thread Hans
Problem was that in web2py/deposit/ there was the ips.w2p file with owner root rather than the web2py user...maybe through manual copy... changed owner and now its working like it should. Thanks Massimo for pointing me into the right folder! On Jul 9, 10:47 pm, mdipierro wrote: > odd. tehcnical

[web2py:26144] Re: web2py based queue

2009-07-10 Thread mdipierro
I know there is but I do not recall how. Achipa wrote this. pehaps he can enlighten us. On Jul 10, 9:07 am, kralin wrote: > I'm actually using the web2py cron. > Is there a way I can launch the cron external process by the action, > without waiting for the 60 seconds? > > On Jul 10, 3:30 pm, mdi

[web2py:26143] Re: dynamic css

2009-07-10 Thread Jonathan Lundell
On Jul 10, 2009, at 7:03 AM, JohnMc wrote: > Before you get too far into it, you might want to take a look at > CleverCSS. (http://sandbox.pocoo.org/clevercss/). Might be able to > incorporate it to save some time. Nice, but I'm not sure it's compelling. And you'd still need to serve up a dyna

[web2py:26142] Re: What about backward compatibility?

2009-07-10 Thread viniciusban
On Jul 10, 11:26 am, mdipierro wrote: > On Jul 10, 9:12 am, Vinicius Assef wrote: > > > What's web2py commitment with backward compatibility? > > We are fully committed to backward compatiliby. We never broke it in 2 > years. We do not accept patches that break it. That is one of the > reason w

[web2py:26141] Re: javascript function call from controller

2009-07-10 Thread Julius Minka
JohnMc, decision is made based on data in db related to current screen. Julius JohnMc wrote / napísal(a): > Julius, > > Unless you are performing a server side lookup why not decide the > dialog to present using a clientside if or switch in javascript? > > On Jul 10, 8:56 am, Julius Minka

[web2py:26140] Re: What about backward compatibility?

2009-07-10 Thread mdipierro
On Jul 10, 9:12 am, Vinicius Assef wrote: > Hi guys. > This message is more about policy rather than technology, ok? > > I am new to web2py and did not develop anything with it, yet. > I just read some docs, watched some slides and video tutorials. > > As as newcomer Django user too, I could see

[web2py:26139] What about backward compatibility?

2009-07-10 Thread Vinicius Assef
Hi guys. This message is more about policy rather than technology, ok? I am new to web2py and did not develop anything with it, yet. I just read some docs, watched some slides and video tutorials. As as newcomer Django user too, I could see some changing behaviour between versions before 1.0. An

  1   2   >