Re: [web2py] row.update_record()

2017-05-22 Thread Miguel Lopes
ect ... so you can use it (see: http://web2py.readthedocs.io/en/latest/storage.html?highlight=gluon.storage.Storage). Just do: form.vars.field1 = value1 form.vars.field2 = value2 user.update_record(**db.auth_user._filter_fields(form.vars)) Miguel -- Resources: - http://web2py.com - http://web2py.com/book (

[web2py] Getting the (Big) picture on Multi-tenant applications

2017-05-22 Thread miguel
integer id? Or is my feeling of reducing record size, senseless knit-picking here? 5. Is it possible to somehow test this feature on localhost? How? Is my overall picture correct or am I missing anything? Txs, Miguel -- Resources: - http://web2py.com - http://web2py.com/book (Documentati

Re: [web2py] web2py.py -G configure issues? Trouble with /admin on GAE

2014-10-13 Thread Miguel Goncalves
Cool, I tried grouping the regex, put back the section I had comented out and it seems to be working. Thanks -Miguel On Fri, Oct 10, 2014 at 9:43 AM, lpg lucas.gei...@gmail.com wrote: Hi Miguel, I've been talking with Niphlod, w2p maintainer. See here. https://groups.google.com/forum/#!topic

Re: [web2py] web2py.py -G configure issues? Trouble with /admin on GAE

2014-10-08 Thread Miguel Goncalves
Hi Please find my app.yaml file attached. I have not tried the release pipeline with GitHub. -Miguel On Fri, Oct 3, 2014 at 6:51 AM, Lucas Geiger l...@keyscores.com wrote: I'm not having luck with that. Can you post your yml file here? Another question: have you tried using GAE's release

Re: [web2py] web2py.py -G configure issues? Trouble with /admin on GAE

2014-10-03 Thread Miguel Goncalves
Hi I cleared the cache and also tried running in IE and Chrome. Everything is still working properly for me. -Miguel On Thu, Oct 2, 2014 at 9:57 AM, Lucas Geiger l...@keyscores.com wrote: Hi Miguel, this seems to break the rest of app for me, including welcome: https://www.dropbox.com/s

Re: [web2py] Re: Path to jquery and other libs is wrong in the admin app (2.9.11)

2014-10-02 Thread Miguel Goncalves
it by: - url: /(.+?)/static/_\d.\d.\d\/(.+) static_files: applications/\1/F/\2 cleared the browser cache, restarted the GAE Launcher and none of my path changed. Any idea of what I am doing wrong? thx Miguel On Tue, Sep 30, 2014 at 8:01 AM, Niphlod niph...@gmail.com wrote: you need to fix

Re: [web2py] Re: Path to jquery and other libs is wrong in the admin app (2.9.11)

2014-10-02 Thread Miguel Goncalves
: applications/\1/static/\2 # upload: applications/(.+?)/static/(.+) # secure: optional Seems like the 2nd url was overwritting the 1st one. Any ideas if this will create any other issues? Thanks Miguel On Thu, Oct 2, 2014 at 6:18 AM, Miguel Goncalves goncalvesmig...@gmail.com wrote: Hi The app.yaml

Re: [web2py] web2py.py -G configure issues? Trouble with /admin on GAE

2014-10-02 Thread Miguel Goncalves
a version number in the static/ path and it seems to work. Nothing else broke so far. -Miguel On Wed, Oct 1, 2014 at 4:25 PM, lpg lucas.gei...@gmail.com wrote: Testing the latest 2.9.11 on GAE, seems like /admin app is breaking, since many static resources can't be found. I used the new web2py.py

Re: [web2py] web2py.py -G configure issues? Trouble with /admin on GAE

2014-10-02 Thread Miguel Goncalves
, 2014 at 7:27 AM, Lucas Geiger l...@keyscores.com wrote: Hi Miguel, sorry which line specifically? Also did you use the web2py.py -G config to generate these? I did. It seems that would be a bug? Lucas Geiger On Oct 2, 2014 9:47 AM, Miguel Goncalves goncalvesmig...@gmail.com wrote: Try

[web2py] Path to jquery and other libs is wrong in the admin app (2.9.11)

2014-09-30 Thread Miguel
not be there. How do I fix this? Thanks -Miguel -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed

[web2py] Autocomplete and list:string

2014-04-28 Thread Miguel Andrés Moya Rojas
Hello! My issue is this: I want to use the autocomplete widget ( SQLFORM.widgets.autocomplete) but my field is a list:string, and now it shows all data in only one field, resulting in an awkward input. How can I use this widget with a list:string field? Thanks in advance. :) -- Resources: -

