Re: [web2py] row.update_record()

2017-05-22 Thread Miguel Lopes
On Mon, May 22, 2017 at 4:35 PM, 'Annet' via web2py-users < web2py@googlegroups.com> wrote: > I have the following query and form: > > user = db.auth_user(vertexID=vertexID) > > form = SQLFORM.factory(db.auth_user, db.auth_dummy, > extra_fields=extra_fields) > > If the form validates I want to upd

Re: [web2py] Re: how to update a digitally signed component via response.js?

2012-07-03 Thread Miguel Lopes
e=%s', 'cname_list')" % >> HKEY >> return form >> >> def name_list(): >> if not URL.verify(request, hmac_key=HKEY): raise HTTP(403) >> if session.name == None: >>session.name = "0" >> else: >> sess

[web2py] Re: how to update a digitally signed component via response.js?

2012-07-03 Thread Miguel Lopes
t; return "Name list component: %s" % session.name # the view index.html {{extend 'layout.html'}} {{=LOAD('inter_component', 'myform', ajax=True, target="cmy_form")}} {{=LOAD('inter_component', 'name_list', ajax=True, targ

Re: [web2py] DAL : fill with zeroes a specific field before insert / update

2012-07-02 Thread Miguel Lopes
On Mon, Jul 2, 2012 at 2:08 PM, Santiago wrote: > Hello, > > I have a field defined as below : > > Field('id_indra', length=5, label=T('ID Indra'), notnull=False, > requires=[REQUIRED, MAX_5, IS_MATCH(r'^[a-zA-Z0-9]{5}$')]) > > Is it is possible to intercept all inserts / updates over this field

[web2py] how to update a digitally signed component via response.js

2012-07-02 Thread Miguel Lopes
I have a view index.html with two components - myform and namelist. The index action requires_login() and both myform and namelist actions requires_signature() This works as expected. The problem is that the update of namelist via response.js set in the myform action fails. I figure that since in

Re: [web2py] Re: problem with encoding in javascript from the server

2012-03-27 Thread Miguel Lopes
Find it. titles = "'"+titles.replace('|', "','")+"'" with: SCRIPT(" ... jQuery.prettyPhoto.open(**images=%(images)s,titles=[%(** titles)s]);})" % dict(images=images, titles=titles), _language='javascript') works! Tested on Firefox and Safari. Though I've failed to find any references on this (th

Re: [web2py] Re: problem with encoding in javascript from the server

2012-03-27 Thread Miguel Lopes
No dia 27 de Mar de 2012 17:46, "Derek" escreveu: > > Check the meta tag - if it's UTF-8, that's most likely the issue. You can try ISO-8859-1 and see if that works for you. > Txs. Will also check that.

Re: [web2py] Re: problem with encoding in javascript from the server

2012-03-27 Thread Miguel Lopes
No dia 27 de Mar de 2012 17:41, "Derek" escreveu: > > What's the character set in your browser? > I have safari set for default. But I don't think that's the problem, because if I hardcode the string there is no problem. I'm certainly missing something, but the culprit operation seems to be the st

[web2py] Re: problem with encoding in javascript from the server

2012-03-27 Thread Miguel Lopes
No dia 27 de Mar de 2012 16:13, "Miguel Lopes" escreveu: > > > BTW this is a prettyPhoto widget I developed for plugin_wiki, which is awesome :-) > I mean plugin_wiki is awesome :-) lol

[web2py] problem with encoding in javascript from the server

2012-03-27 Thread Miguel Lopes
This is not strictly a web2py issue. Though it is a problem that apps dealing with some character sets must deal with. I confess that the source of my problem is that I have been delaying reading-up on encoding and decoding far too long. But I'm pressed for time and I'm sure that this is a simple i

Re: [web2py] new web site

2011-11-09 Thread Miguel Lopes
Looks great! It should be clear what the "Awarded the best..." is. Perhaps using http://www.infoworld.com/sites/infoworld.com/files/imagecache/slideshow_slide/media/image/36SS-bossies-2011-web2py.jpg or linking to InfoWorld. Miguel

Re: [web2py] Re: web2ruby possible?

2011-10-13 Thread Miguel Lopes
what about D? On Thu, Oct 13, 2011 at 4:49 AM, wwwgong wrote: > Vote for node.js > > On Sep 11, 5:40 pm, "dustin.b" wrote: > > 1+ vote for node.js ;) > > > > On 11 Sep., 21:14, David Marko wrote: > > > > > > > > > Or to node.js :-) >

Re: [web2py] return record from a query only shows field from one table

