Re: [web2py] web2py and py4web - single signon between the two

2020-11-11 Thread Martin Weissenboeck
Any news about this topic? Regards Martin Massimo Di Pierro schrieb am Mi., 15. Jän. 2020, 07:09: > yes. that is a priority. > > On Sunday, 5 January 2020 13:28:10 UTC-8, Carlos Cesar Caballero wrote: >> >> Maybe implementing a CAS server for py4web... But I am not s

Re: [web2py] Use cron

2020-07-28 Thread Martin Weissenboeck
Thank you! Martin Jose C schrieb am Di., 28. Juli 2020, 10:53: > Just FYI, the web2py book states: > > Try to avoid web2py cron, and use a background process instead. web2py >> cron can start too many Python instances and cause excessive memory >> usage. >> &

Re: [web2py] Use cron

2020-07-23 Thread Martin Weissenboeck
Ubuntu 16 Dave S schrieb am Do., 23. Juli 2020, 11:29: > > > On Thursday, July 23, 2020 at 2:15:43 AM UTC-7, mweissen wrote: >> >> Yes, I could use the scheduler. But it's a very small app (only 50 lines >> of code) and I wanted to learn how to use cron. >&

Re: [web2py] Use cron

2020-07-23 Thread Martin Weissenboeck
Yes, I could use the scheduler. But it's a very small app (only 50 lines of code) and I wanted to learn how to use cron. Regards, Martin AGRogers schrieb am Do., 23. Juli 2020, 10:56: > Sorry, can't help there. I have just started to use the Scheduler which is > part of web2py

[web2py] Use cron

2020-07-22 Thread Martin Weissenboeck
I use web2py with nginx.Now I need cron . I have read, that habe to use "-Y" to activate it. But where is the place for this option, which configuration file? Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2

[web2py] py4web: login and redirect to index

2020-02-15 Thread Martin Weissenboeck
hat is the expected behavior. But after the login py4web redirects to *index *and not to *index1*. What is wrong? Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/li

[web2py] py4web dashboard: username and password

2020-02-15 Thread Martin Weissenboeck
e: db Table: auth_user" I change the username, click on [Save] and [Close] Seems to be ok. But 127.0.0.1:8000/myapp again shows the username joe. And a second click on db.auth_user displays the old values. Why? (2) Change password: How can I change a password using the dashboard? Regards,

[web2py] Re: Registered User?

2020-02-11 Thread Martin Weissenboeck
is required.* Am Di., 11. Feb. 2020 um 09:02 Uhr schrieb Martin Weissenboeck < mweis...@gmail.com>: > > py4web 0.1.20200210.2 installed > Created "myapp" from scaffold > Tried 127.0.0.1:8000/myapp > > Error: > > Traceback (most recent call last): > >

[web2py] Registered User?

2020-02-11 Thread Martin Weissenboeck
rst a registered user, but @authenticated() does not ask for. @authenticated() def index(): user = auth.get_user() message = T("Hello {first_name}".format(**user)) return dict(message=message, user=user) Regards Martin -- Resources: - http://web2py.com - http://web2py.com/book (

Re: [web2py] py4web nw version and new example

2020-02-09 Thread Martin Weissenboeck
What is the best way to try this new version? Download, unpack and copy over an old one? Regards, Martin Am Mo., 10. Feb. 2020 um 07:13 Uhr schrieb Massimo Di Pierro < massimo.dipie...@gmail.com>: > A new py4web version is out 0.1.20200209.2: > > - better reload mechanism sh

[web2py] py4web - delete an app?

2020-02-03 Thread Martin Weissenboeck
Ok, I have learned how to create an app. But I did not find any button to remove an app. I can delete the directory of the app, but should not be there a button on the dashboard for that? Or is it well hidden? Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] gloun.tool.Expose cleans my session

2019-08-12 Thread Martin Mosbeck
Is there any special reasons, why the session is cleaned when using gloun.tools.Expose or is this an unintended behavior/bug or am I using Expose in a way it was not intended? Or is there an other solution to my usecase , I am missing? Tested under version: Version 2.18.5-stable+timestamp.