Re: [web2py] Re: javascript/openlayers example in web2py

2014-01-16 Thread Miguel Sánchez
Hi Manuele and other members, I ´m not a programmer, I come from the Human Sciences, but I´m mounting my social project in http://redhumus.org . I have a lot of issues yet. I have created the plugin_map in my application to manage gpx tracks from openstreetmaps. The deal is create an

[web2py] Conflict between Apache2 and web2py

2013-10-09 Thread Miguel Sánchez
by mod_wsgi and mod_proxy alternatives. None of them works. So, Could yo help me please. My project release is in November and I have a lot of work to do so in website content. Thank you * Miguel Sanchez Bogota/ Colombia @kublaykan Here, some details* My Server has these caracteristics

[web2py] RESTful and content-type

2013-08-20 Thread Miguel Cabo
I had a problem with Restful requests. The content-type response header was text/plain when I sent a http://xxx.json request. Is it ok? I need content-type response header as application/json. To do that I have modified the glucon/contenttype.py with the following code: *Original

[web2py] MYSQL + DAL + RESTful web service

2013-07-29 Thread Miguel Cabo
I have the following error when I make this request: *https://localhost/example/api/rest/PERSONS_has_ANIMALS* * * type 'exceptions.AttributeError' 'Table' object has no attribute '_id' Versionweb2py™Version 2.5.1-stable+timestamp.2013.06.06.15.39.19PythonPython 2.7.3: /usr/bin/python (prefix:

[web2py] Formulario personalizado

2012-08-25 Thread Miguel
de selección con los valores de la otra tabla. Mi pregunta es si ese formulario lo puedo restringir para que solo aparezcan en el combo de selección determinados valores. Gracias Miguel --

[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
Tx you so much for the solution. This one was really holding me back. Miguel On Tue, Jul 3, 2012 at 3:27 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: There is more than one problem. 1) you can supply your own secret key but there is no need to. If the user is logged

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

2012-07-02 Thread Miguel Lopes
the response.js mechanism? Otherwise, how to update a digitally signed component via response.js? TIA Miguel

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

2012-07-02 Thread Miguel Lopes
it. Miguel HTH

[web2py] problem with encoding in javascript from the server

2012-03-27 Thread Miguel Lopes
instead I get: olá The same for Olé and olé My goal is to have a user supplied string, such as: olá|olé BTW this is a prettyPhoto widget I developed for plugin_wiki, which is awesome :-) Txs for the help, Miguel

[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
to be the string parsing, not the browser rendering: titles = [title.strip() for title in titles.split('|')] Miguel

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
2.5. Miguel On Tue, Mar 27, 2012 at 6:46 PM, Derek sp1d...@gmail.com wrote: 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. On Tuesday, March 27, 2012 10:41:53 AM UTC-7, Derek wrote: What's the character set in your

[web2py] Re: Book translation

2012-03-22 Thread Miguel
Count on me to translate the book to Spanish! -- Miguel On Tuesday, December 27, 2011 6:03:31 PM UTC+2, Mirek Zvolský wrote: I want start translation of the book 4th edition (czech language). Can I read somewhere hints, how to do it? Idea: Can we have menu item in web2py.com/book

[web2py] SQLFORM.grid links

2012-01-16 Thread Miguel
, paginate=20, details=False ) Thanks Miguel

[web2py] SQLFORM.grid order

2012-01-16 Thread Miguel
Hello, I have a question about SQLFORM.grid order of the fields in the table represented? Is there any way to modify the order of these fields in a SQLFORM.grid? Thanks Miguel

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

[web2py] Re: ANN: ide2py: editor, shell and debugger for web2py (experimental)

2011-08-12 Thread Miguel
Looks great!

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
references : * http://www.python.org/about/success/ * http://wiki.python.org/moin/OrganizationsUsingPython No one should be concerned with using Python! HTH, Miguel On Mon, Jul 25, 2011 at 6:26 PM, spiffytech spiffyt...@gmail.com wrote: I'm picking out a framework to use for freelance web

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 http://web2py.com/book/default

