[web2py:17813] save not sticking

2009-03-10 Thread martin
i am using firefox 3.0.7 I am running through the cookbook example and when I get to where you change the test.py to... def recipes(): records=db(db.recipe.caegory==request.vars.category)\ .select(orderby=db.recipe.title) form=SQLFORM(db.recipe,fields=['category']) re

[web2py:17817] Re: save not sticking

2009-03-10 Thread martin
I changed it to... def recipes(): records=db(db.recipe.category==request.vars.category)\ .select(orderby=db.recipe.title) form=SQLFORM(db.recipe,fields=['category']) return dict(form=form,records=records) def show(): id=request.vars.id recipes=db(db.recipe.id==

[web2py:17818] Re: save not sticking

2009-03-10 Thread martin
I changed it to... def recipes(): records=db(db.recipe.category==request.vars.category)\ .select(orderby=db.recipe.title) form=SQLFORM(db.recipe,fields=['category']) return dict(form=form,records=records) def show(): id=request.vars.id recipes=db(db.recipe.id==

[web2py:17820] Re: save not sticking

2009-03-10 Thread martin
I downloaded 1.5.8 but still the same. Oh by the way I am using vista, but that shouldn't be a problem, right? On Mar 10, 11:31 am, martin wrote: > I changed it to... > def recipes(): >     records=db(db.recipe.category==request.vars.category)\ >                 .select(orderb

[web2py:17830] Re: save not sticking

2009-03-10 Thread martin
works in chrome, must be some ff thing On Mar 10, 11:57 am, martin wrote: > I downloaded 1.5.8 but still the same. Oh by the way I am using vista, > but that shouldn't be a problem, right? > > On Mar 10, 11:31 am, martin wrote: > > > I changed it to... > > d

[web2py:17831] cookbook view

2009-03-10 Thread martin
i am running through the cookbook tutorial and when I am at the view example and after adding the code {{extend 'layout.html'}} List all recipes {{=form}} {{for recipe in records:}} {{=A(recipe.title,_href=URL(r=request,f='show?id=%s'%recipe.id))}} {{=recipe.date}} {{pass}} {{=A('create

[web2py:17832] Re: cookbook view

2009-03-10 Thread martin
here is the spelled out stuff Ticket 127.0.0.1.2009-03-10.13-50-32.73dc4d1e-23db-4fd0-9136- ebb26bbbc8d0 Error traceback Traceback (most recent call last): File "gluon/restricted.py", line 97, in restricted File "C:\Users\Owner\Desktop\web2py\applications\cookbook/views/test/ recipes.html",

[web2py] xml in response not well formed

2011-09-25 Thread Martin
Hello All, sorry for the bother I am having an issue with Version 1.99.1 (2011-09-22 16:59:24) stable release. It seems to be that there are some problems when parsing the .xml view file, not sure. I have a function (device_cfg) in controllers/default.py, which performs some processing and pass to

[web2py] Re: xml in response not well formed

2011-09-25 Thread Martin
I appologize: the variables passed to the view are: operation = "leaf_modify" op_response = "True" Tincho

[web2py] Re: xml in response not well formed

2011-09-25 Thread Martin
yes, you are right, because the variables for the following xml part it suppose to be not available for current request, which corresponds to operation == 'get_leafs'... 1.0 2 2 ns1:max-lease-time

[web2py] Re: xml in response not well formed

2011-09-25 Thread Martin
Response Headers X-Powered-Byweb2py Set-Cookie session_id_nems_web=127.0.0.1-1c024dc8-7db7-440c-a45e- d57de93d8879; Path=/ Expires Sun, 25 Sep 2011 23:30:33 GMT Pragma no-cache Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Content-Typeapplication/xml

[web2py] Re: xml in response not well formed

2011-09-25 Thread Martin
I tested with Chrome and I don't have the issue... so, it seems to be that it's in the Firefox side... this is really weird... Thank you very much for your help Jonathan, I will include a restriction to open the application just with Chrome... Much appreciated! Martin

[web2py] How do I create a new child process from controller?

2011-02-04 Thread Martin
arrives to the web2py server. I am planning to build an web application to control process creation and termination. any help will be appreciated! Thanks and best regards, Martin

[web2py] Re: How do I create a new child process from controller?

2011-02-04 Thread Martin
Thank you very much Massimo for your reply! Take care!

[web2py] Accepting custom form without saving

2014-03-14 Thread Martin
Hi all, Please could anyone tell me how to accept a *custom SQLFORM* without inserting to db, since if form.process().accepted: seems to be perform insertion directly. thanks! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Custom fill with SQLFORM not saving. Web2py version 2.8.2

2014-03-14 Thread Martin
Hi all, ...if FORM.accepts(form,request.vars): .. not working for custom form, please may i know if i'am missing something... Thanks! def page1(): form=SQLFORM(db.a_table) if FORM.accepts(form,request. vars): session.vars=form.vars redirect(URL(r=request,f='confirm')

[web2py] Pulling data from API for real-time calculation

2014-03-14 Thread Martin
Hi all, Please could anyone help me out, I need to pull some data from some API (ex: https//xxx/aaa/ etc.) that returns json data type. I will take input from logged-in users (onkeyup event) with the API retured json to perform some real-time calculation and then display the result to the logg

[web2py] Re: Accepting custom form without saving

2014-03-14 Thread Martin
Thank you Massimo, you reply was helpful. Le jeudi 13 mars 2014 21:28:03 UTC+2, Martin a écrit : > > Hi all, > Please could anyone tell me how to accept a *custom SQLFORM* without > inserting to db, since > > if form.process().accepted: seems to be perform insertion di

[web2py] Re: Custom fill with SQLFORM not saving. Web2py version 2.8.2

2014-03-14 Thread Martin
it worked! thank you Le jeudi 13 mars 2014 21:00:24 UTC+2, Martin a écrit : > > Hi all, > > >...if FORM.accepts(form,request.vars): .. > not working for custom form, please may i know if i'am missing something... > Thanks! > > def page1(): >form=SQLFOR

[web2py] Re: Pulling data from API for real-time calculation

2014-03-15 Thread Martin
; environments where you do calculations in the background that takes more > than 300ms (i.e. not real time). > "usual" webserver timeout is set to 30-60 seconds. > > On Friday, March 14, 2014 5:30:48 PM UTC+1, Martin wrote: >> >> Hi all, >> Please could

[web2py] Pulling data every 30s for a ticker with web2py

2014-03-16 Thread Martin
Hi all, Please could anyone help me out, I need to pull some data from some API (ex: https//xxx/aaa/ etc.) every 30s and then display the result in a ticker How do I do this with Web2py + JavaScript ? I am new to web2py. Thank you. -- Resources: - http://web2py.com - http://web2py.com/book (Doc

Re: [web2py] Pulling data every 30s for a ticker with web2py

2014-03-19 Thread Martin
Le lundi 17 mars 2014 14:21:27 UTC+2, Ramos a écrit : > > does this help? > > http://vimeo.com/27478796 > > > 2014-03-16 17:48 GMT+00:00 Martin >: > >> Hi all, >> Please could anyone help me out, I need to pull some data from some API >> (ex: https//

[web2py] Form processing: multiple forms

2015-12-21 Thread Martin
I would like to generate a form2 based on input from form1. #Normal processing in test2 works fine. so all ok if both forms are made on init of page. def test2(): action = request.args(0) form1 = FORM( INPUT(_id = 'foo', _name = 'foo'), INPUT(_type=

[web2py] Re: Form processing: multiple forms

2015-12-21 Thread Martin
mandag 21. desember 2015 14.11.11 UTC+1 skrev Anthony følgende: > > if form1.process(formname="form_one").accepted: >> form2 = FORM(INPUT(_id = '0', _name = '0'), >> INPUT(_id = '1', _name = '1'), >> INPUT(_id = '2', _name = '2')

[web2py] Re: Form processing: multiple forms

2015-12-21 Thread Martin
can choose record to insert into db. but when form 2 execute it is not getting vars and just jump to "start" of function and giving me form 1 again. Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (S

[web2py] Re: Form processing: multiple forms

2015-12-21 Thread Martin
mandag 21. desember 2015 16.12.14 UTC+1 skrev Anthony følgende: > > I was hoping I could avoid redirect. Have to redirect to self then, and >> then keep output from form1 in session, so than could be used as input in >> form2. >> > > There's no reason to redirect to self. Just store what is nee

[web2py] Re: Form processing: multiple forms

2015-12-21 Thread Martin
rm1_data > > Anthony > > On Monday, December 21, 2015 at 10:23:15 AM UTC-5, Martin wrote: >> >> >> >> >> >> mandag 21. desember 2015 16.12.14 UTC+1 skrev Anthony følgende: >>> >>> I was hoping I could avoid redirect. Have to redi

[web2py] Have listener return unaltered message?

2016-02-04 Thread Martin
I'm trying to construct an instant payment notification listener in web2py. This requires me to receive a message from the other party and send it back unaltered. But I only have access to the request.vars which is a Storage object and already altered? How would I go about doing this? Hope you

[web2py] Re: Have listener return unaltered message?

2016-02-05 Thread Martin
ay, February 4, 2016 at 12:39:03 PM UTC-5, Martin wrote: >> >> I'm trying to construct an instant payment notification listener in >> web2py. This requires me to receive a message from the other party and send >> it back unaltered. But I only have access to the request.v

[web2py] Modified language file

2016-02-15 Thread Martin
I have a nginx web2py application under version control with mercurial. Today when I logged in to my server and ran hg diff i noticed that one of the language files in the application folder had been modified in my absence. The changes looks to be only formatting like : "--- a/languages/pl.py

[web2py] DatabaseError: database disk image is malformed

2016-04-11 Thread Martin
Hi, I am running a webshop built using web2py. Everything has been running smoothly for a few weeks but now I am having some problems. At seemingly random times the database will break somehow. The website becomes inaccessible and the tickets give the message "DatabaseError: database disk imag

[web2py] Re: DatabaseError: database disk image is malformed

2016-04-11 Thread Martin
le is > full of information regarding that particular error where are you > hosting your app ? > > On Monday, April 11, 2016 at 9:02:09 PM UTC+2, Martin wrote: >> >> Hi, >> >> I am running a webshop built using web2py. Everything has been running >> smoo

[web2py] Re: DatabaseError: database disk image is malformed

2016-04-12 Thread Martin
s not the smartest idea around. > SQLite is good but it's not a production backend if not strictly readonly. > > On Monday, April 11, 2016 at 10:22:23 PM UTC+2, Martin wrote: >> >> Ok, most of the information i found was only about how to repair such an >> error, bu

[web2py] web2py 2.9.5 - Janrain not displaying login logos

2014-06-06 Thread Martin
Hello has anyone succeeded getting Janrain to work properly on web2py 2.9.5 ? I have done as explained in the online book, but it doesn't seem to work, my page is appearing blank, without login logos. Please if you have succeed, I'd be glad to know how. -- Resources: - http://web2py.com - htt

[web2py] Database question, problem adding column

2017-02-05 Thread martin
Hi, I have an app in production to which I am trying to add a new column to an existing table. I have done this kind of thing before but now I am getting (1054, u"Unknown column 'product.category_tags' in 'field list'") (category_tags being the new column name) I have tried combinations of migr

[web2py] Database question, problem adding column

2017-02-07 Thread Martin
Still having this issue! Do the migration not work for mysql databases? I never had this problem with sqlite, but for various reasons I cannot use an sqlite database. I have now also tried manually adding the field by altering the table in the database and can then start the app. However, when

[web2py] Re: Database question, problem adding column

2017-02-07 Thread martin
ould remove it from the files in the databases >> folder. Then turn on migration and add the column back. There is a file, >> sql.log, in the databases folder that should show you all the sql >> statements that were run for you by the migration. >> >> Hope that

[web2py] Re: Database question, problem adding column

2017-02-07 Thread martin
I'm pretty sure I tried that as well without success... However, the problem is solved now. Something was wrong with the databases files (or I was missing something) and also I had comiled files that was recreating this field whenever I tried to remove it. My solution was perhaps not so pretty

[web2py:36660] Re: mercurial and bazaar timings

2009-12-06 Thread Martin Pool
calls: 10 (0 vfs) SmartSSHClientMedium(connected=False, username=u'mbp', host='bazaar.launchpad.net', port=None) bzr branch lp:~mbp/+junk/web2py-test /tmp/bzr 0.93s user 0.12s system 5% cpu 17.970 total coming from Australia; admittedly still slower but I would say not an

[web2py:36821] Re: mercurial and bazaar timings

2009-12-08 Thread Martin Pool
he. But in our measurements it is normally pretty close, so if there are things where it is enough to be a problem, we'd really like to either know about them or help you find ways around it. -- Martin -- You received this message because you are subscribed to the Google Groups "web2p

[web2py] Reliability of built-in web server

2010-12-20 Thread Martin H
Hi, I am normally a Django guy. I want to create a 'webadmin' tool for my customers to administer their accounts. Many of the servers that I want to provide this on, do not have a web server installed (and I don't want to install one). So I am essentially looking for a python based framework to

[web2py] Error in web2py book

2010-12-20 Thread Martin H
Hi, I believe there is a mistake in the web2py book. The last line of the 'Using Replicated Databases Servers' section on http://web2py.com/book/default/chapter/11#One-Step-Production-Deployment currently reads: where 1,2,3 are replicated servers and 3,4,5 are slaves. It should be the other

[web2py] Can't start web2py with SSL

2010-12-21 Thread Martin H
Hi, I am on Debian Lenny and trying to start web2py/rocket with SSL. I've created an SSL key and cert. When I try to start it, I get this: ERROR:Rocket.Errors.Port8443:ssl module required to serve HTTPS. I installed the debian package python-openssl and that hasn't changed anything. Can someon

[web2py] How to change the layout?

2010-12-25 Thread Martin Weissenboeck
Hi, I have downloaded a new layout from web2py.com/layout and I want to active it. There should be a link, but I cannot find it. Any ideas? Thx, Martin

Re: [web2py] How to change the layout?

2010-12-25 Thread Martin Weissenboeck
I have done it - now I have two layouts. But how to activate the second layout? 2010/12/25 Marin Pranjic > Download and install as a Plugin. > > > On Sat, Dec 25, 2010 at 1:08 PM, Martin Weissenboeck > wrote: > >> Hi, >> >> I have downloaded a new layout

[web2py] validator.py and T()

2010-12-27 Thread Martin Weissenboeck
) object in the code. Now I tried to use the T() object for all of these lines, but T() is not known. That is realy not good - a lot of users would not accept a website with mixed German and English words. What can I do? Which kind regards Martin

Re: [web2py] validator.py and T()

2010-12-28 Thread Martin Weissenboeck
> > That is the way I am doing woth my Portuguese systems and sites. > > 2010/12/27 Martin Weissenboeck > > Hi, >> >> I want to build a website using German. A lot of texts can be translated >> using the T() object. But there are some problems: >>

[web2py] Mail.send failure:STARTTLS ...

2010-12-28 Thread Martin Weissenboeck
failure:STARTTLS extension not supported by server.* Pure Python works fine: # python2.7 >>> import smtplib >>> server = smtplib.SMTP('127.0.0.1') >>> server.sendmail('a...@test.com','mygmailaddr...@gmail.com','test') Operating system: CentOS What shall I do? With kind regards Martin

[web2py] Re: Mail.send failure:STARTTLS ...

2010-12-28 Thread Martin Weissenboeck
ff...@mydomain.com' mail.settings.tls = False mail.settings.login = None *By the way: I had to change #* *"Click on the link http://..."; to * *"Click on the link https://..."; * ***(lines 88 and 93)* 2010/12/28 Martin Weissenboeck > Hi, > > I want my website to send

[web2py] Translation problem

2010-12-31 Thread Martin Weissenboeck
), It's full compatible. Are there any disadvantages in my solution? Or is there any other solution? Of course the whole file validators.py has to be changed. Maybe the file tools.py too? Is it possible to use this proposal in the next release? Regards, Martin

Re: [web2py] Translation problem

2010-12-31 Thread Martin Weissenboeck
web2py. 2010/12/31 Jonathan Lundell > On Dec 31, 2010, at 6:18 AM, Martin Weissenboeck wrote: > > I want to translate my web page to German. The T()"operator" is very fine, > but I could not find any way to translate message like > > "enter an integer less than or

Re: [web2py] Translation problem

2011-01-01 Thread Martin Weissenboeck
2010/12/31 Jonathan Lundell > On Dec 31, 2010, at 11:20 AM, Martin Weissenboeck wrote: > > No, I did not not want to translate these sentences *manually*. > The error_message=T(..) does not work, because there are some if-statements > inside the class IS_INT_IN_RANGE (and in som

[web2py] jQuery - need help !

2011-01-03 Thread Martin Weissenboeck
the other jQueery-function datepicker does not show any reaction. I have tried some other functions: neither of these functions did work. Maybe there is only a very small error - but I cannot find it. Any ideas? Regards, Martin

Re: [web2py] jQuery - need help !

2011-01-03 Thread Martin Weissenboeck
urposes try this _before_ loading the jQuery UI scripts: > > >$ = jQuery; > > > On Mon, Jan 3, 2011 at 3:50 PM, David J wrote: > > I think you don't have the full jquery ui package. I see you have custom > > > > On Jan 3, 2011 9:45 AM, "Marti

[web2py] Re: web2py 1.9.1.6 is OUT

2011-01-03 Thread Martin Weissenboeck
there should be an additional line after this line in def __init__ in class Recaptcha in file /gluon/tools self.comment = comment self.options = options Without this line, self.options does not get any value. Regard, Martin

[web2py] jquery.tooltip & jquery.cluetip do not work

2011-01-05 Thread Martin Weissenboeck
.7/jquery-ui.min.js"</a>; type="text/javascript"> https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/themes/cupertino/jquery-ui.css"; rel="stylesheet" type="text/css" /> Of course all of these files are part of the static section test10ui. I have tried Chrome, Safari, Opera - same results. IE did not show the website Regards, Martin

[web2py] Recaptcha (...., options='', comment='')

2011-01-05 Thread Martin Weissenboeck
rameter of Recaptcha.__init__ def __init__ (... options = '', comment = '' ): and line 666 should be self.comment = comment Regard, Martin

[web2py] Upgrade

2011-01-05 Thread Martin Weissenboeck
read-write. Regards, Martin

Re: [web2py] Re: jquery.tooltip & jquery.cluetip do not work

2011-01-06 Thread Martin Weissenboeck
27;)) Use it in default/index.html: jQuery(function() { jQuery('#tip ').tooltip(); }); Tip Regards, Martin 2011/1/5 Brian M > What does the FireBug extension for FireFox tell you?

[web2py] SQL restrictions and default at database level

2011-01-08 Thread Martin H
Hi, I've defined my table with certain restrictions and default values. For example set some fields as required, and some have default values. When I look at the table schema that it created, the default values and restrictions aren't set at the database level. Is there a way to do this with w

[web2py] Re: SQL restrictions and default at database level

2011-01-08 Thread Martin H
I am using sqlite right now. My app will eventually be running in MySQL and sqlite.

[web2py] Re: SQL restrictions and default at database level

2011-01-08 Thread Martin H
What about the restrictions and default values? I would like to have default values and restrictions like required and unique be set at the database level so that when working on it by hand, defaults are there are well as restrictions. Is there a way to set those in web2py so that it creates the

[web2py] Inserting additional fields in crud

2011-01-08 Thread Martin H
Hi, I am creating a form for adding user accounts. My model has a password field. In the form, I would like to add a 'repeat password' field, but I don't want to store that in the database. I can't seem to find a way to add a form field in crud or SQLFORM. Is my only option to manually create

[web2py] Re: Inserting additional fields in crud

2011-01-09 Thread Martin H
I've tried using SQLFORM and adding additional fields by simply adding html inputs. The fields are not accessible via form.vars.name. Is it possible to have additional fields in SQLFORM or crud that are not in the model?

Re: [web2py] Re: Inserting additional fields in crud

2011-01-10 Thread Martin H
Thanks. That thread did it. orm=SQLFORM .factory(db.client,Field('extra_field'))

[web2py] web2py as daemon

2011-01-15 Thread Martin Weissenboeck
*\* -a $ADMINPASS -d $PIDFILE -p $PORT *\* *-c $CERTS -k $PRIVATE -i $IP* RETVAL=$? And I had to chmod web2pyd. *chmod 755 web2pyd* I think there should be an additional comment in chapter 11.1.6. Maybe these lines could be helpful. Regards, Martin

[web2py] "python web2py.py" stops any any comman

2011-01-20 Thread Martin Weissenboeck
py works: I can access the server using the ip-address and port 8000 What shall I do? Kind regards, Martin

[web2py] Fix for kpaxcms

2011-01-27 Thread Martin Barnard
ch for some reason is there), then call redirect with the URL decorator. I hope it's of some use to somebody... Martin if not session.token: redirect(LOGIN) def change(): if len(request.args)<2: redirect(MAIN) table_name=request.args[0] record_id=request.args[1]

[web2py] Re: Server side rendering requiring js library. Svg to png. D3.js

2012-07-19 Thread Martin Felder
Hi Andrew, did you perchance get to do this already? I'm still waiting eagerly ;) Thanks Martin --

[web2py] Migrating computed Fields?

2012-07-19 Thread Martin Felder
ta has been edited manually. Is there a simpler way for recovery? Thanks a lot, Martin --

[web2py] load deletes the values of submit-buttons

2012-07-23 Thread Martin Weissenboeck
click on button A and button B, but the values have gone. The result is always AA: BB: It is not possible to decide, which submit button was active. Any ideas? Regard, Martin --

Re: [web2py] Re: load deletes the values of submit-buttons

2012-07-24 Thread Martin Weissenboeck
t;> Secondy try: >> >> Now I have two other views, index.load like index.html >> >> AA: {{=AA}}BB: {{=BB}} >> >> >> and an index2.html >> >> {{extend 'layout.html'}} >> {{=LOAD('default','index.load'**,ajax=True)}} >> >> >> Calling index2.html allows a click on button A and button B, but the >> values have gone. The result is always >> >> AA: >> BB: >> >> >> It is not possible to decide, which submit button was active. >> Any ideas? >> >> Regard, Martin >> >> >> -- > > > > --

[web2py] unordered list in markmin and no bullets

2012-07-26 Thread Martin Weissenboeck
nd now the bullet came back: - one - two - three What is the reason for this line? Regards, Martin --

[web2py] Again: how redirect without propagate the .load extension?

2012-07-27 Thread Martin Weissenboeck
dict(form=form) def sub3(): redirect(URL('index2',extension='html',vars={'text':request.vars.text})) but I did not get a new page "index2". I got the "old" page ("index") with the content of index2.html at the end. Any ideas what is wrong? Regards, Martin --

Re: [web2py] Again: how redirect without propagate the .load extension?

2012-07-27 Thread Martin Weissenboeck
I have tried: redirect(URL('index2',vars={'text':request.vars.text}, extension=False)) Sorry, the same result - index2 is "loaded". 2012/7/27 Bruno Rocha > put extension=False in URL > > redirect(URL('index2',extension='html',vars={'text':request.vars.text}, > extension=False)) > > > --

Re: [web2py] Again: how redirect without propagate the .load extension?

2012-07-27 Thread Martin Weissenboeck
You have described my problem nearly perfect, with one difference: There is a path from index to sub1, from sub1 to sub2 and from sub2 to sub3, every step should use the LOAD-function. Every step adds some information. After the last step the whole information should be sent to index2 (using sessio

Re: [web2py] Again: how redirect without propagate the .load extension?

2012-07-27 Thread Martin Weissenboeck
Hallo Johann, I have tried your proposal - yes, this "workaround" does the job and I think I will use it. But I am surprised that there is not simple solution. Or does nobody else want to get rid the "load"? 2012/7/27 Johann Spies > Hallo Martin, > > In stead of

[web2py] is_impersonating() as boolean in menu

2012-07-28 Thread Martin Weissenboeck
sonate', False, URL('endimpersonate'),[],* auth.is_impersonating()!=None*) Why? Regards, Martin --

Re: [web2py] Again: how redirect without propagate the .load extension?

2012-07-28 Thread Martin Weissenboeck
e it. >> But I am surprised that there is not simple solution. Or does nobody else >> want to get rid the "load"? >> >> 2012/7/27 Johann Spies >> >>> Hallo Martin, >>> >>> In stead of redirecting, I am using this script in the view:

Re: [web2py] Re: unordered list in markmin and no bullets

2012-08-02 Thread Martin Weissenboeck
s. I have deleted this line and now the bullet came >> back: >> >>- one >>- two >>- three >> >> What is the reason for this line? >> >> Regards, Martin >> > -- > --

Re: [web2py] Re: is_impersonating() as boolean in menu

2012-08-02 Thread Martin Weissenboeck
ear when somebody is impersonated. I wrote >>> >>> ('end impersonate', False, URL('endimpersonate'),[],*auth. >>> is_impersonating()*) >>> >>> This did notwork, I had to write >>> >>> ('end impersonate', False, URL('endimpersonate'),[],*auth. >>> is_impersonating()!=None*) >>> >>> Why? >>> Regards, Martin >>> >>> > --

Re: [web2py] Re: is_impersonating() as boolean in menu

2012-08-03 Thread Martin Weissenboeck
UTC+8, mweissen wrote: >>>>> >>>>> I am using "impersonate" (great idea!) and I have a menu item which >>>>> should only appear when somebody is impersonated. I wrote >>>>> >>>>> ('end impersonate', False, URL('endimpersonate'),[],*auth. >>>>> is_impersonating()*) >>>>> >>>>> This did notwork, I had to write >>>>> >>>>> ('end impersonate', False, URL('endimpersonate'),[],*auth. >>>>> is_impersonating()!=None*) >>>>> >>>>> Why? >>>>> Regards, Martin >>>>> >>>>> >>> --

[web2py] strange response.flash

2012-08-03 Thread Martin Weissenboeck
öü') return dict(text='done') def flash5(): redirect (URL('flash5a', args=[urllib.quote('hello there äöü')])) def flash5a(): response.flash=urllib.unquote(request.args[0]) return dict(text='done') def flash6(): return dict(load=LOAD('default', 'flash6a.load')) def flash6a(): response.flash='hello there äöü' return dict() def flash7(): return dict(load=LOAD('default', 'flash7a.load', vars=dict(flash='hello there äöü'))) def flash7a(): response.flash=request.vars.flash return dict() Any answers welcome! Regards, Martin --

Re: [web2py] Re: strange response.flash

2012-08-04 Thread Martin Weissenboeck
othing to see. But def flash6(): return dict(load=LOAD('default', 'flash6a.load', ajax=True)) def flash6a(): response.flash='hello there' return dict() without umlaut works. (3)* response.flash="Auswählen"* (German for "select") writes sometime

Re: [web2py] Re: strange response.flash

2012-08-04 Thread Martin Weissenboeck
I have tried xmlescape(response.flash).replace('\n','') Yes, this solves the problems. Would be nice to have it in trunk. Thank you! 2012/8/4 Anthony > I see. I think the problem is only with response.flash within Ajax > components. The message is escaped on the server via urllib2.quote, and >

[web2py] is_impersonating again...

2012-08-05 Thread Martin Weissenboeck
Therefore I propose to change gluon/tools.py, line 2594+2595 from def is_impersonating(self): return 'impersonator' in current.session.auth to def is_impersonating(self): return *current.session.auth and *'impersonator' in current.session.auth Regards, Martin --

[web2py] plugin_wiki meta-menu

2012-08-06 Thread Martin Weissenboeck
')* I have tried *To my function http://127.0.0.1:8000/myapplication/mycontroller/myfunction * It works, but only from the local computer. Using the real IP-address would not be a good idea, because portability is lost. Maybe it's anywhere in the documentation, but I did not find it. Regards, Martin --

Re: [web2py] Re: plugin_wiki meta-menu

2012-08-06 Thread Martin Weissenboeck
http://127.0.0.1:8000/myapplication/mycontroller/ >> myfunction* >> >> It works, but only from the local computer. Using the real IP-address >> would not be a good idea, because portability is lost. >> Maybe it's anywhere in the documentation, but I did not find it. >> >> Regards, Martin >> >> -- > --

[web2py] smartgrid divided in columns

2012-08-07 Thread Martin Weissenboeck
Hi, I have a table with a lot of checkboxes and only very short textstrings, like this: This table is created with my own function, but I would prefer to create it with smartgrid. Is there any way to do this? Regards, Martin --

[web2py] Re: smartgrid divided in columns

2012-08-07 Thread Martin Weissenboeck
Additional question: is it possible to use radio buttons instead of checkboxes in a smart grid? 2012/8/7 Martin Weissenboeck > > Hi, > I have a table with a lot of checkboxes and only very short textstrings, > like this: > > > > > This table is created with my own f

[web2py] Re: smartgrid divided in columns

2012-08-07 Thread Martin Weissenboeck
Sorry - it seems that the picture of my table has been lost. I try with with an attached file. 2012/8/7 Martin Weissenboeck > Additional question: > is it possible to use radio buttons instead of checkboxes in a smart grid? > > > 2012/8/7 Martin Weissenboeck > >> >&

Re: [web2py] Again: how redirect without propagate the .load extension?

2012-08-08 Thread Martin Weissenboeck
Any solution so far? 2012/7/29 Martin Weissenboeck > Thank you! > > > 2012/7/28 Massimo Di Pierro > >> I will take a patch. ;-) >> >> >> On Friday, 27 July 2012 16:54:51 UTC-5, mweissen wrote: >>> >>> Hallo Johann, >>> >>

[web2py] Error in sqlhtml.py? T does not work. Proposal.

2012-08-08 Thread Martin Weissenboeck
ere are some other "T"s in sqlhtml - I have all of them changed to "common.T". Regards, Martin --

[web2py] SQLFORM.grid, checkboxes and mor than one page

2012-08-08 Thread Martin Weissenboeck
paginate parameter I can create one long list without pages - but that is not the idea of the grid? Any ideas? Regards Martin --

Re: [web2py] Re: Error in sqlhtml.py? T does not work. Proposal.

2012-08-08 Thread Martin Weissenboeck
records found", but this sentence is not in the >> translation table. >> >> In sqlhtml.py line 1956 there is "T('%(nrows)s records found')". I think >> it should be "common.T('%(nrows)s records found')" >> >> This change works for me. There are some other "T"s in sqlhtml - I have >> all of them changed to "common.T". >> >> Regards, Martin >> >> >> >> >> --

Re: [web2py] Re: SQLFORM.grid, checkboxes and mor than one page

2012-08-08 Thread Martin Weissenboeck
persons from the whole list. >> Yes, with the paginate parameter I can create one long list without pages >> - but that is not the idea of the grid? >> >> Any ideas? >> Regards Martin >> > -- --

[web2py] SQLFORM.grid: export csv/tsv, but only without hidden fields

2012-08-12 Thread Martin Weissenboeck
Hi, nice feature to select cvs, htm, tcs when exporting from sqlform.grid. But how to turn off the options "csv (hidden fields)" and "tsv (hidden fields)" - I do not want my users to see all hidden fields. Regards, Martin --

[web2py] Problem with download function

2012-08-13 Thread Martin Weissenboeck
ent of the variable "file". I think, I have not understood the upload function. I have read about it in the book and tried to write my function like these examples - but without success. A workaroung is a line like. file=request.folder+'\\uploads\\'+r.attach It does the job - but is it a good programming style? Any hints? Regards, Martin --

Re: [web2py] Re: Problem with download function

2012-08-13 Thread Martin Weissenboeck
Thank you! 2012/8/14 Anthony > I think, I have not understood the upload function. I have read about it >> in the book and tried to write my function like these examples - but >> without success. >> > > The misunderstanding is not with upload/download, but with Mail.Attachment > -- you have giv

[web2py] is_impersonating again...

2012-08-16 Thread Martin Weissenboeck
think, current.session is not defined at the start of the program I have tried (gluon/tools.py line 2595) def is_impersonating(self): return self.is_logged_in() and 'impersonator' in current.session.auth Maybe there is a better solution, but it works Regards, Martin --

  1   2   3   4   5   6   7   8   >