[web2py] csv export/import oddities

2010-02-04 Thread Miguel
can import the file back in web2py CASE B: - Export the entire db to csv - Open the excel - The csv.sniffer can recognize the format - However I CANNOT import the file back in web2py Any suggestions here? This makes it impossible for me to add testing data in excel and import it back into web2py.

[web2py] crud delete weird behavior (on GAE at least)

2010-02-22 Thread Miguel
y has been deleted. It is like the delete is being called twice! Any idea of what might be causing this? thanks Miguel -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To

[web2py] use of the modules directory?

2010-03-31 Thread Miguel
Hi What is the purpose of the modules directory? I did not find an explanation in the web2py book. Also what is the "web2py" way of having a set of utility functions used by several controllers? Put everything in a file and import it? where should the file live? thanks Miguel -- Yo

[web2py] Import modules not working

2010-04-01 Thread Miguel
;, line 196, in local_import_aux exec("import %s as mymodule" % name) in env File "", line 1, in ImportError: No module named applications.mlinks.modules.clienttools the clienttools.py file is in the modules directory of my application. What am I doing wrong? Thanks -Mig

[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

[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

[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

[web2py:38484] Are self references broken on GAE?

2010-01-06 Thread Miguel
py", line 203, in __init__ field.requires = gluon.sql.sqlhtml_validators(field) File "C:\web2py\gluon\sql.py", line 454, in sqlhtml_validators referenced = field._db[field_type[10:]] File "C:\web2py\gluon\sql.py", line 1265, in __getitem__ return dict._

[web2py] Is there a better way of doing this in GAE?

2010-01-13 Thread Miguel
Hi Advertisements can be published in different magazines. I represent this with the following tables: db.define_table("magazine", SQLField("owner",db.auth_user, writable=False, readable=False)) db.define_table("advertisement", SQLField("owner",db.auth_user,writable=False, readable=False),

[web2py] Easy way to export and import all the tabes at once?

2010-01-17 Thread Miguel
multiple computers. Thanks -Miguel -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For mo

[web2py:13621] Problems with CAS

2008-12-16 Thread Miguel
e password but it is still not working. Any clues of what could be going wrong? Thanks Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email

[web2py:14143] web2py with T2 does not work on GAE

2008-12-26 Thread Miguel
Hi I installed web2py and the T2 plugin. I also when through the puppies tutorial and everything works fine locally when I am running web2py server. However when I run GAE locally (dev_appserver.py) I get the following error: Internal Error Ticket Issued: Unknown What am I missing? Bellow i

[web2py:14391] t2 looking for files in the wrong directory on GAE

2009-01-02 Thread Miguel
e the file really lives in: G:\google_appengine\CRBox\applications\plugin_t2\static\t2\media I am assuming the problem comes from the mapping defined in the yaml file (which I did not modify yet). What is the right way of fixing this? Thanks Miguel --~--~-~--~~~---~--

[web2py:16909] Re: Critical point in web2py

2009-02-25 Thread Miguel
+1 on the docs. Also, Vihnag idea is really very good. vihang wrote: > I think we need a bit more organized effort here. For instance someone > can take a lead on docs. He could create a TOC of a manual/wiki, and > then we can individually pick sections to fill in the doc/wiki, i.e. > be a contr

[web2py:16906] load_tables method in database connection object

2009-02-25 Thread Miguel
become from typing a wrong or incomplete definition at the prompt! Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegro

[web2py:17010] Re: Critical point in web2py

2009-02-26 Thread Miguel
on the Mac and the fantastic Ulipad on Windows. And I keep hiting walls and taking a lot of time to do relatively simple things. My point is a wiki is probably not the best investment for web2py. Though I must agree that this depends fundamentally on Massimos goals. Miguel --~--~-~--~--

[web2py:18128] Re: Marketing suggestion

2009-03-16 Thread Miguel
Maybe this one tagline: "Enterprise strong, made simple" List of suggested taglines (don't think I missed any): "Enterprise strong, made simple" "Easy to use, industrial strength" "Easy framework; enterprise ready" Miguel Markus Gritsch wrote: &g

[web2py:20420] Re: amf-rpc and Flex 3

2009-04-24 Thread miguel
developers not wanting to use Java to interact with a database. Txs for any help, Miguel On Apr 18, 9:44 am, Alexei Vinidiktov wrote: > Hi, > > Now that web2py natively supports amf-rpc, I'd like to make use of it > but I need some guidance. > > I want to use web2py withFl

[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

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

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

[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] 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] 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] Re: ANN: ide2py: editor, shell and debugger for web2py (experimental)

2011-08-11 Thread Miguel
Looks great!

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

[web2py] Previous location

2010-05-03 Thread Miguel Lopes
comming from in case he calls an action with a incorrect or the wrong parameters. Txs, Miguel

Re: [web2py] Re: Previous location

2010-05-03 Thread Miguel Lopes
request.env.http_referer is not working for me. I checked (http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z14) and the referer is optionally set by the client. So we can not take it for granted. Miguel On Mon, May 3, 2010 at 10:45 PM, mr.freeze wrote: > I'm not sure if it'

Re: [web2py] Re: Previous location

2010-05-03 Thread Miguel Lopes
redirect(request.last_location) # including args Perhaps someone knows of an alternative way to accomplish the same? Miguel

[web2py] Custom widgets and form errors

2010-05-07 Thread Miguel Lopes
scripting within the widget. Perhaps inheriting from the standard div tag and creating an extended div that knows how to deal with errors? Miguel

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&

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

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

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

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

Re: [web2py] Idea/question

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

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

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

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

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

[web2py] SSL Error on windows

2010-05-11 Thread Miguel Lopes
.do_handshake() File "c:\python26\lib\ssl.py", line 293, in do_handshake self._sslobj.do_handshake() SSLError: [Errno 1] _ssl.c:480: error:1407609C:SSL routines:SSL23_GET_CLIENT_HEL LO:http request Any ideas? Miguel

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

2010-05-11 Thread Miguel Lopes
contacts, and their interactions. I'm not sure if it is ok. But if it is I'll be happy to provide a screenshoot - although I'm pretty sure there is better work out there! Miguel

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 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 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
test And web2py 1.65.5 on Debian on the remote server - the unsuccessful test I believe 1.65.5 supports jsonrpc and that this is served by default on port 8000. Am I wrong? What am I missing? Miguel

Re: [web2py] Re: jsonrpc call failure

2010-05-11 Thread Miguel Lopes
causing the connection to be refused. Unfortunately I've been doing variations on this for about 20 minutes or so!!! Sorry for this and Txs for the help! Miguel

Re: [web2py] Looping in the browser?

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

Re: [web2py] Re: SSL Error on windows

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

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

2010-05-13 Thread Miguel Lopes
anywhere on the LAN. However, now that I have web2py running with SSL, even the applications must be accessed via SSL. I expected that only the admin would require SSL. Is this also a matter of configuration or is there some other reason? I do have very little knowledge on networks and deployment in general. So I wonder what is the reason. Miguel

Re: [web2py] web2pyslices source code

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

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

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

[web2py] Problem with response.files.append

2010-05-17 Thread Miguel Lopes
='jquery.autocomplete.js'))}} {{extend 'layout.html'}} In Windows XP with both web2py 1.77 and 1.78.2 doesn't work! Miguel

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

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

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

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

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