Re: [web2py] web2py - Best Practice

2011-07-13 Thread Miguel Lopes
that is likely to impose less demands on contribution or to be more accessible. Thus, it also provides a route for many to increase both individual knowledge and for the community to explore and develop framework usage patterns. Miguel On Wed, Jul 13, 2011 at 6:45 AM, nic nicbythe...@gmail.com

[web2py] Limitation in template system

2011-07-13 Thread Miguel Lopes
right_sidebar}} {{=rsd==None}} {{=repr(rsd)}} {{end}} {{pass}} The solution is to put the condition *inside the template block* (tested in 1.97.1) {{rsd=None}} {{block right_sidebar}} {{if rsd!=None:}} {{=rsd==None}} {{=repr(rsd)}} {{pass}} {{end}} Miguel

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
. However, after considering better routes/router arguments and the fact that they do not impose a real penalty on performance this is likely unnecessary. Miguel On Thu, Jul 7, 2011 at 6:28 PM, Anthony abasta...@gmail.com wrote: Are you suggesting the possibility of defining a function like: def

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
? This would supply a way to dealt with all calls that have no defined action per controller (including errors) without having to use routes. A small idea that perhaps does not bring enough benefits to be argued for. What do you think? Miguel

Re: [web2py] Re: Metaprogramming in controller

2011-07-06 Thread Miguel Lopes
/1/12 /application/controller/catchall_function?_page=books?title=12 And have something like: /application/controller/books/12 I know I could use routes to send everything to a function to process the response, but I was wondering about doing this with closures. Thanks, Miguel On Wed, Jul 6

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
Humm, Nice. Yes, closures are enough, and cleaner too. Is routes OK for production mode? Txs, Miguel On Wed, Jul 6, 2011 at 3:54 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Jonathan is right. Here is a simple way around. Create a single controller called dynamical. use

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

2011-07-06 Thread Miguel Lopes
data={{=URL('static/images','teaser_2008012901.swf')}} param name=quality value=best /param name=allowfullscreen value=true / param name=scale value=showAll /param name=movie value={{=URL('static/images','teaser_2008012901.swf')}} / /object Any tips? 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 abasta...@gmail.com wrote: form.accepts(...) returns True if all validators pass and False otherwise -- is that what you're looking for? Anthony

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
='view_oppty.css'))}} {{response.files.append(URL(r=request,c='static/biz',f='view_opportunity.js'))}} {{extend 'layout.html'}} I assume that you either show every form or know how to do this in javascript/jquery. If anyone as a clearer method to do this I am VERY interested in knowing about it! HTH, Miguel

Re: [web2py] form in loop view

2011-05-23 Thread Miguel Lopes
Inserted'))) return dict(forms=forms) Miguel

[web2py] Language selection

2011-05-08 Thread Miguel Morillo Iruela
. . . routers = dict ( BASE = dict (default_application = 'myapp') myapp = dict (languages ​​= ['en ', 'it',' es',' es-es', 'it-it'], default_language = 'en'), ) . . Thanks Miguel

Re: [web2py] Re: blank entry in SELECT using values from a database table

2011-04-15 Thread Miguel Miranda
Great Arun, it did the trick. Why do you do:? options_added=options[:] I just did it: options.insert(0, OPTION('', _value='')) and it worked fine, kind regards On Fri, Apr 15, 2011 at 9:00 AM, Arun K.Rajeevan the1.a...@gmail.comwrote:

[web2py] blank entry in SELECT using values from a database table