2011-07-28 Thread Miguel Lopes
> product.description > > > thank you > > > 2011/7/28 Miguel Lopes > >> The DAL is not SQL, it has a diferent logic. >> What are you trying to achieve? >> >> >> >> 2011/7/28 António Ramos >> >>> this >>> db(d

Re: [web2py] return record from a query only shows field from one table

2011-07-28 Thread Miguel Lopes
The DAL is not SQL, it has a diferent logic. What are you trying to achieve? 2011/7/28 António Ramos > this > db(db.requests.product==*db.products.id*==3).select() > > returns all field from *product* table only > > this > db(db.products.id==*db.requests.product*==3).select() > > returns all

Re: [web2py] Re: DAL db(db.table.id>1).select() diferent from db.select(db.table.id>1)

2011-07-28 Thread Miguel Lopes
The correct syntax is: db(query).select( fields_to_include ) You can find the details at: http://web2py.com/book/default/chapter/06#Query,-Set,-Rows as for db.select(db.table.id>1) I would expect it to create a ticket due to a KeyError since db as no select method. 2011/7/28 António Ramos > c

Re: [web2py] web2py for freelance work

2011-07-26 Thread Miguel Lopes
1. web2py is especially good for freelancers and single developers because it is such a tight package. Everything works really well together and right out of the box. 2. From the forum I get the impression that there is a lot of intranet work. But if you look for sites built with web2py I think th

Re: [web2py] The web2py grid/crud plugin you've always dreamed about!

2011-07-24 Thread Miguel Lopes
Great work, it will be/is very useful for many of us! Thanks, Miguel On Fri, Jul 22, 2011 at 11:35 PM, Bruno Rocha wrote: > Hi, > > I present you PowerGrid Plugin (now in beta 0.1) [ > http://labs.blouweb.com/PowerGrid/] > > What is it? > > A plugin to show, manage and paginate data > It works w

Re: [web2py] web2py videos on the internet

2011-07-23 Thread Miguel Lopes
Cool! On Fri, Jul 22, 2011 at 3:24 PM, Bruno Rocha wrote: > I have some (in portuguese) > > web2py + Ipython ( IDE for what?) > http://vimeo.com/26387038 > > Comet > http://vimeo.com/18399381 > > PowerTable > http://vimeo.com/18447603 > > Uploadify > http://vimeo.com/20107460 > > I am also recor

Re: [web2py] Web2py Certification Program ?

2011-07-22 Thread Miguel Lopes
There is some private offering, which I think should be listed in web2py.com : * a program at DePaul University: http://www.cdm.depaul.edu/ipd/Programs/Pages/WebDevelopmentwithPython.aspx * a program in Brasil: http://www.cursodepython.com.br/ And free courses (structured content, besides the www

Re: [web2py] Re: Limitation in template system

2011-07-21 Thread Miguel Lopes
Actually I began by using functions too. But had some problems (can't remember exactly what), and view functions, even if comprised exclusively of view code didn't really tick my fancy. I much rather extract those snippets of HTML to a module or model file exclusively dedicated to html snippets. In

Re: [web2py] Re: Limitation in template system

2011-07-21 Thread Miguel Lopes
No problem be as criticl as you wish. > Please do not take my critique in a bad way, but be very careful when > adding "blocks of code" in your views, I understand the example above > is just a "code sample" to illustrate a perceived deficiency in the > view templating system, but unless you are

Re: [web2py] Re: Limitation in template system

2011-07-19 Thread Miguel Lopes
I missed that comments feature. Great you added one! Miguel On Tue, Jul 19, 2011 at 12:48 PM, Nico de Groot wrote: > Good point, was just going to post this myself, you beat me to it. A hint > should be added to the web2py book in chapter 5 > http://web2py.com/book/default/chapter/05?search=bloc

[web2py] Limitation in template system

2011-07-13 Thread Miguel Lopes
I think this behavior I've just found is worth sharing. Templates don't honor the if statement that conditionally "try" to include or exclude template blocks. I've just detected this (in 1.96.4 I think) and upgrade to 1.97.1 and the issue/behavior remains. {{rsd=None}} {{if rsd!=None:}} {{bloc

Re: [web2py] web2py - Best Practice

2011-07-13 Thread Miguel Lopes
Let me add the advantage that the initiative stimulates focuses contribution and supplies a platform for learning. Some people may not wish, have the time or expertise to get involved with the development of the web2py framework. This sort of initiative supplies a narrower ground for contribution

Re: [web2py] Re: Python newbie: is knowledge of network programming must for web development stuff ?

2011-07-12 Thread Miguel Lopes
Yes. In my opinion basic Python is the only "almost requisite". The book does a very good job at hand holding, it really helps to know a little Python (which the book also caters for). My advice is follow along with the book. If you get stuck by any Python stuff. Take a minute out of web2py and jus

Re: [web2py] Re: A catchall action per controller - would be proposal

2011-07-08 Thread Miguel Lopes
Yes. That's what I meant. Thank you for making it much clearer. Like you mention the benefit is unclear. This makes it unnecessary to toy with routes or router, which I believe is in the spirit of web2py and benefits beginners with one less location to edit, thing to learn (routes rules vs. simply

Re: [web2py] Re: Metaprogramming in controller

2011-07-08 Thread Miguel Lopes
:-) On Fri, Jul 8, 2011 at 2:25 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > yes. even better use router (vs routes) > > On Jul 6, 10:03 am, Miguel Lopes wrote: > > Humm, > > > > Nice. Yes, closures are enough, and cleaner too. > > Is

[web2py] A catchall action per controller - would be proposal

2011-07-07 Thread Miguel Lopes
Yesterday I posted about implementing dynamic actions (functions) in a controller. This is interesting because one can achieve clean urls, instead of passing the names of the dynamic pages in args or vars. In a system with a cms this has the benefit of user defined pages being indistinguishable fro

Re: [web2py] Re: Metaprogramming in controller

2011-07-07 Thread Miguel Lopes
I see closures are not even necessary. The solution is using routes. For the interested routes is ok for production (the embargo was old-news). Here's some info: https://mail.google.com/mail/?shva=1#search/routes+production/12a53a18e7f6b2d5 Miguel On Wed, Jul 6, 2011 at 4:03 PM, Miguel

Re: [web2py] know if a form have pass every validators

2011-07-06 Thread Miguel Lopes
You can also use form.errors if form.accepts(...): ... elif form.errors: ... HTH, Miguel On Wed, Jul 6, 2011 at 5:08 PM, Anthony wrote: > form.accepts(...) returns True if all validators pass and False otherwise > -- is that what you're looking for? > > Anthony > > On Wednesday, July 6, 2

[web2py] "Movie not loaded..." problem with flash

2011-07-06 Thread Miguel Lopes
It is unlikely that this is web2py related, but I'm about to go crazy with this one. But I guess it's such a general thing someone must know what is going on. I'm using different uploaded media, such as files, images and flash files (.swf files). I can display images without problem, but not flash

Re: [web2py] Re: Metaprogramming in controller

2011-07-06 Thread Miguel Lopes
7;dynamical/' part form the URL. > > This allows you to do what you want without necessarily meta- > programming. > > On Jul 6, 9:35 am, Miguel Lopes wrote: > > Thanks. In conjunction with routes could supply a solution (shortening > the > > urls). > > I

Re: [web2py] Metaprogramming in controller

2011-07-06 Thread Miguel Lopes
Thanks. In conjunction with routes could supply a solution (shortening the urls). I think I should rethink the payoff (see my reply to Massimo regarding my goals). Thanks, Miguel On Wed, Jul 6, 2011 at 3:12 PM, Jonathan Lundell wrote: > On Jul 6, 2011, at 1:23 AM, Miguel Lopes wrote: >

Re: [web2py] Re: Metaprogramming in controller

2011-07-06 Thread Miguel Lopes
On Wed, Jul 6, 2011 at 1:57 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Can you explain the goal? > > On Jul 6, 3:23 am, Miguel Lopes wrote: > > I'm experimenting with dynamically generating functions, aka 'actions' in > > control

[web2py] Metaprogramming in controller

2011-07-06 Thread Miguel Lopes
I'm experimenting with dynamically generating functions, aka 'actions' in controllers. However, I've been unsuccessful. I can use exec and closures successfully in regular Python code, but I can't make it work with web2py. Any thoughts on how to achieve this? A closure example - FAILS in web2py:

Re: [web2py] web2py 1.96.1 is OUT

2011-06-02 Thread Miguel Lopes
On Wed, Jun 1, 2011 at 7:40 PM, Jason Brower wrote: > Me does a dance. Thanks! > And yes it makes rain :-) >

Re: [web2py] form in loop view

2011-05-23 Thread Miguel Lopes
On Mon, May 23, 2011 at 10:50 AM, Stifan Kristi < steve.van.chris...@gmail.com> wrote: > ... > === controller === > def blog_index(): > for i, row in enumerate(rows): >if i == items_per_page: break > >db.blog_comment.blog_id.default = row.id >form = crud.create(db.blog_

Re: [web2py] form in loop view

2011-05-23 Thread Miguel Lopes
On Sun, May 22, 2011 at 9:02 AM, 黄祥 wrote: > hi, > > is it possible to use form in loop view? > > e.g. > {{for i, row in enumerate(rows):}} >{{if i == items_per_page: break}} > >{{db.blog_comment.blog_id.default = row.id}} >{{form = crud.create(db.blog_comment, >

Re: [web2py] Re: problems with conditional login redirection on on_failed_authorization

2011-01-30 Thread Miguel Lopes
On Sun, Jan 30, 2011 at 9:16 PM, Niphlod wrote: > try with auth.settings.on_failed_authorization = > failedAuthHandlerandler() > >  it works for me ^_^ > Not for me! And I can't see how. Miguel

[web2py] Re: problems with conditional login redirection on on_failed_authorization

2011-01-30 Thread Miguel Lopes
c', 'failed_login'])) else: redirect(URL(request)) auth.settings.on_failed_authorization = failedAuthHandler Since using "failed_login" as a regular action or as a public_call makes no difference. is this the correct way to use auth.settings.on_failed_authoriza

[web2py] problems with conditional login redirection on on_failed_authorization

2011-01-30 Thread Miguel Lopes
on_failed_authorization can be a URL or a function. I'm think I could use this to achieve conditional login redirection. A use case would be service calls returning a simple string (or a JSON or an XML reply to non-validated requests), while still allowing for regular (non-service requests) to be r

Re: [web2py] Re: Fwd: web2py basic auth

2011-01-30 Thread Miguel Lopes
You got me in the right direction. Txs. I'll be starting a separate thread on what I'm trying to achieve, so far without success. On Sat, Jan 29, 2011 at 8:13 PM, Niphlod wrote: > sorry, my mistake! > > On Jan 29, 4:01 pm, Miguel Lopes wrote: >> gluons/tools.py >

Re: [web2py] Re: Learning materials for newbie

2011-01-29 Thread Miguel Lopes
On Fri, Jan 28, 2011 at 11:01 PM, mikech wrote: > I've also found it pretty useful recently to run the web2py app from source > in a good ide, in my case WingIDE which I have a 10 day trial on, and step > thru the program using the debugger. Eclipse or Aptana with PyDev is also a good and free so

Re: [web2py] Re: Fwd: web2py basic auth

2011-01-29 Thread Miguel Lopes
gluons/tools.py Txs, Miguel On Sat, Jan 29, 2011 at 12:29 AM, Niphlod wrote: > call_or_redirect() is the real "addition" here you can use both a > URL or a function to manage on_failed_authentication and > on_failed_authorization ... take a look in gluon/utils.py > > On Jan 28, 1:48 am, mi

Re: [web2py] Learning materials for newbie

2011-01-28 Thread Miguel Lopes
Hi, To learn Python I found these very helpful (no particular order): - Hetland's stuff is concise and clear which is not always the case :-) - http://hetland.org/writing/instant-hacking.html - http://hetland.org/writing/instant-python.html - Alan Gaud's on-line is also very cle

Re: [web2py] Re: minimal setup on Debian for using Mail()

2010-12-05 Thread Miguel Lopes
with sendmail from web2py. Txs for pointing me to the right direction. Miguel On Sun, Dec 5, 2010 at 5:17 PM, Miguel Lopes wrote: > Ok. here's the situation: > > I only have sendmail installed and running, no exim, postfix or other. I've > checked this listing running servic

Re: [web2py] Re: minimal setup on Debian for using Mail()

2010-12-05 Thread Miguel Lopes
0 at 9:44 AM, José L. wrote: > > > On 4 dic, 21:54, Miguel Lopes wrote: > > Hi Bernado, > > > > 2010/12/4 Bernardo Botella Corbí > > > > > Hi Miguel, > > > > > which test did you do from command line? > > > does web2py print somethi

Re: [web2py] Re: minimal setup on Debian for using Mail()

2010-12-04 Thread Miguel Lopes
Hi Bernado, 2010/12/4 Bernardo Botella Corbí > Hi Miguel, > > which test did you do from command line? > does web2py print something? Any error? > > Try to do the next thing from the command line: > tail -f /var/log/mail.log > If I try to send mail from web2py using local resources it fails sil

Re: [web2py] Re: minimal setup on Debian for using Mail()

2010-12-03 Thread Miguel Lopes
ince sendmail uses port 25 by default. Miguel > > On Dec 3, 6:36 pm, Miguel Lopes wrote: > > I'm having problems trying to make gluon.tools.Mail work on a vps, and > > wonder if anyone knows what would be a minimal setup for sending mail. > > I just need to sen

[web2py] minimal setup on Debian for using Mail()

2010-12-03 Thread Miguel Lopes
I'm having problems trying to make gluon.tools.Mail work on a vps, and wonder if anyone knows what would be a minimal setup for sending mail. I just need to send the an occasional mail. The server as sendmail working, which I've confirmed in the command line. However, I'm unable to make it work via

Re: [web2py] Re: Multiple submit not working on component

2010-08-24 Thread Miguel Lopes
On Tue, Aug 24, 2010 at 1:04 PM, mdipierro wrote: > jquery serialize also does not support type=file. If you have a way to > get around these, please let me know. > > I've researched this a bit. Although I have not found an authoritarive source, the "problem" is that Javascript cannot access file

Re: [web2py] Re: Multiple submit not working on component

2010-08-24 Thread Miguel Lopes
hnnycode.com/blog/2010/04/08/jquery-form-serialize-doesnt-post-submit-and-button-values-duh/ > > We cannot fork jQuery to fix this. Eventually they will fix it. > > Massimo > > On Aug 23, 8:46 am, Miguel Lopes wrote: > > As an update, the issue remains with the following combi

[web2py] Re: Multiple submit not working on component

2010-08-23 Thread Miguel Lopes
usage in components is to use set a hidden input text field via the click event of each button. Miguel On Mon, Aug 23, 2010 at 3:54 AM, Miguel Lopes wrote: > I'm using the "same name to all input type submits" technique. This is very > nice because it avoids some js and w

[web2py] Multiple submit not working on component

2010-08-22 Thread Miguel Lopes
I'm using the "same name to all input type submits" technique. This is very nice because it avoids some js and works like a charm :-) In a regular controller the code works flawlessly. However when I try to put it in a controller, it fails: status_form = FORM(_id='status_form') for status in OPPTY

Re: [web2py] Re: scripting components

2010-08-13 Thread Miguel Lopes
dded in view. > > On Aug 13, 10:01 am, Miguel Lopes wrote: > > Yes your explanation makes perfect sense, and that solves my > encapsulation > > problem. Thank you. > > You mention normal web2py controllers and views, what would the other > kind > > be? > > &

Re: [web2py] Re: scripting components

2010-08-13 Thread Miguel Lopes
Yes your explanation makes perfect sense, and that solves my encapsulation problem. Thank you. You mention normal web2py controllers and views, what would the other kind be? Miguel On Fri, Aug 13, 2010 at 1:19 PM, mdipierro wrote: > > 2) You can include a js in a component > > def oppty_contact

[web2py] scripting components

2010-08-13 Thread Miguel Lopes
In order to include scripting in a very dynamic component I'm appending a js file to the response files of every template that uses the component, such as: {{response.files.append(URL(request.application,'static/base_components','view_oppty.js'))}} {{extend 'layout.html'}} However, this has the p

Re: [web2py] using URL() inside a component view

2010-08-10 Thread Miguel Lopes
plication,'default','view_detail',args=[rec.contact.id]) > > .load is not appended to the link. > > 2010/8/10 Miguel Lopes > > I'm pretty sure this as been asked, but I can't find it anywhere. >> >> I would like to use the URL function

[web2py] using URL() inside a component view

2010-08-10 Thread Miguel Lopes
I'm pretty sure this as been asked, but I can't find it anywhere. I would like to use the URL function to construct a link inside a component view (i.e. views/components/view_x.load). This would be a link to a completely new page, to be loaded in the browser and not in the component div. However,

Re: [web2py] Re: code organization

2010-08-03 Thread Miguel Lopes
le').my_func()} > > # In modules/my_module.py > def my_func(): >return FORM(...) > > Iceberg > > On Aug 2, 10:19 pm, Miguel Lopes wrote: > > yes I've tried it. local_import does not work. the LOAD function > signature > > expects a controller name and fun

Re: [web2py] Re: Getting Eclipse / Pydev running

2010-08-03 Thread Miguel Lopes
On Tue, Aug 3, 2010 at 2:41 AM, pabloest wrote: > Thank you for the extended description. > This is almost exactly what I had been following. You welcome. Interesting to know you came up with a similar solution. > I had skipped the > arguments partially because I think Eclipse is not taking t

Re: [web2py] code organization

2010-08-02 Thread Miguel Lopes
Aug 2, 2010 at 2:51 PM, Bruno Rocha wrote: > Have you tried local_import()? > I really dont know if that will work in your case, Give it a try > > http://web2py.com/book/default/chapter/04?search=local_import > > 2010/8/2 Miguel Lopes > > I have several functions returnin

[web2py] code organization

2010-08-02 Thread Miguel Lopes
I have several functions returning forms in a module file, and started experimenting with the LOAD function, but I can figure out how to use this functions without moving them to the controller. I would prefer to keep these functions in a module for code organization reasons. I wonder if it is poss

Re: [web2py] Re: Getting Eclipse / Pydev running

2010-08-02 Thread Miguel Lopes
Here's my naif setup - note that this should be exactly the same for Eclipse or Aptana (Aptana is Eclipse + goodies): 1. Use web2py source. 2. Make sure you have PyDev installed in Eclipse/Aptana. 3. Create a project a PyDev project: * this will link to the web2py folder on the file system - so

Re: [web2py] Getting Eclipse / Pydev running

2010-08-01 Thread Miguel Lopes
On Thu, Jul 29, 2010 at 2:38 PM, pabloest wrote: > Hi, > > I'm having some trouble simply getting started with Eclipse and Pydev > for web2py development. > I can't get into a debugging mode with web2py.py and the web server > will not even start. When I right-click and select Debug As > Python >

Re: [web2py] load form by its name

2010-08-01 Thread Miguel Lopes
On Sun, Aug 1, 2010 at 9:20 AM, Neveen Adel wrote: > Hello, > > i have function for example > def form_1(): > form = SQLFORM (_name='form_1') > > and i want inside a different function to load this form and insert > element into it > > For example: > > def another_fn(form_name): >form = #

[web2py] storing a token to identify a service user

2010-07-23 Thread Miguel Lopes
Hi, How can a token be stored between service calls in order to know a service is logged in? Miguel

Re: [web2py] Re: Problem with response.files.append

2010-05-17 Thread Miguel Lopes
oes not look like a browser problem)? > > Massimo > > On May 17, 1:43 pm, Miguel Lopes wrote: > > The net effect is that response.files.append seems to be ignored. > > The client receives the page but the appended files are missing. > > > > On Mon, May 17, 2010 a

Re: [web2py] Re: Problem with response.files.append

2010-05-17 Thread Miguel Lopes
The net effect is that response.files.append seems to be ignored. The client receives the page but the appended files are missing. On Mon, May 17, 2010 at 7:38 PM, mdipierro wrote: > How does it fail? > > On May 17, 1:29 pm, Miguel Lopes wrote: > > Correction and extra data: &

[web2py] Re: Problem with response.files.append

2010-05-17 Thread Miguel Lopes
Correction and extra data: Fails on Windows XP with 1.78.2 with SSL enabled, Works on the same setting with 1.77.3 SSL off. On Mon, May 17, 2010 at 7:12 PM, Miguel Lopes wrote: > I have an app running smoothly on OSX that fails on Windows XP. > I've traced the cause to

[web2py] Problem with response.files.append

2010-05-17 Thread Miguel Lopes
I have an app running smoothly on OSX that fails on Windows XP. I've traced the cause to the use of response.files.append(URL(...)) in views that extend layout In OSX this works with web2py 1.74.4: {{response.files.append(URL(r=request, c='static/biz', f='common.js'))}} {{response.files.append(UR

Re: [web2py] Re: SSL Error on windows [SOLVED] [SOLVED]

2010-05-13 Thread Miguel Lopes
reply. Always nice to know the reason. Keeping with Massimo's suggestion I added solved to the post! LOL > > On 5/13/2010 1:40 PM, Miguel Lopes wrote: > > > > On Wed, May 12, 2010 at 7:45 PM, Timothy Farrell wrote: > >> This is the error that Jon Lundell's guys f

Re: [web2py] web2pyslices source code

2010-05-13 Thread Miguel Lopes
Thanks for sharing. Miguel On Thu, May 13, 2010 at 4:50 PM, mr.freeze wrote: > This has been updated for anyone interested: > http://www.web2pyslices.com/main/static/share/web2py.app.web2pyslices.w2p > >

Re: [web2py] Re: SSL Error on windows [SOLVED]

2010-05-13 Thread Miguel Lopes
On Wed, May 12, 2010 at 7:45 PM, Timothy Farrell wrote: > This is the error that Jon Lundell's guys found already. Note that it's > trying to connect to port 8000 as HTTP. Connect as HTTPS and it should > work. > > Also try upgrading to trunk, that should issue a "400 Bad Request". > > -tim > >

Re: [web2py] Re: SSL Error on windows

2010-05-12 Thread Miguel Lopes
On Tue, May 11, 2010 at 9:41 PM, mr.freeze wrote: > Do you have the win32 extension for Python installed? > http://sourceforge.net/projects/pywin32/ > > On May 11, 3:33 pm, Miguel Lopes wrote: > > On Tue, May 11, 2010 at 7:54 PM, mdipierro > wrote: > >

Re: [web2py] Looping in the browser?

2010-05-11 Thread Miguel Lopes
I suppose you want to return several positions that match (domain == session.target_domain) then you must not use return (as it escapes the loop and exits the function scope). You should collect all your matches in a list and the return the list in the end. Something like: def check(): result_l

Re: [web2py] Re: jsonrpc call failure

2010-05-11 Thread Miguel Lopes
On Wed, May 12, 2010 at 1:48 AM, mdipierro wrote: > Can you describe what happens in the uncessful test? Do you see a new > ticket file being generate in the errors/ folder? What does it say? > > Upps! Sorry false alarm. I was calling the remote server with the port and this was causing the conn

[web2py] jsonrpc call failure

2010-05-11 Thread Miguel Lopes
I've managed to successfully call on a jsonrpc service using localhost. However I cannot replicate this with a remote server. For the client I'm using jsonrpc at the Python prompt: >>> sv = ServiceProxy('http://127.0.0.1:8000/testapp/default/call/jsonrpc') >>> sv.getRequests() ['json test'] >>> T

Re: [web2py] Re: SSL Error on windows

2010-05-11 Thread Miguel Lopes
On Tue, May 11, 2010 at 9:41 PM, mr.freeze wrote: > Do you have the win32 extension for Python installed? > http://sourceforge.net/projects/pywin32/ > > No. Maybe that's he problem. Tomorrow I'll re-test the thing with pywin32 installed. Miguel

Re: [web2py] Re: SSL Error on windows

2010-05-11 Thread Miguel Lopes
On Tue, May 11, 2010 at 7:54 PM, mdipierro wrote: > This is concerns me more: > > WARNING:root:WEB2PY CRON: Disabled because no file locking > > what os are you using? > > Windows XP I can check the flavour and service pack tomorrow.

Re: [web2py] Review my web2py app: Radbox.me

2010-05-11 Thread Miguel Lopes
Very cool. Congratulations, Miguel

Re: [web2py] Do you use web2py in your company?

2010-05-11 Thread Miguel Lopes
On Mon, May 10, 2010 at 10:09 PM, mdipierro wrote: > Anthony made some good points: > http://groups.google.com/group/web2py/msg/a40b27807edc8603 > > For now let's concentrate on one of them for now. If you have > developed software in web2py that you use internally in your company > but you canno

[web2py] SSL Error on windows

2010-05-11 Thread Miguel Lopes
I followed the www.web2py.com/AlterEgo/default/show/140 in order to generate a self-certified ssl key using OpenSSL for windows( http://www.slproweb.com/products/Win32OpenSSL.html) The certificates are in the web2py folder Running web2py I get this error: C:\Programas\web2py>c:\python26\python w

Re: [web2py] Re: New to web app development -- is web2py a good choice

2010-05-08 Thread Miguel Lopes
Yeah! shows how conservative I am :-) On Fri, May 7, 2010 at 10:10 PM, mdipierro wrote: > > Massimo already answered this. But I've been using web2py from the > > beginning, have a site running on it with absolutely no problems. > Upgrading > > to a new release is as simple as (well just import

Re: [web2py] Re: Custom widgets and form errors

2010-05-07 Thread Miguel Lopes
On Fri, May 7, 2010 at 3:42 PM, Miguel Lopes wrote: > > > On Fri, May 7, 2010 at 3:29 PM, mdipierro wrote: > >> Errors in form.errors (which is a Storage object and extends a dict). >> Perhaps they can be displayed somewhere else? >> >> > Yes of course.

Re: [web2py] Idea/question

2010-05-07 Thread Miguel Lopes
On Fri, May 7, 2010 at 4:06 PM, blackthorne wrote: > Is it possible to customize the order by which models are loaded/ > imported in a web2py application? > Are they loaded by alphabetical order? > > Yes. They are loaded alphabetically. > It comes to my mind an idea of an interface for this bas

Re: [web2py] Re: Custom widgets and form errors

2010-05-07 Thread Miguel Lopes
nge all form error displaying functionality everywhere! Miguel > On May 7, 7:26 am, Miguel Lopes wrote: > > Encapsulating javascript code within some widgets is a good solution when > > the functionality is generic. This widgets act like drop-in components. > > > >

Re: [web2py] New to web app development -- is web2py a good choice

2010-05-07 Thread Miguel Lopes
On Thu, May 6, 2010 at 6:37 AM, Anthony wrote: > I am brand new to web application development, and I'm looking for a > good web framework to learn in order to build a new web application > (sort of a personal task/project management system). I want it to look > (and act) like a serious, polished

Re: [web2py] Top 3 web2py features

2010-05-07 Thread Miguel Lopes
+1 * (Works out of the box) All in one packages with no dependencies and no config files +1 * Backward compatibility * Very easy to extend (like Python fits my brain) Miguel On Thu, May 6, 2010 at 4:18 PM, Álvaro Justen [Turicas] < alvarojus...@gmail.com> wrote: > Hi folks, > I'm writing an ar

[web2py] Custom widgets and form errors

2010-05-07 Thread Miguel Lopes
Encapsulating javascript code within some widgets is a good solution when the functionality is generic. This widgets act like drop-in components. Two examples by mr.freeze are (txs for the nice concept mr.freeze): http://www.web2pyslices.com/main/slices/take_slice/24 http://www.web2pyslices.com/ma

Re: [web2py] Re: Previous location

2010-05-03 Thread Miguel Lopes
On Mon, May 3, 2010 at 11:08 PM, Jonathan Lundell wrote: > web2py probably isn't setting referer on a redirect, and if it did, you'd > have to interpret the URL. No. If I have no redirect and call a location with no args the referer is not set when I arrive at web2py's default "Internal error" p

Re: [web2py] Re: Previous location

2010-05-03 Thread Miguel Lopes
s reliable or safe but request.env.http_referer > might be what you're looking for. > > On May 3, 4:39 pm, Miguel Lopes wrote: > > Is there a way to find the previous location / address in an action? > > > > For example: > > Currently inwww.domain.com/a/c/f/arg1 &g

[web2py] Previous location

2010-05-03 Thread Miguel Lopes
Is there a way to find the previous location / address in an action? For example: Currently in www.domain.com/a/c/f/arg1 Follow some link to action_x def action_x: if something_is_wrong: redirect(request.last_location) # including args ... My goal is to send the user to the page is commi

Re: [web2py] Question about web2py license

2010-02-22 Thread Miguel Lopes
On Mon, Feb 22, 2010 at 7:06 PM, Thadeus Burgess wrote: > This has come up in the past, the topics on this subject are in the > google group if the search would actually work I would share the links > to the posts. > I've searched too, but what I've found in the group was, in my opinion, unclear

Re: [web2py] Question about web2py license

2010-02-22 Thread Miguel Lopes
On Mon, Feb 22, 2010 at 9:46 AM, Kuba Kucharski wrote: > I think short answer is this is allowed. > > http://osdir.com/ml/web2py/2009-09/msg01859.html > > -- > Kuba > > You are right. But I still have doubts. The way I see it if company X is selling access to some SaaS application. Let's say an on

[web2py] Question about web2py license

2010-02-22 Thread Miguel Lopes
Hello Massimo, I wonder if web2py's license would allow for a SaaS kind of application? By SaaS I mean access to the site (web app) would be paid for. In practice end users would pay a fee for accessing the site functionality. This seems very, very borderline to me. I know you are not laywers. Bu

Re: [web2py] New site in web2py

2010-01-29 Thread Miguel Lopes
There's some problem with the "noticia" view since the html of the news body is rendering as text. Congratulations on the site. Nice icon set. Is it opensource / free? Miguel -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this grou

Re: [web2py] Re: Using XMLRPC to update data via AJAX call?

2010-01-20 Thread Miguel Lopes
On Wed, Jan 20, 2010 at 4:57 PM, Stefan wrote: > Thanks for the heads up! > > On Jan 20, 10:09 am, mdipierro wrote: > > The way the web normally works is that requests are initiated by the > > client, not by the server. > > > > To have the server trigger and action in the client without some kind

Re: [web2py] Re: boolean field not updated

2010-01-19 Thread Miguel Lopes
On Mon, Jan 18, 2010 at 7:46 AM, mdipierro wrote: > By custom you mean {{=form.custom.widget.field}} or something else? > > That's what I mean. if I replace the custom form with a regular form everything works fine. Miguel -- You received this message because you are subscribed to the Google G

[web2py] boolean field not updated

2010-01-17 Thread Miguel Lopes
With crud when using a custom form boolean fields are not being updated. If using the default form booleans get updated. Leopard web2py source 1.74.4 db SQLite MacPython 2.5.4 Miguel -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to t

  1   2   >