Re: [web2py] Re: 2.9.5-stable Version throws ticket when /admin accessed [CLOSED]

2014-03-22 Thread weheh
OK, the emergency is over! Thanks all for your suggestions. The solution was for me to go further back in time and copy an older backup of admin into place, so admin is working again. Next exercise is to try to climb up to 2.7.X, but as I said, I'm held back by this old module I didn't write.

Re: [web2py] Re: 2.9.5-stable Version throws ticket when /admin accessed [CLOSED]

2014-03-22 Thread weheh
@Niphlod: LOL. That's the same conclusion I came to in about 5 minutes. I rejiggered things and am sticking with subprocess module. Unfortunately, the damage was already done to my web2py setup. The silver lining to all this is I think I figured out how to get to python 2.7.x, so not all was a

[web2py] Re: 2.9.5-stable Version throws ticket when /admin accessed - dead in water

2014-03-21 Thread weheh
Does anyone think that this problem could be a result of installing the python multiprocessing module ... the back-port to python 2.5.X? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Version ugrade throws ticket when /admin accessed - dead in water

2014-03-20 Thread weheh
Just upgraded to 2.9.5-stable and ran into an issue. Whenever I try to access admin I get an internal error and a ticket. The console complains: I:\web2py\applications\admin\controllers/default.py:807: Warning: 'with' will become a reserved keyword in Python 2.6 I'm running python 2.5.X. The

[web2py] Re: Version ugrade throws ticket when /admin accessed - dead in water

2014-03-20 Thread weheh
Installation was from source. -- 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 Google Groups

[web2py] Re: 2.9.5-stable Version throws ticket when /admin accessed - dead in water

