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

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

2012-07-03 Thread Miguel Lopes
('inter_component', 'myform', ajax=True, target=cmy_form)}} {{=LOAD('inter_component', 'name_list', ajax=True, target='cname_list', user_signature=HKEY)}} Miguel On Mon, Jul 2, 2012 at 11:41 AM, Miguel Lopes mig.e.lo...@gmail.com wrote: I have a view index.html with two components - myform and namelist

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

2012-07-03 Thread Miguel Lopes
('inter_component', 'myform', ajax=True, target=cmy_form)}} {{=LOAD('inter_component', 'name_list', ajax=True, target='cname_list', user_signature=HKEY)}} Miguel On Mon, Jul 2, 2012 at 11:41 AM, Miguel Lopes mig.e.lo...@gmail.comwrote: I have a view index.html with two components - myform and namelist

[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

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 santiagogilab...@gmail.com 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 /

[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

[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 mig.e.lo...@gmail.com escreveu: BTW this is a prettyPhoto widget I developed for plugin_wiki, which is awesome :-) I mean plugin_wiki is awesome :-) lol

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 sp1d...@gmail.com 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

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 sp1d...@gmail.com 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
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 (there

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 wen.g.g...@gmail.com wrote: Vote for node.js On Sep 11, 5:40 pm, dustin.b dustin.bens...@googlemail.com wrote: 1+ vote for node.js ;) On 11 Sep., 21:14, David Marko dma...@tiscali.cz wrote: Or to node.js :-)

Re: [web2py] Re: DAL db(db.table.id1).select() diferent from db.select(db.table.id1)

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.id1) I would expect it to create a ticket due to a KeyError since db as no select method. 2011/7/28 António Ramos

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 ramstei...@gmail.com 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()

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

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

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

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 rochacbr...@gmail.com 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

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 rochacbr...@gmail.com 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

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

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 a PHP

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.

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 ndegr...@chello.nl 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

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