Re: [web2py] Re: Future of web2py

2019-05-13 Thread Martin Weissenboeck
queries. This would require an extension of the DAL or a separate library for CouchDB. Regards, Martin Am Mo., 13. Mai 2019 um 10:10 Uhr schrieb Val K : > You are right, this is 100% client side technology. I think we can provide > a simple universal script that will show some configurable

Re: [web2py] Re: Future of web2py

2019-05-11 Thread Martin Weissenboeck
I think, progessive web applications are a very important way to create native-like apps and it would be nice, if web3py could support pwas. There is an interesting article about the future of pwas: https://enonic.com/progressive-web-apps Regards, Martin Am Sa., 11. Mai 2019 um 05:45 Uhr

Re: [web2py] Re: Future of web2py

2019-05-09 Thread Martin Weissenboeck
Is it planned that web3py will support the development of PWAs? Martin Am Fr., 10. Mai 2019 um 03:58 Uhr schrieb Massimo Di Pierro < massimo.dipie...@gmail.com>: > Good question. > > We are not dropping web2py support. We will continue improve web2py. You > may have seen a l

[web2py] Error with couchdb

2019-05-08 Thread Martin Weissenboeck
I want to use couchdb with web2py. It's a little bit hard, because the documenation is missing in the book, but I found something in https://pydal.readthedocs.io/en/latest/ Now I have tried cdb = DAL('couchdb://admin:password@localhost:5984/w2p') and I got: Error ticket for "admin"Ticket ID 213

Re: [web2py] Re: 2.18.5 LI(_class="dropdown-divider") bug?

2019-04-12 Thread Martin Weissenboeck
ashboard'), False, URL('main', 'students'))) response.menu[1][3].append((A('---', _class="divider"), False, None)) response.menu[1][3].append((T('Assessments'), False, None)) response.menu[1][3].append((T('History'), False

[web2py] Progressive Web Apps

2018-12-13 Thread Martin Weissenboeck
. Any ideas, any hints? Who has written PWAs with web2py? By the way: my next stept would be to use Preact together with PWAs. But for now I want to go step by step... Regards Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] Re: Dynamic url masking with routes.py?

2018-11-18 Thread Martin Weissenboeck
ok, thank you. I'll try it. Regards Martin Am So., 18. Nov. 2018 um 19:50 Uhr schrieb Massimo Di Pierro < massimo.dipie...@gmail.com>: > If I assume you have full control of both domains, I would use nginx to map > > domain1.com/$anything -> > domain2/yourapp/y

Re: [web2py] Re: Dynamic url masking with routes.py?

2018-11-05 Thread Martin Weissenboeck
s purpose? Or someting else? >> >> > Is the translation abcd->xyz likely to remain the same for relatively long > times (like weeks)? Or could it be different each time the user accesses > it? > > /dps > > >> Regards, Martin >> >> >> >

[web2py] Dynamic url masking with routes.py?

2018-11-03 Thread Martin Weissenboeck
for this purpose? Or someting else? Regards, Martin -- 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

Re: [web2py] Re: Future of web2py

2018-10-07 Thread Martin Weissenboeck
Me too (not #metoo :-) I like groups and permissions and I use both very often. Regards, Martin Am So., 7. Okt. 2018 um 17:19 Uhr schrieb : > "Nobody really uses groups and permissions" > > Dear Massimo > I do use groups and permissions. Groups, use them as roles,

Re: [web2py] SQLFORM.factory in 2.17.1

2018-10-04 Thread Martin Weissenboeck
m.element('input', _name='always_show')['_readonly']=True Am Do., 4. Okt. 2018 um 20:27 Uhr schrieb Martin Weissenboeck < mweis...@gmail.com>: > Sorry - wrong idea... > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentati

Re: [web2py] SQLFORM.factory in 2.17.1

2018-10-04 Thread Martin Weissenboeck
Sorry - wrong idea... -- 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-u

Re: [web2py] SQLFORM.factory in 2.17.1

2018-10-04 Thread Martin Weissenboeck
Try form = SQLFORM.factory( Field('always_show', default='123', readable=True, writable=True, _readonly=True), Field('writable_if_intended', default='456', readable=True, writable=True), readonly=False, ) Regards Martin Am Do., 4.

[web2py] Re: login with SMTP

2018-10-02 Thread Martin Weissenboeck
I have found the answer myself: auth.settings.alternate_requires_registration = True Am So., 30. Sep. 2018 um 20:16 Uhr schrieb Martin Weissenboeck < mweis...@gmail.com>: > I habe tried to verify the logincredentials using a remote SMTP server. > Works fine! > But I do not wa

[web2py] login with SMTP

2018-09-30 Thread Martin Weissenboeck
;] but it not work - there will be a new user if the email address is not in the database table auth_user. Any hints? Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues

Re: [web2py]

2018-07-12 Thread Martin Weissenboeck
Sorry, wrong address. Martin Weissenboeck schrieb am Do., 12. Juli 2018, 15:25: > -- > 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 I

Re: [web2py] Postpone a scheduler action

2018-07-11 Thread Martin Weissenboeck
Yes I think this solution could do the job. But I don't know if an exception would produce a big overhead. Anybody who knows the answer? Manuele Pesenti schrieb am Mi., 11. Juli 2018, 10:29: > > > On 09/07/2018 09:56, Martin Weissenboeck wrote: > > What I want to do: >

Re: [web2py] Re: Postpone a scheduler action

2018-07-10 Thread Martin Weissenboeck
I shall use the following solution: the scheduled function checks if there is a conversation. If yes, it schedules a copy of itself with a start time 2 minutes in the future and returns without any further action. Thank you for the discussion! Leonel Câmara schrieb am Mo., 9. Juli 2018, 20:02:

Re: [web2py] Re: Postpone a scheduler action

2018-07-09 Thread Martin Weissenboeck
Ok, could solve most problems. But not all: let's say a conversation between bot and client is going on and just in this moment another process wants to send a message. The queue of the scheduler is empty and therefore this message would be sent immediately. Leonel Câmara schrieb am Mo., 9. Juli

Re: [web2py] Re: Postpone a scheduler action

2018-07-09 Thread Martin Weissenboeck
Leonel Câmara schrieb am Mo., 9. Juli 2018, 12:39: > Does the chatbot keeps logs of the conversations it's having? > No, there are no logs. The message occurs independent from the conversation. The scheduled function, which wants to send a message can detect whether there is a conversation. There

[web2py] Postpone a scheduler action

2018-07-09 Thread Martin Weissenboeck
is the receiver of message). Therefore the scheduler should not send the message and should try it e.g. 2 minutes later. And may repeat this process if necessary. Thanks in advance, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] Re: query and json-field

2018-06-02 Thread Martin Weissenboeck
ecify the order of evaluation and therefore does not provide a shortcut on evaluation of the and operator. Martin 2018-06-02 10:10 GMT+02:00 Martin Weissenboeck : > Hi Anthony! > > That is interesting. > > I have tested the example with coalesce and it worked in the SELECT clause.

Re: [web2py] Re: query and json-field

2018-06-02 Thread Martin Weissenboeck
a->>'umfrage_text_id') IS NOT NULL => Error WHEN extra != NULL and ... ist not allowed - there is no comparison operator for json Therefore I filled every empty json field with '{}' This WHERE does the job: WHERE extra::text!='{}'::text and (extra->>&

Re: [web2py] Re: query and json-field

2018-06-01 Thread Martin Weissenboeck
xtid\'=\'4\';' self.cursor.execute kwargs {} What is wrong? 2018-05-31 23:14 GMT+02:00 Anthony : > " > Can you show your exact code? Here's what I get: > > >>> db('j->>"x" = 1')._select(db.j.id) > 'SELECT "

[web2py] query and json-field

2018-05-31 Thread Martin Weissenboeck
. I have tried some queries like db.mytable.j.like("%1%") db('(j-->x)=1') but nothing did work. web2py creates always a sql-statement with WHERE X)=1>... Postgresql does not understand " come from? Any ideas? Regards, Martin -- Resources: - http://web2py.com -