2010-05-17 Thread Miguel Lopes
checked! Miguel On Mon, May 17, 2010 at 7:55 PM, mdipierro wrote: > Summarizing. It always works exept when you run 1.78.x over SSL on XP. > Didd you check if 1.78.x works without SSL and if it works on other > platform (Mac, Linux)? Did you check different browsers (although this > d

Re: [web2py] Re: new stuff in trunk...

2010-06-01 Thread Miguel Goncalves
tegrates nicely with paypal so I did not have to do much work :) I think these 2 paypal methods would be the most interesting to have integrated in web2py since they both support credit cards processing and are a cheap and easy way to support payments. -Miguel On Tue, Jun 1, 2010 at 7:58

[web2py] storing a token to identify a service user

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

Re: [web2py] load form by its name

2010-08-01 Thread Miguel Lopes
t, because it will be available in the context. Then there is the question of where to store these pre-built forms. In general I tend to create a model file exclusively for reusable forms. Miguel

Re: [web2py] Getting Eclipse / Pydev running

2010-08-01 Thread Miguel Lopes
faualt web2py port to something like 8080. It should be fine. HTH, Miguel

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

2010-08-02 Thread Miguel Lopes
de 5. When you wish to debug some code just double click, or "right-click" on the code editors left margin to set break points. PyDev 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,

[web2py] code organization

2010-08-02 Thread Miguel Lopes
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,

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

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

Re: [web2py] csv export/import oddities

2010-02-04 Thread Miguel Goncalves
it > back together to re import. > > -Thadeus > > > > > > On Thu, Feb 4, 2010 at 12:30 PM, Miguel wrote: > > Hi > > > > I am running into weird issues with the csv import/export of the db. > > > > To start I use the following code to ch

[web2py] Question about web2py license

2010-02-22 Thread Miguel Lopes
ywers. But would this be possible? br, Miguel -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroup

Re: [web2py] Question about web2py license

2010-02-22 Thread Miguel Lopes
think, this could be a relevant subject to other people in the community. Miguel -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email

Re: [web2py] Question about web2py license

2010-02-22 Thread Miguel Lopes
in my opinion, unclear regarding leasing application usage. ... > > You can use your app as a SaaS... your not distributing web2py your > using web2py. > This clarifies it for me. It seems that is really the idea I was missing (usage). Thanks Thadeus for the clarification. Miguel --

