Re: [web2py] row.update_record()

2017-05-22 Thread Miguel Lopes
torage object ... 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.

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

2017-05-22 Thread miguel
uest_tenant default to an 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:

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 wrote: > Hi Miguel, I've been talking with Niphlod, w2p maintainer. See here. > https://groups.google.com/forum/#!topic/web2py

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 wrote: > I'm not having luck with that. Can you post your yml file here? > > Another question: have you tried using GAE

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 wrote: > Hi Miguel, this seems to break the rest of app for me, including welcome: > > https://www.dropbox.com/s/sa7s3y

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 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" > wrote

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

2014-10-02 Thread Miguel Goncalves
ews without having 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 wrote: > Testing the latest 2.9.11 on GAE, seems like /admin app is breaking, since > many static resources can't be found. > I us

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

2014-10-02 Thread Miguel Goncalves
url: /(.+?)/static/(.+) # static_files: 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 w

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

2014-10-02 Thread Miguel Goncalves
: - 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 wrote: > you need to fix static serving

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

2014-09-30 Thread Miguel
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 to the

[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: - htt

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 applicat

[web2py] Conflict between Apache2 and web2py

2013-10-09 Thread Miguel Sánchez
apton go well with Apache and web2py Activating 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,

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

[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: /u

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

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 >

[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
... If you use this in multiple form you could move pad_indra to the 'controller' scope to share it. Miguel HTH

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

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

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

2012-03-27 Thread Miguel Lopes
e end-up with a representation! This does not happen if titles is a string. Note I'm using Python 2.5. Miguel On Tue, Mar 27, 2012 at 6:46 PM, Derek 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 f

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
t the culprit operation seems to be the string parsing, not the browser rendering: titles = [title.strip() for title in titles.split('|')] 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" 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
=%(titles));})" % dict(images=images, titles=titles), _language='javascript') All works but when rendered by the browser I do not get: Olá 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: 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 web

[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

[web2py] SQLFORM.grid links

2012-01-16 Thread Miguel
links = [lambda row: A(T('Details'),_href=URL("default","detailsubject",args=[row.subject.name]))] form = SQLFORM.grid( query=query, create=False, links = links, searchable=True, user_signature=False, fields=fields, deletable=False, editable=False, csv=True, maxtextlength=64, paginate=20, details=False ) 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 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 :-) >

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

2011-08-11 Thread Miguel
Looks great!

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
me of this and other 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 wrote: > I'm picking out a framework to use for fre

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

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/

[web2py] Limitation in template system