2014-03-20 Thread weheh
Gaah! I just restored the older version of web2py from which I upgraded (ashamed to say it's 2.3.2) and now I'm getting the same error. So apparently, something got corrupted along the way. Note to self: don't attempt upgrades just before a major release. -- Resources: - http://web2py.com -

[web2py] Re: Latest thinking -- Bootstrap vs. Foundation?

2014-02-13 Thread weheh
Thanks for the replies, everyone. I think I'm going with Bootstrap. -- 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

[web2py] Latest thinking -- Bootstrap vs. Foundation?

2014-02-10 Thread weheh
I'd just made up my mind to migrate to Bootstrap when a colleague said, Foundation. Checking the latest web2py doc, it points to Bootstrap. Would a few experienced users mind chiming in about which they prefer with web2py, Bootstrap or Foundation? Any gotchas wither way? Both look like they'll

[web2py] Re: Need opinions/reviews about embedded jquery/javascript XHTML editor

2014-01-17 Thread weheh
@Simon Anthony: Thanks so much for the pointer. I had forgotten about widgets ... I've never had to design one, yet. Can that approach also be adapted to work with TinyMCE, instead? On the surface, TinyMCE looks easier to mod than ckeditor. Also, so far, I prefer the TinyMCE doc. The

[web2py] Re: Need opinions/reviews about embedded jquery/javascript XHTML editor

2014-01-17 Thread weheh
, and effective. No marketing fluff. On Saturday, January 18, 2014 1:12:17 AM UTC+8, weheh wrote: @Simon Anthony: Thanks so much for the pointer. I had forgotten about widgets ... I've never had to design one, yet. Can that approach also be adapted to work with TinyMCE, instead? On the surface

[web2py] Need opinions/reviews about embedded jquery/javascript XHTML editor

2014-01-15 Thread weheh
I want to embedded a javascript-based xhtml editor in my app (much like the editor in Google groups that I'm using to type this note). The editor should work seamlessly with web2py. It must be extensible as I need to add modifications. I want it to be able to handle basic html tags (h1, h2 ...

[web2py] Re: Need opinions/reviews about embedded jquery/javascript XHTML editor

2014-01-15 Thread weheh
Good to hear that, since I just downloaded it. THANKS On Thursday, January 16, 2014 2:18:35 PM UTC+8, Simon Ashley wrote: +1 CKeditor seems to work fine, generically linked to text based widgets in models. No heavy demands/ extensions through. -- Resources: - http://web2py.com -

[web2py] Re: Writing Web2Py specification and finding free lance Web2Py coders

2014-01-11 Thread weheh
http://experts4solutions.com/ I've worked with a couple of the people on experts4solutions (I'm one myself) and it worked out well. On Saturday, January 11, 2014 3:31:20 PM UTC+8, Timothy Swieter wrote: Ruud - I'll take a look at the organization you linked too. On the face of it, this

[web2py] Re: Translatable string inside jquery selector

2014-01-09 Thread weheh
I believe you will have to execute the jquery selector at least once before your string will appear in the language file. On Friday, January 10, 2014 7:31:40 AM UTC+8, Ruud Schroen wrote: I have a translatable string inside a jquery selector. I properly escaped the single quotes cause i

[web2py] Re: Learning Management System survey

2014-01-09 Thread weheh
I missed this thread when it first came out. It would be interesting to have this as a plugin of sorts for web2py, maybe like grid. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Happy New Year everybody!

2014-01-02 Thread weheh
Thank you, Massimo and web2py group. Happy New Year everybody! On Thursday, January 2, 2014 6:06:30 AM UTC+8, Massimo Di Pierro wrote: Happy new year everybody, some good news: 1) python is growing popularity

[web2py] Can't pickle instancemethod objects -- web2py FAIL!

2013-12-23 Thread weheh
Was doing a db migration and ran into this nasty: Traceback (most recent call last): File C:\web2py\gluon\main.py, line 576, in wsgibase session._try_store_in_cookie_or_file(request, response) File C:\web2py\gluon\globals.py, line 749, in _try_store_in_cookie_or_file

[web2py] Re: Help! Can't pickle instancemethod objects -- web2py FAIL!

2013-12-23 Thread weheh
Yes, I already did that. On Monday, December 23, 2013 6:38:57 PM UTC+8, Leonel Câmara wrote: Delete all session files. I have also found that in windows boxes running apache + mod_wsgi, you will constantly run into session errors if you're running more than one web2py instalation as

[web2py] Re: Help! Can't pickle instancemethod objects -- web2py FAIL!

2013-12-23 Thread weheh
() procedure again, it starts to work in the new browser session. But it seems to be a one shot deal with each new session. I don't see that it's tenable to go through this every time someone first surfs to the site. On Monday, December 23, 2013 7:33:56 PM UTC+8, weheh wrote: Yes, I already did

[web2py] Can't pickle instancemethod objects -- web2py [Closed]

2013-12-23 Thread weheh
Phew, finally figured it out. session.myvar was getting assigned a default value from a db field, so couldn't be pickled. On Monday, December 23, 2013 8:54:32 PM UTC+8, weheh wrote: I have more details. As stated before, I erased all sessions. That didn't fix the problem. I then did

[web2py] Re: Online classes

2013-12-23 Thread weheh
Wonderful, wonderful. On Tuesday, December 3, 2013 2:34:18 PM UTC+8, Massimo Di Pierro wrote: Hello everybody, As you know I teach a certification program about web development with Python and I use web2py. I posted my most recent classes online: https://vimeo.com/75499986

[web2py] How to get captcha to display during https session

2013-12-22 Thread weheh
My registration page has changed to https session from http. But now, on IE (haven't tested other browsers yet), the Captcha doesn't display and IE gives the message Only secure content is displayed. Unless the user clicks the Show all content button, they won't be able to register. Anybody

[web2py] auth.is_logged_in and @auth.requires_signature() under investigation

2013-12-21 Thread weheh
I am dead in the water trying to make an https ajax call from an http session. CORS is enabled on server but the web2py_component https URL with user_signature=True now triggers an erroneous non-logged-in response to auth.is_logged_in() when, in fact, the user is logged in. First, thanks to

[web2py] Re: auth.is_logged_in(), @auth.requires_signature() behaving ornery in CORS situation

2013-12-21 Thread weheh
, LightDot wrote: You could also programmatically enforce the usage of ssl across the entire site. Your ajax call would always be https - https, making CORS redundant... Regards On Saturday, December 21, 2013 3:44:51 PM UTC+1, weheh wrote: I am dead in the water trying to make an https ajax

[web2py] Re: auth.is_logged_in(), @auth.requires_signature() behaving ornery in CORS situation

2013-12-21 Thread weheh
At the least, the doc should be updated to reflect that web2py_component and LOAD won't work under CORS conditions. On Sunday, December 22, 2013 12:21:22 AM UTC+8, weheh wrote: @LightDot: Yah, that's the conclusion I've come to and already begun implementing. But, something nags at me

Re: [web2py] Re: XMLHttpRequest cannot load https://www..... disallowed for cross-origin request ...

2013-12-18 Thread weheh
. If it works, then CORS is enabled but component load is failing. If it doesn't work, then you didn't enable CORS correctly. You should also try $.ajax({crossDomain: true, ...}); JQuery should add it automatically but maybe it's not detecting it properly. On Mon, Dec 16, 2013 at 4:12 PM, weheh

[web2py] Re: XMLHttpRequest cannot load https://www..... disallowed for cross-origin request ...

2013-12-16 Thread weheh
request, and have you set up CORS on the server? On Saturday, December 14, 2013 10:39:25 AM UTC-5, weheh wrote: I've got a dialog that I pop open and on it is a button that makes a web2py_component call. The button code looks like this, after it's gone through the XML() helper and jquery UI

[web2py] Re: XMLHttpRequest cannot load https://www..... disallowed for cross-origin request ...

2013-12-16 Thread weheh
, 2013 8:38:17 AM UTC-5, weheh wrote: Hi Anthony, I added CORS stuff to my Apache httpd.conf as per this http://enable-cors.org/server_apache.html but I'm still getting the same error message. Any ideas about how to push through this? On Sunday, December 15, 2013 1:13:55 AM UTC+8, Anthony

Re: [web2py] Re: XMLHttpRequest cannot load https://www..... disallowed for cross-origin request ...

2013-12-16 Thread weheh
UTC+8, Marin Pranjić wrote: @weheh can you try a custom jQuery.ajax cross domain call for testing/debugging? (just load something from HTTP to HTTPS) On Mon, Dec 16, 2013 at 2:38 PM, weheh richard...@verizon.netjavascript: wrote: Hi Anthony, I added CORS stuff to my Apache httpd.conf

[web2py] XMLHttpRequest cannot load https://www..... disallowed for cross-origin request ...

2013-12-14 Thread weheh
I've got a dialog that I pop open and on it is a button that makes a web2py_component call. The button code looks like this, after it's gone through the XML() helper and jquery UI. button class=... onclick=if (confirm('Read?')) {

[web2py] Re: XMLHttpRequest cannot load https://www..... disallowed for cross-origin request ...

2013-12-14 Thread weheh
Thanks, Anthony. Wasn't sure I had to go down that path. Yet another acronym to hide under the rug. On Saturday, December 14, 2013 11:39:25 PM UTC+8, weheh wrote: I've got a dialog that I pop open and on it is a button that makes a web2py_component call. The button code looks like

[web2py] Re: Form self-submit broken after redirection

2013-11-27 Thread weheh
@Niphlod -- thanks for your insights. Sorry, I have not enough juice to dig deep enough into the web2py_component to see how it's done and then port signature into it. But if I did I would definitely submit it as web2py_component is about the single most cool thing in all of web2py. That said,

[web2py] Re: Form self-submit broken after redirection

2013-11-26 Thread weheh
: I tried your code and it works fine for me. Maybe we need to see more of the code and understand the workflow better. On Friday, November 22, 2013 7:55:50 AM UTC-5, weheh wrote: It works like this: # index controller def index(): # some preamble if session.state

[web2py] Re: Form self-submit broken after redirection

2013-11-22 Thread weheh
It works like this: # index controller def index(): # some preamble if session.state == 'a': redirect(URL('thiscontoller', 'myfunc1.load', user_signature=True)) # some more states and redirects #later on def myfunc1(): form = SQLFORM.factory(Field(...the usual stuff,

[web2py] Form self-submit broken after redirection

2013-11-21 Thread weheh
I couldn't find this in my search of threads, so apologies if already answered. I'm opening a dialog and putting an ordinary form in the dialog. If the user presses the form's submit button, the form's controller gets called and the form.process().accepted step gets executed. Good so far.

[web2py] jQuery ReferenceError from within component with file upload

2013-11-14 Thread weheh
Ah, don't you love components with file upload? I'm back! So I am using the hack that makes components work with file upload. My view looks like this: {{= form}} script $(#file-form input.upload).button(); // this uses jquery UI's button routine {{# hack because jquery.form.js does

[web2py] Where to find name of uploaded file during the onvalidation step?

2013-11-06 Thread weheh
I'm doing a file upload using SQLFORM and a field of type upload. I want to intercept the file during onvalidation and do some file manipulation before saving. While in the onvalidation routine I can see the original filename and form.vars.filename.file, which I can read. I'm wondering

[web2py] Re: can grid export represented values rather than raw db values?

2013-11-02 Thread weheh
All good suggestions. Thanks! On Saturday, November 2, 2013 2:11:29 AM UTC+8, Anthony wrote: On Friday, November 1, 2013 12:05:56 PM UTC-4, weheh wrote: Anthony, TSV works pretty well. Now I have to figure out how to get rid of the html formatting I've put in, but I think TSV basically does

[web2py] Re: can grid export represented values rather than raw db values?

2013-11-01 Thread weheh
want to use represent in CSV exports, you can do rows.export_to_csv(..., represent=True). Anthony On Thursday, October 31, 2013 1:50:08 AM UTC-4, weheh wrote: My grid has a bunch of its data created with .represent. I want to export this in CSV format. The export class dumps raw underlying

[web2py] Re: browser won't go to http://127.0.0.1:8000/admin/default/ ... whatever ...

2013-10-30 Thread weheh
This is still an issue issue. Clicking the Edit button for myapp at the web2py admin interface (http://127.0.0.1:8000/admin/default/myapp) brings up the interface after a very long wait. This is reproducible. Smaller apps, like the web2py welcome and examples app, load quickly when I click the

[web2py] Re: browser won't go to http://127.0.0.1:8000/admin/default/ ... whatever ...

2013-10-30 Thread weheh
I think I located the source of the problem, but not its solution. The web2py http://127.0.0.1:8000/admin/default/myapp page scans the static folder. I keep a huge directory of uploads there, potentially terabytes of data stored using the scheme uploadfolder=os.path.join(request.folder,

[web2py] Re: browser won't go to http://127.0.0.1:8000/admin/default/ ... whatever ...

2013-10-30 Thread weheh
Yes, sir! -- 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 Google Groups web2py-users group.

[web2py] can grid export represented values rather than raw db values?

2013-10-30 Thread weheh
My grid has a bunch of its data created with .represent. I want to export this in CSV format. The export class dumps raw underlying data without the represent values shown by the grid. Is there a way to get export to put out the represented format used by grid? Or do I have to write a custom

[web2py] browser won't go to http://127.0.0.1:8000/admin/default/ ... whatever ...

2013-10-28 Thread weheh
I'm using PostgreSQL and debugging in Eclipse, although I also see this issue when not using the Eclipse IDE bugger. The issue is that when I try to go to look at a ticket or the db contents via the web2py admin interface, the interface won't come up. In other words, I can click on a ticket

[web2py] Re: Security question regarding session

2013-09-22 Thread weheh
Thanks, Massimo. Very thorough. Especially the part about multiple sessions going on for same user. Hadn't considered that. Cheers! On Monday, September 16, 2013 2:20:57 PM UTC+8, weheh wrote: How secure is session? I'm considering 2 methods for downloading a file: The first is via

[web2py] Security question regarding session

2013-09-16 Thread weheh
How secure is session? I'm considering 2 methods for downloading a file: The first is via an A('Download', _href=URL('download', 'file', args=[file_id])). The second would be to have session.file_id = file_id and then have only A('Download', _href=URL('download', 'file')), which causes the app

[web2py] paragraphs in markmin

2013-05-24 Thread weheh
I love markmin, but ... within a blockquoted section, blank lines translate into br/...stuff...br/, not p...stuff.../p. This is awkward. Searching the forum, I've found I can do this: ...first paragraph ... [[NEWLINE]] ...second paragraph [[NEWLINE]] etc. Kind'a fugly, IMHO. Is there a

[web2py] question about digital signatures

2013-05-24 Thread weheh
I've become an ajax junkie. I'm going back and adding digital signatures to my ajax calls. But, it looks like my calls are failing if the user isn't logged in. I suspect I'm interpreting _signature=True and @auth.requires_signature() incorrectly. Why don't they work in the situation where a

[web2py] Re: web2py.com Internal error

2013-05-17 Thread weheh
Yah, I saw it, too, but then it went away. I recommend trying again. On Saturday, May 18, 2013 9:49:04 AM UTC+8, samuel bonilla wrote: http://www.web2py.com/ in the website Internal errorTicket issued: unknownhttp://www.web2py.com/admin/default/ticket/unknown -- --- You received this

[web2py] Re: What would be the best way to optimize/resize images after upload

2013-05-08 Thread weheh
There are numerous ways to resize uploaded images. Some are done via the web server. Others are done within the app. For a couple of my apps I use the python PIL package to resize uploaded images to thumbnails and the like. Here's a code fragment that shows how to do it: def

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2013-04-22 Thread weheh
I've done this before -- multiple ajax forms on one page -- and not had any issues. EXCEPT, I'm guessing from the names of your functions that you have an upload type field in there somewhere, or possibly in both forms. That is going to be an issue, since upload fields have to be treated

[web2py] auth.has_permission(...) slow -- any way to speed this up?

2013-03-21 Thread weheh
I have a table that represents a group, which has permissions on a row-by-row basis. User belongs to certain number of groups, and the rows into the table are kept for convenience sake. I would like to screen that list of rows for a specific permission and exclude those rows from the list. The

[web2py] Re: auth.has_permission(...) slow -- any way to speed this up?

2013-03-21 Thread weheh
rows = db(auth.accessible_query('read', db.my_table, auth.user_id)).select(db.my_table.ALL) This will do all the required joins under the hood and resolve in one-query only. On Thursday, March 21, 2013 12:59:57 PM UTC+1, weheh wrote: I have a table that represents a group, which has

[web2py] how to update title from an ajax call

2013-03-12 Thread weheh
I'm using an ajax callback to dynamically update the main content in my page. I want to also change the page title and meta name='description' content='new description based on dynamically updated content' ... to mirror the new content. Since these are set in the layout.html file and I'm not

[web2py] Re: Can not check True/False on this field?

2013-03-08 Thread weheh
Cliff is absolutely right! If all you're storing is True or False, make the field a boolean. It's much more efficient in all respects. The list: string and list: reference are most useful if you're storing a reasonably small number of one to many relationships. -- --- You received this

[web2py] can not get routes.py to work

2013-03-08 Thread weheh
I'm a routes.py newbie! Amazing it's taken me this long to really dive in. This should be trivial, but I'm struggling to get mydomain/robots.txt to map to mydomain/static/robots.txt. In fact, none of my routes_in are working. My non-working routes.py file: #!/usr/bin/python # -*- coding: utf-8

[web2py] Re: can not get routes.py to work

2013-03-08 Thread weheh
https://github.com/web2py/web2py/blob/master/logging.example.conf#L59 https://github.com/web2py/web2py/blob/master/logging.example.conf#L99 and you should read it in the console. On Friday, March 8, 2013 3:08:22 PM UTC+1, weheh wrote: I'm a routes.py newbie! Amazing it's taken me this long

[web2py] Having trouble with user_signature

2013-03-07 Thread weheh
For extra security I'm adding user_signature=True to a critical ajax calls, but it isn't working for me. In my view, I have the following call after the page is created: ajax({{= URL(c='my_controller', f='do_something', vars=dict(x=session.x, y=session.y), user_signature=True)}}, [],

[web2py] Re: Can not check True/False on this field?

2013-03-07 Thread weheh
What kind of error message are you getting? I assume the request.vars['lesson'] and request.vars.answer are both indices into their respective tables. However, request.vars will be holding these values as strings. Without knowing more, I would suggest putting an int() around those two vars, as

[web2py] ajax choking on text - need help

2013-02-23 Thread weheh
I'm doing an ajax callback that's supposed to update a div with new text: # action ... return 'jQuery(#my-target).html(%s);' % clean_str(make_contents(filename )) def make_contents(filename): return open(filename, 'rb').read().decode('utf-8') def clean_str(text): return

[web2py] Re: ajax choking on text - need help

2013-02-23 Thread weheh
web2py source starts with # -*- coding: utf-8 -*- Text being read from file was written encode('utf-8') so read().decode('utf-8') produces the unicode. Forcing it unicode() again doesn't change anything. But, thanks for the suggestions! Any other ideas? On Saturday, February 23, 2013 10:20:38

[web2py] Re: Burned by web2py.js ... again

2013-01-15 Thread weheh
On Tuesday, January 15, 2013 1:39:54 AM UTC+8, Massimo Di Pierro wrote: What did you upgrade from? What specifically changed that broke your code? Upgrade was from 2.1.x. I tried to trace down exactly what broke the code, but may have wiped out the tracks accidentally by changing some code

[web2py] Burned by web2py.js ... again

2013-01-13 Thread weheh
I upgraded to web2py 2.3.2 last week and got burned by web2py.js breaking backwards compatibility with my component file upload. This is probably the 3rd time this has happened to me, so shame on me for not taking precautions. Nevertheless, I think it highlights an underlying web2py problem.

[web2py] Re: restful DELETE not getting vars

2013-01-11 Thread weheh
On further analysis, GET doesn't have vars passed to it either, which is problematic. --

[web2py] restful DELETE not getting vars

2013-01-10 Thread weheh
Using latest release 1.3.x. @request.restful() def rest(): response.view = 'generic.json' def GET(*args, **vars): ... def POST(*args, **vars): ... def PUT(*args, **vars): ... def DELETE(*args, **vars): if 'delete' in args[0]: return

[web2py] how to quote in markmin

2013-01-09 Thread weheh
How to quote to get markmin to print instead of amp;? --

[web2py] registration issue with web2py 2.3.2

2013-01-07 Thread weheh
After upgrading to 2.3.2, my custom user registration breaks. I have auth_user password encoded as follows in my user's model: ... Field('password', 'password', readable=False, label=T('Password'), requires=[CRYPT(), IS_LENGTH(512, 6)], ), ... During

[web2py] Re: registration issue with web2py 2.3.2 [CLOSED]

2013-01-07 Thread weheh
. On Monday, January 7, 2013 10:47:47 PM UTC+8, weheh wrote: After upgrading to 2.3.2, my custom user registration breaks. I have auth_user password encoded as follows in my user's model: ... Field('password', 'password', readable=False, label=T('Password

[web2py] just upgraded to 2.3.2 stable and getting ticket ...

2013-01-06 Thread weheh
Traceback (most recent call last): File C:\web2py\gluon\restricted.py, line 212, in restricted exec ccode in environment File C:\web2py\applications\myapp\views\foo/xyzzy.html, line 516, in module File C:\web2py\gluon\compileapp.py, line 140, in LOAD from html import TAG, DIV,

[web2py] Re: REF: Change order of fields in a form??!

2013-01-05 Thread weheh
Probably the easiest way to change order of fields in a form is change the order in which the fields are declared in the db.define_table(Field()...) model. On Friday, January 4, 2013 3:22:51 PM UTC+8, software.ted wrote: How do you change the order of the form after it has been created using:

[web2py] Multiple File Upload

2013-01-04 Thread weheh
Is multi-file upload still roll-your-own, a la: https://groups.google.com/forum/?fromgroups=#!searchin/web2py/multiple$20file$20upload/web2py/XpnUb2_MaRc/DkUOi4iDrPYJ or is there something native, as per proposals:

[web2py] Re: fadeOut response.flash

2012-12-20 Thread weheh
Look at the js named web2py.js which comes with the scaffolding. The flash function does not fadeout after time. You can add a function to this file (or modify the flash function) to timeout and fadeOut your flash as you choose. On Thursday, December 20, 2012 4:36:25 PM UTC+8, Johann Spies

[web2py] impersonate broken

2012-12-09 Thread weheh
Since upgrading to web2py 2.x from 1.9x.x, (I'm running 2.2.1 stable from source) auth.impersonate isn't working for me any more. My controller user.py has an impersonate action that calls auth.impersonate (first bold line below): @auth.requires_login() def impersonate(): user_id =

[web2py] Re: impersonate broken

2012-12-09 Thread weheh
this is fixed in the nightly built. On Sunday, 9 December 2012 07:44:45 UTC-6, weheh wrote: Since upgrading to web2py 2.x from 1.9x.x, (I'm running 2.2.1 stable from source) auth.impersonate isn't working for me any more. My controller user.py has an impersonate action that calls

[web2py] is something broken with impersonate?

2012-11-28 Thread weheh
I'm running 2.1.1 stable and running http://.../impersonate/0 causes a failure in gluon/tools.py on line 2755 saying that user.id is not defined. However, no ticket is issued and instead, I get Internal errorTicket issued: unknownhttp://127.0.0.1:8000/admin/default/ticket/unknown --

[web2py] error in jsonrpc doc

2012-11-26 Thread weheh
web2py doc, Ch. 10 section on JSONRPC service has unfinished line: from gluon.contrib.simplejsonrpc import should read from gluon.contrib.simplejsonrpc import ServerProxy --

[web2py] web2py 2.1.1 web2py-component-flash breaks backward compatibility

2012-10-21 Thread weheh
There appears to be some new code in gluon/main.py to handle component flash. # @line 564 in gluon/main.py if response.flash: http_response.headers['web2py-component-flash'] = urllib2.quote( xmlescape(response.flash).replace('\n','')) Problem with this is that urllib2.quote() is putting

[web2py] response.stream

2012-10-18 Thread weheh
Is it possible to do a response.stream in the middle of an ajax callback? I want to give users a button, which if pressed, will tar up all their files and initiate a download. Something like this: TAG.BUTTON(..., _onclick=ajax(%s, [], ':eval'); % URL(c='mycontroller', f='mydownload')) Then

[web2py] Re: response.stream

2012-10-18 Thread weheh
)) On Thursday, October 18, 2012 8:09:09 AM UTC+2, weheh wrote: Is it possible to do a response.stream in the middle of an ajax callback? I want to give users a button, which if pressed, will tar up all their files and initiate a download. Something like this: TAG.BUTTON(..., _onclick=ajax(%s

[web2py] SQLFORM.grid 2.1.1 backward compatibility issue

2012-10-18 Thread weheh
I have a datetime field I want to represent differently using a lambda function. Instead of datetime, I want a timedelta. This was not a problem with version 1.99.x but is a problem with 2.1.1 because grid tries to do a row.year, which throws this ticket: Traceback (most recent call last):

[web2py] Re: response.stream

2012-10-18 Thread weheh
This thread seems to have the answer: https://groups.google.com/forum/?fromgroups=#!searchin/web2py/content$20disposition/web2py/61vbQQ6_-vk/zqfK4qCXxdEJ The key is to use _onclick='window.open(%s);' % URL(...download script ...) This works OK, but, to be blunt, it's fugly the way it performs

[web2py] Has anyone seen any difference with response.flash since upgrading to 2.1.1?

2012-10-18 Thread weheh
Has anyone seen any difference with response.flash since upgrading to 2.1.1? --

[web2py] Re: Reloading modules stops working after some time ...

2012-10-18 Thread weheh
I am now seeing this issue again on 2.1.1. I'm getting True from is_tracking_changes() but a change in one of my modules isn't showing in the browser. On Tuesday, October 16, 2012 4:15:42 AM UTC+8, David Marko wrote: I have a module in my app that i was working on extensively today. I

[web2py] Is this possible: html link with ajax response?

2012-10-18 Thread weheh
I want to follow a link AND get a response from an ajax request. Something like this: A('link text', _href=URL(...), _onclick='alert(test); jQuery(somediv).html(foobar).show();') Is that possible? --

[web2py] Re: web2py/gluon/compileapp.py throwing ticket

2012-10-17 Thread weheh
Uh, yes. --

[web2py] response.flash during login - backward compatibility issue

2012-10-17 Thread weheh
I use a non-standard login where I user auth.settings.login_onaccept to complete the login process. Prior to upgrading to web2py 2.1.1, my login response.flash would display Welcome so and so. now, it displays Welcome%20so%20and%20so I think something downstream in web2py changed because I

[web2py] Re: response.flash during login - backward compatibility issue

2012-10-17 Thread weheh
I'm now seeing this in other cases, so it's not isolated to login. --

Re: [web2py] Re: Reloading modules stops working after some time ...

2012-10-17 Thread weheh
I experienced this issue with the 1.99 series web2py. Not enough experience with 2.1.1 to say for sure if it's still there. However, with 2.1.1, when I insert print is_tracking_changes() I always see True. Will report any inconsistencies if I see them in the future. On Thursday, October 18,

[web2py] web2py/gluon/compileapp.py throwing ticket

2012-10-16 Thread weheh
I'm getting the following ticket after upgrading from web2py 1.99.x to 2.1.1 source: Traceback (most recent call last): File N:\web2py\gluon\restricted.py, line 209, in restricted exec ccode in environment File N:\web2py\applications\myapp\views\mycontroller/index.html, line 444, in

[web2py] Re: Basic question about CSS / Web2py !

2012-10-15 Thread weheh
Check the doc on Database Abstraction Level for the full signature of Field. The Field argument to db.define_table includes the label argument, and yes, you can do something like this: db.define_table('mytable', Field(myfield, label=T('mylabel'), ) On Tuesday, October 16, 2012

[web2py] Re: Basic question about CSS / Web2py !

2012-10-15 Thread weheh
msg = 'this is a very long string ...' msg += 'this is some more ' msg += 'and more ...' db.define_table(..., Field='xyz', label=DIV(msg, _style='width: 100px;'), ...) On Tuesday, October 16, 2012 10:10:20 AM UTC+8, Don_X wrote: weheh ! Thank you for your response

[web2py] Re: doc suggestion

2012-10-15 Thread weheh
:25:37 AM UTC+2, weheh wrote: Optional change bars could be useful on the online documentation. --

[web2py] impersonate anonymous

2012-10-13 Thread weheh
How does one go about impersonating an anonymous user, the effect being that session will take on the anonymous user's last session state? impersonate/0 would restore session to its state before beginning impersonation. --

[web2py] doc suggestion

2012-10-13 Thread weheh
Optional change bars could be useful on the online documentation. --

[web2py] Re: No module named webclient

2012-09-26 Thread weheh
I don't have login permissions on the doc any longer but I could clean up a few typos if you'll give access again. On Wednesday, September 26, 2012 11:16:58 AM UTC+8, Massimo Di Pierro wrote: yes. requires 2.0.x On Tuesday, 25 September 2012 21:45:04 UTC-5, weheh wrote: Using web2py 1.99.4

[web2py] How to get geo location?

2012-09-25 Thread weheh
I want to play around with geo location stuff. Is there a simple way to get the location of the user's browser when they access a controller/action within web2py? I'm not trying to convert an address to a geo location. I'm looking for lat/long info from the user's browser at the time they make

[web2py] No module named webclient

2012-09-25 Thread weheh
Using web2py 1.99.4, as per doc on functional testing, I'm doing: from gluon.contrib.webclient import WebClient Traceback shows: File N:\web2py\gluon\custom_import.py, line 293, in __call__ fromlist, level) File N:\web2py\gluon\custom_import.py, line 132, in __call__ raise e #

[web2py] URGENT - web2py server crashes

2012-09-19 Thread weheh
I'm getting a web2py crash. Here's the trace at the web2py 1.99.7 (2012-03-04 22:12:08) stable console: DEBUG: connect attempt 1, connection error: Traceback (most recent call last): File C:\web2py\gluon\dal.py, line 5955, in __init__ self.adapter = ADAPTERS[self._dbname](*args) File

Re: [web2py] URGENT - web2py server crashes

2012-09-19 Thread weheh
Definitely some kind of running out of memory issue. Now, I'm getting this: web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2011 Version 1.99.7 (2012-03-04 22:12:08) stable Database drivers available: SQLite3, pymysql, psycopg2, pg8000, IMAP Starting hardcron... please visit:

Re: [web2py] URGENT - web2py server crashes

2012-09-19 Thread weheh
How to disable cron? I've read other threads on this, but can't find the right incantation. On Thursday, September 20, 2012 9:37:18 AM UTC+8, Jonathan Lundell wrote: On 19 Sep 2012, at 6:27 PM, weheh richard...@verizon.net javascript: wrote: Definitely some kind of running out of memory

<    1   2   3   4   5   6   7   8   9   10   >