[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:}} {{block

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 just

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 mig.e.lo...@gmail.com wrote: Humm, Nice. Yes, closures are enough, and cleaner too. Is routes OK for production mode? Txs

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.

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 Lopes

[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

Re: [web2py] Re: Metaprogramming in controller

2011-07-06 Thread Miguel Lopes
, 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 mig.e.lo...@gmail.com wrote: I'm experimenting with dynamically generating functions, aka 'actions' in controllers. However, I've been unsuccessful. I can use exec

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 jlund...@pobox.com wrote: On Jul 6, 2011, at 1:23 AM, Miguel Lopes

Re: [web2py] Re: Metaprogramming in controller

2011-07-06 Thread Miguel Lopes
what you want without necessarily meta- programming. On Jul 6, 9:35 am, Miguel Lopes mig.e.lo...@gmail.com wrote: 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

[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

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 abasta...@gmail.com wrote: form.accepts(...) returns True if all validators pass and False otherwise -- is that what you're looking for? Anthony On

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 encomp...@gmail.com wrote: Me does a dance. Thanks! And yes it makes rain :-)

Re: [web2py] form in loop view

2011-05-23 Thread Miguel Lopes
On Sun, May 22, 2011 at 9:02 AM, 黄祥 steve.van.chris...@gmail.com 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] 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_comment,

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 niph...@gmail.com wrote: sorry, my mistake! On Jan 29, 4:01 pm, Miguel Lopes mig.e.lo...@gmail.com wrote: gluons/tools.py

[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

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

2011-01-30 Thread Miguel Lopes
)) 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_authorization = function ? Txs for the help, Miguel On Sun, Jan 30, 2011 at 10:55 AM, Miguel

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 niph...@gmail.com wrote: try with auth.settings.on_failed_authorization = failedAuthHandlerandler()  it works for me ^_^ Not for me! And I can't see how. Miguel

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 niph...@gmail.com 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,

Re: [web2py] Re: Learning materials for newbie

2011-01-29 Thread Miguel Lopes
On Fri, Jan 28, 2011 at 11:01 PM, mikech mp.ch...@gmail.com 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

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

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

2010-12-05 Thread Miguel Lopes
. Txs for pointing me to the right direction. Miguel On Sun, Dec 5, 2010 at 5:17 PM, Miguel Lopes mig.e.lo...@gmail.com wrote: Ok. here's the situation: I only have sendmail installed and running, no exim, postfix or other. I've checked this listing running services by using: netstat -tap I

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

2010-12-04 Thread Miguel Lopes
Hi Bernado, 2010/12/4 Bernardo Botella Corbí estem...@gmail.com 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

[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

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

2010-12-03 Thread Miguel Lopes
uses port 25 by default. Miguel On Dec 3, 6:36 pm, Miguel Lopes mig.e.lo...@gmail.com 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 send the an occasional mail

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

2010-08-24 Thread Miguel Lopes
://www.johnnycode.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 mig.e.lo...@gmail.com wrote: As an update, the issue remains with the following

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 mdipie...@cs.depaul.edu 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

[web2py] Re: Multiple submit not working on component

2010-08-23 Thread Miguel Lopes
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 mig.e.lo...@gmail.com wrote: 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

[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

[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

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 mdipie...@cs.depaul.edu wrote: 2) You can include a js in a component

Re: [web2py] Re: scripting components

2010-08-13 Thread Miguel Lopes
. On Aug 13, 10:01 am, Miguel Lopes mig.e.lo...@gmail.com 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? Miguel On Fri, Aug 13, 2010 at 1:19 PM

[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] using URL() inside a component view

2010-08-10 Thread Miguel Lopes
(request.application,'default','view_detail',args=[rec.contact.id]) .load is not appended to the link. 2010/8/10 Miguel Lopes mig.e.lo...@gmail.com 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

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

2010-08-03 Thread Miguel Lopes
On Tue, Aug 3, 2010 at 2:41 AM, pabloest pab...@gmail.com 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

Re: [web2py] Re: code organization

2010-08-03 Thread Miguel Lopes
(...) Iceberg On Aug 2, 10:19 pm, Miguel Lopes mig.e.lo...@gmail.com wrote: yes I've tried it. local_import does not work. the LOAD function signature expects a controller name and function name (defaulting to the request.application), as far as I know it is not possible to pass it a function

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

[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

Re: [web2py] code organization

2010-08-02 Thread Miguel Lopes
, 2010 at 2:51 PM, Bruno Rocha rochacbr...@gmail.com 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 mig.e.lo...@gmail.com I have several functions

Re: [web2py] load form by its name

2010-08-01 Thread Miguel Lopes
On Sun, Aug 1, 2010 at 9:20 AM, Neveen Adel nevo.a...@gmail.com 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):

Re: [web2py] Getting Eclipse / Pydev running

2010-08-01 Thread Miguel Lopes
On Thu, Jul 29, 2010 at 2:38 PM, pabloest pab...@gmail.com 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

[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'))}}

[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 mig.e.lo...@gmail.com wrote: I have an app running smoothly on OSX that fails on Windows XP. I've traced the cause

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 mdipie...@cs.depaul.edu wrote: How does it fail? On May 17, 1:29 pm, Miguel Lopes mig.e.lo...@gmail.com wrote

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

2010-05-17 Thread Miguel Lopes
this does not look like a browser problem)? Massimo On May 17, 1:43 pm, Miguel Lopes mig.e.lo...@gmail.com 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 at 7:38 PM, mdipierro

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 tfarr...@swgen.com 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.

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 nat...@freezable.com 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] [SOLVED]

2010-05-13 Thread Miguel Lopes
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 tfarr...@swgen.comwrote: This is the error that Jon Lundell's guys found already. Note that it's trying

Re: [web2py] Re: SSL Error on windows

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

[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\web2pyc:\python26\python

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 mdipie...@cs.depaul.edu 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

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

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

Re: [web2py] Re: SSL Error on windows

2010-05-11 Thread Miguel Lopes
On Tue, May 11, 2010 at 7:54 PM, mdipierro mdipie...@cs.depaul.edu 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] Re: SSL Error on windows

2010-05-11 Thread Miguel Lopes
On Tue, May 11, 2010 at 9:41 PM, mr.freeze nat...@freezable.com 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

[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'] The very

Re: [web2py] Re: jsonrpc call failure

2010-05-11 Thread Miguel Lopes
On Wed, May 12, 2010 at 1:48 AM, mdipierro mdipie...@cs.depaul.edu 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

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():

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 mdipie...@cs.depaul.edu 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

[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

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

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 av201...@yahoo.com 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

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

2010-05-07 Thread Miguel Lopes
must change all form error displaying functionality everywhere! Miguel On May 7, 7:26 am, Miguel Lopes mig.e.lo...@gmail.com wrote: Encapsulating javascript code within some widgets is a good solution when the functionality is generic. This widgets act like drop-in components. Two

Re: [web2py] Idea/question

2010-05-07 Thread Miguel Lopes
On Fri, May 7, 2010 at 4:06 PM, blackthorne francisco@gmail.com 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

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 mig.e.lo...@gmail.com wrote: On Fri, May 7, 2010 at 3:29 PM, mdipierro mdipie...@cs.depaul.edu wrote: Errors in form.errors (which is a Storage object and extends a dict). Perhaps they can be displayed somewhere else? Yes of course

[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

Re: [web2py] Re: Previous location

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

Re: [web2py] Re: Previous location

2010-05-03 Thread Miguel Lopes
On Mon, May 3, 2010 at 11:08 PM, Jonathan Lundell jlund...@pobox.comwrote: 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

[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.

Re: [web2py] Question about web2py license

2010-02-22 Thread Miguel Lopes
On Mon, Feb 22, 2010 at 9:46 AM, Kuba Kucharski kuba.kuchar...@gmail.comwrote: 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

Re: [web2py] Question about web2py license

2010-02-22 Thread Miguel Lopes
On Mon, Feb 22, 2010 at 7:06 PM, Thadeus Burgess thade...@thadeusb.comwrote: 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

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 group,

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 stefan.louis.no...@gmail.comwrote: Thanks for the heads up! On Jan 20, 10:09 am, mdipierro mdipie...@cs.depaul.edu wrote: The way the web normally works is that requests are initiated by the client, not by the server. To have the server trigger

Re: [web2py] Re: boolean field not updated

2010-01-19 Thread Miguel Lopes
On Mon, Jan 18, 2010 at 7:46 AM, mdipierro mdipie...@cs.depaul.edu 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

[web2py] Filtering record sets

2010-01-17 Thread Miguel Lopes
I'm wondering how to filter query results based on some sort of user access rights. Can this be accomplished with Auth? The basic use case is giving access to all records to all users, and then have certain users create records that will be only accessible to a limited number of users. Limited

Re: [web2py] Re: Filtering record sets

2010-01-17 Thread Miguel Lopes
On Sun, Jan 17, 2010 at 4:50 PM, mdipierro mdipie...@cs.depaul.edu wrote: Yes. Look into auth.accessible_query. For example: db(auth.accessible_query('read', db.mytable)).select(db.mytable.ALL) returns a all records of mytable that current logged in user has access to: This does nested

Re: [web2py] testers needed

2010-01-17 Thread Miguel Lopes
Cool! Has soon as I clean somethings I'll upgrade my development version and check! Miguel On Sun, Jan 17, 2010 at 9:27 PM, mdipierro mdipie...@cs.depaul.edu wrote: I have rewritten some of the code that deals with dropdowns, in trunk. In particular now you can do IS_IN_SET(...,sorted=True)

Re: [web2py] Re: Filtering record sets

2010-01-17 Thread Miguel Lopes
On Sun, Jan 17, 2010 at 10:55 PM, mdipierro mdipie...@cs.depaul.edu wrote: No auth takes security by the book. If used everything is restricted unless permission is granted explicitly. In your case is would just add a Field ('private','boolean',default=False) and if a user tried to access a

  1   2   >