Re: [web2py] IS_LENGTH does not work with "list:string"

2018-05-19 Thread Martin Weissenboeck
Ok, thank you again! 2018-05-19 14:59 GMT+02:00 Anthony : > On Saturday, May 19, 2018 at 4:32:49 AM UTC-4, mweissen wrote: >> >> Hi Anthony, >> do you have an answer for the second problem? >> > > No, other than to submit a Github issue (or better yet, a pull request). > SQLFORM.accepts does conv

Re: [web2py] IS_LENGTH does not work with "list:string"

2018-05-19 Thread Martin Weissenboeck
Hi Anthony, do you have an answer for the second problem? I want to get the number of items in the list "auswahl": form = SQLFORM.factory( Field("auswahl", "list:string"), ) - If there is only one item in "auswahl" then the type of form.vars.auswahl is string and len(form.

Re: [web2py] IS_LENGTH does not work with "list:string"

2018-05-18 Thread Martin Weissenboeck
Thank you very much. I have read the book very often, but I did not remember this chapter. 2018-05-18 17:03 GMT+02:00 Anthony : > On Wednesday, May 16, 2018 at 1:35:02 PM UTC-4, mweissen wrote: >> >> I understand that there is no DEFAULT VALIDATOR for 'list:string', but it >> seems that is not po

Re: [web2py] IS_LENGTH does not work with "list:string"

2018-05-16 Thread Martin Weissenboeck
ist:string` does not have a validator. Maybe you can create your own? > > > On 16-05-2018 22:26, Martin Weissenboeck wrote: > > > That is ok: > form = SQLFORM.factory( > Field("auswahl", "string", length=15, requires=IS_LENGTH(15,3)), >

[web2py] IS_LENGTH does not work with "list:string"

2018-05-16 Thread Martin Weissenboeck
That is ok: form = SQLFORM.factory( Field("auswahl", "string", length=15, requires=IS_LENGTH(15,3)), ) This does not work: form = SQLFORM.factory( Field("auswahl", "list:string", length=15, requires=IS_LENGTH(15,3)), )

Re: [web2py] Re: Differnt represent in SQLFORM.grid and in the view

2018-05-16 Thread Martin Weissenboeck
nice idea - thank you! 2018-05-16 10:11 GMT+02:00 黄祥 : > think you can use condition to check the request.args value then assign > the represent on it, before defining SQLFORM.grid > *e.g.* > if 'view' in request.args: > db.mytable.myfield.represent = function_to_represent > grid = SQLFORM.gr

[web2py] Differnt represent in SQLFORM.grid and in the view

2018-05-16 Thread Martin Weissenboeck
​I am using* db.mytable.myfield.represent=function_to_represent* in the grid. After clicking the "view" button ​I want to see *myfield *in another representation. Is it possible to change *db.mytable.myfield.represent* only for the view? Regards, Martin -- Resources: - http://

Re: [web2py] Re: strange behavior of cache.ram and routes.py on a virtual server

2018-05-04 Thread Martin Weissenboeck
redis works great - thank for this hint! Regards Martin 2018-05-04 15:11 GMT+02:00 Anthony : > If your web server runs multiple workers in separate processes (e.g., the > uwsgi setup here > <https://github.com/web2py/web2py/blob/4ed36cfb1fe960d5c818c53562d920d407e991ae/scripts/

[web2py] strange behavior of cache.ram and routes.py on a virtual server

2018-05-04 Thread Martin Weissenboeck
outes uses cache.ram, but if it does: is it possible to change it to cache.disk? Any ideas? Regards, Martin -- 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

Re: [web2py] Re: Problem with a virtual field, SQLFORM.grid and the fields parameter

2018-04-16 Thread Martin Weissenboeck
> <https://sx.infosms.org/admin/default/edit/gridtest/controllers/default.py>, >> line 105, in >> File "/home/www-data/web2py/gluon/globals.py", line 414, in >> self._caller = lambda f: f() >> File "/home/www-data/web2py/applications/grid

Re: [web2py] Re: Problem with a virtual field, SQLFORM.grid and the fields parameter

2018-04-15 Thread Martin Weissenboeck
data/web2py/gluon/packages/dal/pydal/objects.py", line 2582, in export_to_csv_file field = fieldmap[col] KeyError: '"tt"."ff"' It seems that the export function does not find the virtual field. Is there any workaround? Martin 2018-04-15 8:43 GMT+02

[web2py] Problem with a virtual field, SQLFORM.grid and the fields parameter

2018-04-14 Thread Martin Weissenboeck
grid value = row[str(field)] File "/home/www-data/web2py/gluon/packages/dal/pydal/objects.py", line 84, in __getitem__ raise KeyError KeyError What is wrong? Regards Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2

Re: [web2py] embed a pdf

2018-02-26 Thread Martin Weissenboeck
0 Marco Mansilla : >> >>> Take a look to this >>> >>> https://groups.google.com/forum/m/#!topic/web2py/qgmh5C0XXkY >>> >>> El 26 feb. 2018 03:36, "Martin Weissenboeck" >>> escribió: >>> >>>>

Re: [web2py] embed a pdf

2018-02-25 Thread Martin Weissenboeck
mh5C0XXkY > > El 26 feb. 2018 03:36, "Martin Weissenboeck" > escribió: > >> Sorry, it does not work. >> The same results with or without "default" >> >> 2018-02-26 4:20 GMT+01:00 Marco Mansilla : >> >>> This >>> >

Re: [web2py] embed a pdf

2018-02-25 Thread Martin Weissenboeck
> You can do that on the view. But the change on the controller should do. > > El 25 feb. 2018 15:54, "Martin Weissenboeck" > escribió: > > What I want to do: > > I store a pdf-file in a database table. > Then I want to show this file. > > The model: > &

[web2py] embed a pdf

2018-02-25 Thread Martin Weissenboeck
Cannot display embed Cannot display iframe ​The section show an error "Error on loading pdf". The section shows an empty iframe and opens the Adobe Acrobat Reader with the required pdf. Any ideas? Regards Martin -- Resources: - http://web2py.com - http

[web2py] Re: YouTube and MARKMIN

2018-02-24 Thread Martin Weissenboeck
Ok, I have found the anwser: it's the browser. It has classified the code as "insecure". embed:https://www.youtube.com/embed/x1w8hKTJ2Co <http://www.youtube.com/embed/x1w8hKTJ2Co> works as expected. 2018-02-24 15:58 GMT+01:00 Martin Weissenboeck : > I want to em

[web2py] YouTube and MARKMIN

2018-02-24 Thread Martin Weissenboeck
. iframe:http://www.youtube.com/embed/x1w8hKTJ2Co creates an iframe without content. iframe:https://www.youtube.com/watch?v=x1w8hKTJ2Co does no do anything. [[youTube embed:http://www.youtube.com/embed/x1w8hKTJ2Co]] shows a link without any action. Any ideas? Regards Martin -- Resources: - http

Re: [web2py] Re: Add INPUT to SQLFORM.grid

2017-12-14 Thread Martin Weissenboeck
Thank you for your additionals hints. This is the last version of my program, it does not use vars.records and it is very simple. def test1(): form = SQLFORM.grid(db.tt, selectable=test2, ) form.elements('table')[0].append(INPUT(_type='text', _name='f')) return dict(for

Re: [web2py] Re: Add INPUT to SQLFORM.grid

2017-12-13 Thread Martin Weissenboeck
Hi Anthony! You have written: Not sure what you mean. When I try it, I get the expected list of record IDs in request.vars.records as well as the value of "f" in request.vars.f. The list in *request.vars.records* is ultimately passed to the "selectable" function, after which, the redirect happens

Re: [web2py] Re: Add INPUT to SQLFORM.grid

2017-12-13 Thread Martin Weissenboeck
stion remains: how can I get the value from an >>>> additional INPUT in a SQLFORM.grid? >>>> >>>> >>>> >>>> 2017-12-12 14:24 GMT+01:00 Anthony : >>>> >>>>> request.vars.f >>>>> >>>>> &g

Re: [web2py] Re: Add INPUT to SQLFORM.grid

2017-12-13 Thread Martin Weissenboeck
eissen wrote: >>>> >>>> I want to add *one and only one *INPUT field to a grid (not one field >>>> per row, but one filed for the whole grid) >>>> >>>> For example: >>>> >>>> form = SQLFORM.grid() >>>>

Re: [web2py] Re: Add INPUT to SQLFORM.grid

2017-12-13 Thread Martin Weissenboeck
solution, but it works. >> >> My question is: how can I get the value of the input field f? form.vars.f >> does not work of course. >> >> Regards, Martin >> >> >> -- > Resources: > - http://web2py.com > - http://web2py.com/book (Document

[web2py] Add INPUT to SQLFORM.grid

2017-12-12 Thread Martin Weissenboeck
ks. My question is: how can I get the value of the input field f? form.vars.f does not work of course. Regards, Martin -- 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

Re: [web2py] Re: scheduler: force another try, count tries

2017-11-25 Thread Martin Weissenboeck
+01:00 Dave S : >> >>> >>> >>> On Wednesday, November 22, 2017 at 9:25:31 AM UTC-8, mweissen wrote: >>> ​aaa​ >>> >>>> Two questions: >>>> >>>> ​(1) Under some conditions (email send not successfully) ​I want to &g

Re: [web2py] Re: scheduler: force another try, count tries

2017-11-23 Thread Martin Weissenboeck
> > >> (2) Let's say scheduler_task.retry_failed is 5 and we are in the second >> repetition. How can I get these number = 2? Is there any property of >> scheduler like scheduler.number_of_try? >> >> ​Regards, Martin​ >> >> > select retry_failed, t

[web2py] scheduler: force another try, count tries

2017-11-22 Thread Martin Weissenboeck
there any property of scheduler like scheduler.number_of_try? ​Regards, Martin​ -- 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 be

[web2py] websocket_messaging incompatible in web2py 2.15.4?

2017-10-21 Thread Martin Weissenboeck
Is there anything new in 2.15.4, which ​is responsible for this message? I think that nothing else has changed. Version: 2.15.4-stable+timestamp.2017.09.02.04.02.22 (läuft auf nginx/1.10.0, Python 2.7.12)​ Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

Re: [web2py] Re: Has the result of a datetime Field changed?

2017-09-12 Thread Martin Weissenboeck
en in version >> 2.14.x), but web2py 2.15.4 delivers a "str". >> >> def dttest2(): >> form = SQLFORM.factory(Field('startzeit', 'datetime')) >> if form.process().accepted: >> return \ >> str(isinstance(f

[web2py] Has the result of a datetime Field changed?

2017-09-11 Thread Martin Weissenboeck
27;datetime')) if form.process().accepted: return \ str(isinstance(form.vars.startzeit,datetime.datetime)) return dict(form=form) The result is "False" ​Regards Martin​ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/we

[web2py] Re: callback with BUTTON

2017-09-10 Thread Martin Weissenboeck
I have found a solution BUTTON('Testext', _onclick="ajax('%s',[],'')" % URL("testfunction") 2017-09-10 17:47 GMT+02:00 Martin Weissenboeck : > I have tried the callback parameter of A: > > A('Testext', callback('t

[web2py] callback with BUTTON

2017-09-10 Thread Martin Weissenboeck
re it should look like BUTTON('Testtext', _onclick="jQuery()") Any hints how to do it? ​Regards, Martin​ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues

[web2py] Reset password and lazyT

2017-09-09 Thread Martin Weissenboeck
rset='utf-8', errors='strict') Variables global text_type obj Context locals Anfrage Sitzung Antwort In file: /home/www-data/web2py/applications/secure/controllers/default.py 1. at 0x7f7f26d774b0, file "/home/www-data/web2py/applications/secure/controllers/default.

Re: [web2py] How can you remove the text "Export" from a grid??

2017-09-07 Thread Martin Weissenboeck
s/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options,

[web2py] Re: mercurial

2017-09-01 Thread Martin Weissenboeck
Ok, thanks. Am 02.09.2017 06:22 schrieb "Massimo DiPierro" : > also we can assume git is already installed so it is a matter of calling > subprocess. I would take a patch to simplify the code. :-) > > On Sep 1, 2017, at 11:21 PM, Martin Weissenboeck > wrote: > > I

[web2py] Re: mercurial

2017-09-01 Thread Martin Weissenboeck
;> mercurial is installed, hg --version shows 2.8.2 >>> >>> And a click on versioning gives "Sorry, could not find mercurial >>> installed" >>> >>> What is wrong - any ideas? >>> Regards, Martin >>> >>> -- Resou

Re: [web2py] Re: mercurial

2017-08-30 Thread Martin Weissenboeck
Thank you for your fast response. I think if "versioning" does not work in web2py the button and the chapter from the book should be removed. It is frustrating to try something, which does not work. I always think that I have made a mistake. Regards Martin 2017-08-30 22:32 GMT+02

[web2py] Re: mercurial

2017-08-30 Thread Martin Weissenboeck
n) Error snapshot [image: help] <https://noez.infosms.org/admin/default/ticket/admin/62.46.34.69.2017-08-30.18-52-32.0686f969-19c0-4400-9e6c-2f79cec2c962#> (addremove() takes at least 3 arguments (1 given))​ 2017-08-30 13:20 GMT+02:00 Martin Weissenboeck : > I want to try the admin

[web2py] Re: 2.15.3: storage not found

2017-08-30 Thread Martin Weissenboeck
104, in >> custom_importer >> raise ImportError(e1, import_tb) # there an import error in the module >> ImportError: (ImportError('No module named storage',), > 0x7ff6cdbc4638>) >> >> Error snapshot [image: help] >> <https://sx.infosms.org/

[web2py] mercurial

2017-08-30 Thread Martin Weissenboeck
I want to try the admin versioning. mercurial is installed, hg --version shows 2.8.2 And a click on versioning gives "Sorry, could not find mercurial installed" What is wrong - any ideas? Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentati

[web2py] 2.15.3: storage not found

2017-08-30 Thread Martin Weissenboeck
43-02.ab8b4dda-a3dc-4958-9d64-dc0fc1c973af#> ((ImportError('No module named storage',), )) ​Regards, Martin​ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (

Re: [web2py] Current version: 2.15.3-stable+timestamp.2017.08.07.12.51.45 (LGPLv3 License) download link wrong.

2017-08-15 Thread Martin Weissenboeck
Try https://mdipierro.pythonanywhere.com/examples/static/web2py_win.zip Regards Martuin 2017-08-15 10:21 GMT+02:00 Halili Celik : > When I downloaded above link for windows, the web2py version is still ' > 2.15.2-stable+timestamp.2017.07.19.12.18.41'. > > -- > Resources: > - http://web2py.com >

Re: [web2py] 2.15.3: automatic update crashes appadmin

2017-08-15 Thread Martin Weissenboeck
> Richard >> >> On Tue, Aug 15, 2017 at 10:52 AM, Martin Weissenboeck > > wrote: >> >>> Thank you - should be mentioned in the book. >>> >>> 2017-08-15 16:44 GMT+02:00 Richard Vézina : >>> >>>> Always the same issue... I wo

Re: [web2py] 2.15.3: automatic update crashes appadmin

2017-08-15 Thread Martin Weissenboeck
; > Watch out the last command will override the layout.html... > > > This listing above is a copy/paste from one of my older post, so it may > not be 100% accurate > > Richard > > > On Tue, Aug 15, 2017 at 4:09 AM, Martin Weissenboeck > wrote: > >> I have

[web2py] 2.15.3: automatic update crashes appadmin

2017-08-15 Thread Martin Weissenboeck
iteritems(cache.ram.storage): I suppose that without a restart web2py does not find gluon._compat Regards, Martin -- 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 Is

Re: [web2py] Re: web2py 2.15.0b1

2017-07-05 Thread Martin Weissenboeck
ill get the expected result. And there is another problem in this new markmin2html.py: markmin2html needs now gluon and therefore it is not longer a standalone program. And: all links in the lines 228 ... 230 do not work. There should be the actual links. Regards, Martin -- Resources: - http://

Re: [web2py] Re: Blockquote in markmin

2017-07-04 Thread Martin Weissenboeck
e change that cause the issue you found and try to fix it... > > Richard > > On Mon, Jul 3, 2017 at 2:11 PM, Martin Weissenboeck > wrote: > >> I have found an old thread about the same problem >> https://mail.google.com/mail/u/0/#search/markmin+blockquote/ >> 14

Re: [web2py] Re: Blockquote in markmin

2017-07-03 Thread Martin Weissenboeck
I have found an old thread about the same problem https://mail.google.com/mail/u/0/#search/markmin+blockquote/14a8c05a08025b93 It seems that there are a lot of different versions of markmin2html.py in the web. I have opened issue #1671. It contains a proposal for a solution. Regards, Martin

[web2py] Re: Blockquote in markmin

2017-07-01 Thread Martin Weissenboeck
the blockquote are only joined, without any other interpretation. Maybe some code is missing? 2017-06-29 5:44 GMT+03:00 Martin Weissenboeck : > I have run the markmin2html.py file. The results of blockquotes are not as > expected, e.g.: > > ​This is a blockquote with a list with ta

[web2py] Blockquote in markmin

2017-06-28 Thread Martin Weissenboeck
exaples. What is wrong? Regards, Martin​ ​ -- 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] How to write pseudocode in markmin?

2017-02-15 Thread Martin Weissenboeck
, but without *bold* and *italic* letters. How can I get the expected result? ​Regards, Martin​ -- 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 re

Re: [web2py] Re: Fullcalendar scheduler - creating, changing and saving data to database

2017-02-13 Thread Martin Weissenboeck
Is there any Schedular Calendar as a plugin for web2py or with the same licence as web2py? Regards, Martin 2017-02-13 15:43 GMT+01:00 Richard Vézina : > Why don't you approach the problem the other way?! If you know how to > create a form in web2py, you know how to enter a record

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

Re: [web2py] global name 'T' is not defined

2017-01-25 Thread Martin Weissenboeck
Try in the module: from gluon import current T = current.T Regards, Martin 2017-01-25 9:51 GMT+01:00 icodk : > I have a controller that imports a module > In the controller I can use T('some text'). However trying to use it in a > function in an imported module gives:

[web2py] How to use a list:string as string

2017-01-11 Thread Martin Weissenboeck
any result the next step should be to look for '|x|y|' and so on. It works as expected. My question: is this solution efficient? Is there any better solution? Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] Re: how to make Query, which is always "True" (1=1 or so) ?

2016-11-25 Thread Martin Weissenboeck
return locals() Testqueries queries : True w : mytable.idmytable.myvalue 1 abc 2 bcd 3 def Regards, Martin 2016-11-25 13:32 GMT+01:00 Jurgis Pralgauskis : > > How are you making your query map reduce? >> &

[web2py] How to solve vertical alignment too high of SQLForm read-only field

2016-11-21 Thread Martin de Groot
rated code. Martin de Groot -- 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 &q

[web2py] Re: How to bulid a fast responding service?

2016-11-18 Thread Martin Weissenboeck
es. >> >> b): I need no sessions, I want the least possible overhead. What would be >> the best method? >> >> By the a way - a similar problem: >> I want to use the SMTP package of Python to receive and analyze emails. I >> have put the program into the s

[web2py] How to bulid a fast responding service?

2016-11-15 Thread Martin Weissenboeck
yze emails. I have put the program into the static directory. Are there any disadvantages ? Regards, Martin -- 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

[web2py] Re: How to start a scheduler task from a module?

2016-11-02 Thread Martin Weissenboeck
Yes - that's it. Now I can add tasks from a module. Thank you again very much! Martin 2016-11-02 22:31 GMT+01:00 Niphlod : > tl;dr : it just gets automatically filled with > "request.application/request.controller" in a web environment that it is > missing in your

  1   2   3   4   5   6   7   8   >