2011-04-14 Thread Miguel
Hello to all, im using the example in old blog regarding SELECT using values from a database table: staff = db(db.staff.ALL).select() FORM(TR(Select a user :, SELECT(_name='staffselect', *[OPTION(staff[i].username, _value=str(staff[i].id)) for i in range(len(staff))])),

[web2py] wizard error when creating the database

2011-03-31 Thread Miguel
hello to all, today i upgraded to 1.94.6 using the admin interface, after that i tryid to create a new project using the wizard, all went fine until Step 6: Generate app monitoreando This is the trace: Traceback (most recent call last): File /home/www-data/web2py/gluon/restricted.py, line 188,

[web2py] Generate response.menu from a model

2011-03-23 Thread Miguel
Hi, im trying to generate a response.menu with category similar to the one described here by mdipierro: http://groups.google.com/group/web2py/browse_thread/thread/73056f518dd8b554/02bc66127749782e?lnk=gstq=menu+vertical#02bc66127749782e the problem im facing is that i have no idea on how to

[web2py] Can't connect to MySQL server on 'localhost'

2011-03-15 Thread Miguel
Hello to all, I have created a new project using the web wizard, for some unknown reason the mysql connection is not working, this is the uri im using: mysql://cmts_monitor:cmtsTigoHome@localhost/cmts_monitor and this is the error i got: Traceback (most recent call last): File

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
does not exist with a Status 404 content header Am I on the right track? How could this be achieved? Txs, Miguel

[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
html to start with. For me learning html on a need to know basis worked out fine. Remember to google, google, then ask on the net/list(s) Happy coding HTH, Miguel On Fri, Jan 28, 2011 at 9:46 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Web2py book : http://www.web2py.com/book Richard

[web2py] Fwd: web2py basic auth

2011-01-27 Thread miguel
in p://www.web2pyslices.com/main/slices/take_slice/48 (see Authentication). This solution would also be useful for other non-browser-based clients. Would it work? How is the function used? Txs, Miguel -- Forwarded message -- From: mdipierro mdipie...@cs.depaul.edu Date: Sep 23

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
confess being a complete n00b regarding linux admin. Is sendmail enough? What could I be missing? Miguel

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] How to upload/process data file in GAE?

2010-10-23 Thread Miguel Goncalves
Few options I can think of: 1- use xmlrpc to upload the content of your file. Store it in a variable and process it right there. 2- have a table (well field in a table) dedicated to store the content of your file. Once it is updloaded, process it and empty the field. -Miguel On Fri, Oct 22

Re: [web2py] Re: Routes.py on GAE

2010-09-14 Thread Miguel Goncalves
5) Not sure what is wrong with the line 5. thanks Miguel On Sun, Sep 12, 2010 at 12:29 PM, Jonathan Lundell jlund...@pobox.comwrote: On Sep 12, 2010, at 11:46 AM, Miguel Goncalves wrote: I attached the zipped routed file to this email. Thank you. It looks OK. Miguel, if I send you

Re: [web2py] Routes.py on GAE

2010-09-14 Thread Miguel Goncalves
Thanks all! On Tuesday, September 14, 2010, mdipierro mdipie...@cs.depaul.edu wrote: Thanks Jonathan, I will fix this tonight. massimo On Sep 14, 9:56 am, Jonathan Lundell jlund...@pobox.com wrote: Massimo, here's a patch. In rewrite.py, change this:         exec routesfp.read() in

Re: [web2py] Re: How to insert only new items in db as fast as possible?