2011-07-13 Thread Miguel Lopes
rsd=None}} {{if rsd!=None:}} {{block 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] 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 wrote: > Dear frie

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
suggestion. 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 wrote: > Are you suggesting the possibility of defining a function like: >

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
in default action? 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-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 > &g

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

2011-07-06 Thread Miguel Lopes
roblem, but not flash. Here's my view template: The movie does not load and the flash player menu states "Movie not loaded...". However this should work, since it works fine with static files: Any tips? Miguel

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

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
tchall_function/page/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

[web2py] Metaprogramming in controller

2011-07-06 Thread Miguel Lopes
lect() def makePages(pages): for page in top_pages: exec ACTION_TEMPLATE NEW_ACTION.__name__ = page.link_name globals()[page.link_name] = NEW_ACTION makePages(pages) Miguel

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
forms.append(crud.create(db.blog_comment, message = T('Record Inserted'))) return dict(forms=forms) Miguel

Re: [web2py] form in loop view

2011-05-23 Thread Miguel Lopes
to response files: {{response.files.append(URL(r=request,c='static/biz',f='common.js'))}} {{response.files.append(URL(r=request,c='static',f='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

[web2py] Language selection

2011-05-08 Thread Miguel Morillo Iruela
uld be helpful. Ej: routes.py . . . 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 wrote: > > https://bitbucket.org/kra3/visual-lingua-website/src/8ac2627b0a19/appli

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

[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=gst&q=menu+vertical#02bc66127749782e the problem im facing is that i have no idea on how to gen

[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 "/home/www-data/

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
ot; or Number, Null, False or True') jsonrpc.json.JSONDecodeException: Expected []{}," or Number, Null, False or True >>> >From the browser using an url with or without credentials, for both: .../default/private_call/jsoncount .../default/public_call/failed_login I get: Object does not exist with a Status 404 content header Am I on the right track? How could this be achieved? Txs, Miguel

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 >

Re: [web2py] Learning materials for newbie

2011-01-28 Thread Miguel Lopes
ktop). You also have to pick some basic 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 wrote: > Web2py book : http://www.web2p

[web2py] Fwd: web2py basic auth

2011-01-27 Thread miguel
pps, like it is mentioned 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

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
web2py, instead of using some other solution? Txs José for the tip regarding sSMTP, I've also spotted what seems like a easy way to install and configure a mail server http://www.iredmail.org/. In case I can get this going I just might use sSMTP. txs, Miguel * * * * * * On Sun, Dec 5, 201

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

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
ur credentials or None 'username:password' I confess being a complete n00b regarding linux admin. Is sendmail enough? What could I be missing? Miguel

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] Routes.py on GAE

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

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

2010-09-13 Thread Miguel Goncalves
viewround/1.344790923581374734/gaehandler.py", line 52, in import gluon.main File "/base/data/home/apps/reviewround/1.344790923581374734/gluon/main.py", line 66, in rewrite.load() File "/base/data/home/apps/reviewround/1.344790923581374734/gluon/rewrite.py",

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

2010-09-10 Thread Miguel Goncalves
h 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 wrote: > > Hi > > > > I have

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

2010-09-09 Thread Miguel Goncalves
'index' routes_in = ( ('/', '/reviewround/default/index'),) routes_out = ( ('/reviewround/default/index', '/'),) -Miguel On Thu, Sep 9, 2010 at 9:28 AM, Jonathan Lundell wrote: > On Sep 9, 2010, at 9:17 AM, mdipierro wrote: > > > &g

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

2010-09-08 Thread Miguel
n take the appropriate action (insert or update). What I am looking for is the most efficient way to do this (especially on GAE). thanks Miguel

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 wrote: > Thanks for the reminder. I will look into this today. > > On Sep 7, 1:28 am, Miguel Goncalves wrote: > > Hi > > > > I guess this

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

2010-09-06 Thread Miguel Goncalves
'/', '/reviewround/default/index'),) routes_out = ( ('/reviewround/default/index', '/'),) 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
quot;index" is needed). So the proper url is: 'http://myApp.appspot.com/myApp/default/call/xmlrpc' -Miguel On Mon, Sep 6, 2010 at 10:38 PM, Miguel wrote: > Hi > > I have a function exposed as a xmlrpc service. > It works perfectly in the dev gae local server but once

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

2010-09-06 Thread Miguel
the xmlrpc call itself is failling on GAE! Here is how I make the call: RPCServer = ServerProxy('http://myapp.appspot.com/welcome/default/ index/call/xmlrpc') RPCServer.DelProducts() What am I missing? Did anybody manage to run xmlrpc on GAE? 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] Crash in the appadmin db page when trying to view one of my tables

2010-09-06 Thread Miguel
ta['content']==None else sanitize(data['content']), urlProduct=None if data['link']==None else sanitize(data['link']), urlImageBig=None if data['imgPreviewUrl']==None else sanitize(data['imgPreviewUrl']), urlImageSmall= None if data['imgPreviewUrl75']==None else sanitize(data['imgPreviewUrl75']), price=data['price'], author=None if data['artist']==None else sanitize(data['artist']), updateDate= data['updateDate'], categoryID=63) Any idea of what is going wrong? thanks -Miguel

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

2010-08-24 Thread Miguel Lopes
ums.com/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

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 wrote: > well... it is a bug not not in web2py, in jQuery: > > > http://www.jo

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

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

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 &

[web2py] scripting components

2010-08-13 Thread Miguel Lopes
I can't get this is to work. My doubts are: I wonder 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] 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 wrote: > I Solved using this way: > > URL(request.ap

[web2py] using URL() inside a component view

2010-08-10 Thread Miguel Lopes
v. However, the default behavior is that all links inside a component are trapped and loaded into the same component, thus if I have in the component view: {{ rec.contact.name}} This gets translated into: Clockwork Orange And I would like to get: Clockwork Orange How can I achieve this? Txs, Miguel

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 wrote: > Don't what you really want. In short, modules organize your functiona

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

  1   2   3   >