Re: [web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-22 Thread Miguel Goncalves
I am running into the same problem. Replacing count by len seems to work. Will this fix be included in the next version of web2py or is there a "better"/other way of addressing this? -Miguel On Sun, Feb 21, 2010 at 3:03 PM, what_ho wrote: > I got the same issue, delete operatio

Re: [web2py] crud delete weird behavior (on GAE at least)

2010-02-23 Thread Miguel Goncalves
Anybody run into a similar issue? I cannot seem to figure it out. :( Thanks -Miguel On Mon, Feb 22, 2010 at 6:09 PM, Miguel wrote: > Hi > > I implemented the following function to delete an entry in a db: > > @auth.requires_login() > def DeleteSite(): >msg = T(&qu

Re: [web2py] crud delete weird behavior (on GAE at least)

2010-02-23 Thread Miguel Goncalves
27;No such record: %s' % key However the table does contain a record equal to key. What gives? Thanks Miguel On Tue, Feb 23, 2010 at 11:04 AM, Wes James wrote: > Have you uploaded your app to gae and tested it there? > > -wes > > On Tue, Feb 23, 2010 at 10:57 AM,

Re: [web2py] Re: crud delete weird behavior (on GAE at least)

2010-02-23 Thread Miguel Goncalves
How do I do that? On Tue, Feb 23, 2010 at 7:09 PM, mdipierro wrote: > I would try delete and rebuild indices. > > On Feb 23, 7:54 pm, Miguel Goncalves > wrote: > > Yes I tried to upload it to GAE but I ran into the missing indexes issue. > So > > I was trying to run

Re: [web2py] Re: crud delete weird behavior (on GAE at least)

2010-02-26 Thread Miguel Goncalves
I just saw that 1.75.5 is out. Since it has : "fixed problem with GAE deleted by id (thanks what_ho)" Do you think it is related or is this to fix the count vs len issue? In any case I will try it tomorrow morning. Thanks Miguel On Thu, Feb 25, 2010 at 3:33 PM, Miguel Goncalves wr

Re: [web2py] Re: crud delete weird behavior (on GAE at least)

2010-02-26 Thread Miguel Goncalves
Hi I just downloaded the new version (1.75.5) and it is still happening :( -Miguel On Fri, Feb 26, 2010 at 12:12 AM, mdipierro wrote: > I am a bit confused myself and I have low bandwidth to search the > thread. Please let me know if there is a problem still. > > On Feb 26, 2:0

Re: [web2py] Re: crud delete weird behavior (on GAE at least)

2010-03-02 Thread Miguel Goncalves
What is the file that locally stores the databases/tables contents when using GAE devserver? I would like to delete it (without re-installing) and start from scratch to see if this is due to a local issue. -Miguel On Fri, Feb 26, 2010 at 11:58 AM, Miguel Goncalves < goncalvesmig...@gmail.

Re: [web2py] Re: crud delete weird behavior (on GAE at least)

2010-03-03 Thread Miguel Goncalves
Just installed 1.76.3 and it seems to have fixed the problem. -Miguel On Tue, Mar 2, 2010 at 11:16 PM, Miguel Goncalves wrote: > What is the file that locally stores the databases/tables contents when > using GAE devserver? > I would like to delete it (without re-installing) and s

Re: [web2py] Re: Import modules not working

2010-04-02 Thread Miguel Goncalves
> with local_import and GAE? Try changing this line: > clienttools = local_import('clienttools') > To this: > from applications.mlinks.modules import clienttools > > On Apr 1, 11:57 pm, Miguel wrote: > > Hi > > > > I tried to install the clienttools.py module

Re: [web2py] Re: Import modules not working

2010-04-02 Thread Miguel Goncalves
yes I have one but it is empty. On Fri, Apr 2, 2010 at 4:01 PM, mr.freeze wrote: > Do you have an __init__.py in your modules folder? > > On Apr 2, 3:02 pm, Miguel Goncalves wrote: > > It gives me the following error: > > ImportError: No module named applications.mlinks.m

Re: [web2py] Re: Import modules not working

2010-04-02 Thread Miguel Goncalves
mdlinks/modules/__init__.py > > make sure they are there. That is the only possible problem. > > On Apr 2, 7:08 pm, Miguel Goncalves wrote: > > yes I have one but it is empty. > > > > On Fri, Apr 2, 2010 at 4:01 PM, mr.freeze wrote: > > > Do you have an __init

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

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

[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

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

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

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

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

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

[web2py:26640] Advice on deployment

2009-07-16 Thread Miguel Lopes
h for...). Alternatively, if I have to do it myself, how good is support (I mean hand-holding). This is important since it's my first deployment and I have no sys admin skills. Txs for the tips, Miguel --~--~-~--~~~---~--~~ You received this message because you are sub

[web2py:27392] Bugs in tools.py

2009-07-25 Thread Miguel Lopes
A little typo! Should be "isinstance" Traceback (most recent call last): ... @service.amfrpc3 File "/Applications/web2py/gluon/tools.py", line 2128, in amfrpc3 if not ininstance(domain,str): NameError: global name 'ininstance' is not defined web2py version 1.65.5 (2009-07-15 17:10:40

  1   2   3   >