2010-09-10 Thread Miguel Goncalves
of your products are new 3) insert new products in a single operation using the GAE API: db.put(list_of_models) And if you have timeouts then break it up with Task Queues. On Sep 9, 4:37 pm, Miguel goncalvesmig...@gmail.com wrote: Hi I have the following table: db.define_table(products

[web2py] How to insert only new items in db as fast as possible?

2010-09-09 Thread Miguel
this (especially on GAE). thanks Miguel

Re: [web2py] Re: Routes.py on GAE

2010-09-09 Thread Miguel Goncalves
= ( ('/', '/reviewround/default/index'),) routes_out = ( ('/reviewround/default/index', '/'),) -Miguel On Thu, Sep 9, 2010 at 9:28 AM, Jonathan Lundell jlund...@pobox.com wrote: On Sep 9, 2010, at 9:17 AM, mdipierro wrote: try: import rocket except: logging.warn('unable to import Rocket

Re: [web2py] Re: Routes.py on GAE

2010-09-08 Thread Miguel Goncalves
Hi Massimo Did you, by any chance, make any progress on this issue? Thanks Miguel On Tue, Sep 7, 2010 at 4:43 AM, mdipierro mdipie...@cs.depaul.edu wrote: Thanks for the reminder. I will look into this today. On Sep 7, 1:28 am, Miguel Goncalves goncalvesmig...@gmail.com wrote: Hi I

Re: [web2py] Re: Routes.py on GAE

2010-09-07 Thread Miguel Goncalves
/default/index'),) routes_out = ( ('/reviewround/default/index', '/'),) thanks Miguel

[web2py] Crash in the appadmin db page when trying to view one of my tables

2010-09-06 Thread Miguel
idea of what is going wrong? thanks -Miguel

Re: [web2py] Re: Crash in the appadmin db page when trying to view one of my tables

2010-09-06 Thread Miguel Goncalves
Thanks for your comment ! that made me look into the fields that are references and quickly found what was wrong. In my insert, I harcoded the categoryID to 63which does not exist anymore in my category table. Stupid mistake. Sorry. Thanks again; -Miguel

[web2py] xmlrpc does not work on GAE (while it works fine on dev local gae server) ??

2010-09-06 Thread Miguel
/default/ index/call/xmlrpc') RPCServer.DelProducts() What am I missing? Did anybody manage to run xmlrpc on GAE? thanks Miguel

Re: [web2py] xmlrpc does not work on GAE (while it works fine on dev local gae server) ??

2010-09-06 Thread Miguel Goncalves
://myApp.appspot.com/myApp/default/call/xmlrpc' -Miguel On Mon, Sep 6, 2010 at 10:38 PM, Miguel goncalvesmig...@gmail.com wrote: Hi I have a function exposed as a xmlrpc service. It works perfectly in the dev gae local server but once I deployed my application to the live servers I get

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

2010-08-24 Thread Miguel Lopes
Thank you! Importantly, although it is very convenient to have these values serialized, it is simple to get around this jQuery imposed limitation (bug). Miguel On Tue, Aug 24, 2010 at 4:02 AM, mdipierro mdipie...@cs.depaul.edu wrote: well... it is a bug not not in web2py, in jQuery: http

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

2010-08-24 Thread Miguel Lopes
/ajax-upload/- a dedicated javascript script library http://trentrichardson.com/2009/06/05/meet-jquery-iframer/- a jQuery plugin http://www.webtoolkit.info/ajax-file-upload.html - a 1Kb Javascript file Anyone has experience with these or other solutions? Miguel

[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
submit was pressed in regular controller ... It seems like the component mechanisms is ignoring the value of 'status'. Miguel

[web2py] scripting components

2010-08-13 Thread Miguel Lopes
if there is a way to couple a scripting file with the component (so I can enjoy the advantage of having the js in its own file)? What am I doing wrong in the alternative solution of including the js code via response.headers? Miguel

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
I wonder if this would also work with block templates - supposing block templates are integrated before the header is set. I remember recently reading about block templates. Have this been integrated in the reference distribution? Thank you so much for all the great help. Miguel On Fri, Aug 13

[web2py] using URL() inside a component view

2010-08-10 Thread Miguel Lopes
/6Clockwork Orange/a And I would like to get: a href=/init/default/view_detail/6Clockwork Orange/a How can I achieve this? Txs, Miguel

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

2010-08-10 Thread Miguel Lopes
Txs! I see the inclusion of request.application makes the URL being rendered with a .load extension or not. This seems a bit strange. I wonder if the solution will be stable! Miguel On Wed, Aug 11, 2010 at 2:03 AM, Bruno Rocha rochacbr...@gmail.com wrote: I Solved using this way: URL

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, Thank you. Maybe I didn't explain what I wanted well, but you understood very well! Actually the solution is so simple it is embarrassing :-) Miguel On Tue, Aug 3, 2010 at 9:51 AM, Iceberg iceb...@21cn.com wrote: Don't what you really want. In short, modules organize your functional

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

2010-08-02 Thread Miguel Lopes
will automatically launch the debug perspective. BTW If you search you can find some info on getting code completion to work (I have not yet bothered). HTH, Miguel On Mon, Aug 2, 2010 at 6:04 AM, pabloest pab...@gmail.com wrote: Thanks, Christopher and Miguel. I will try a different port. Actually

[web2py] code organization

2010-08-02 Thread Miguel Lopes
if it is possible, and if not what solution do you use for code organization? Miguel

Re: [web2py] code organization

2010-08-02 Thread Miguel Lopes
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 - at least supplying it a function object does not work. Miguel On Mon, Aug 2

  1   2   3   >