Re: [web2py] Custom information page after registration and hide field

2021-02-02 Thread 'brushek' via web2py-users
wtorek, 2 lutego 2021 o 20:51:16 UTC+1 brushek napisał(a): > poniedziałek, 1 lutego 2021 o 10:50:51 UTC+1 snide...@gmail.com > napisał(a): > >> >> On Sunday, January 31, 2021 at 3:05:09 PM UTC-8 brushek wrote: >> [...] >> >>> def q

Re: [web2py] Custom information page after registration and hide field

2021-02-02 Thread 'brushek' via web2py-users
poniedziałek, 1 lutego 2021 o 10:50:51 UTC+1 snide...@gmail.com napisał(a): > > On Sunday, January 31, 2021 at 3:05:09 PM UTC-8 brushek wrote: > [...] > >> def qrcode(): >> response.view = 'qrcode.html' >> response.flash = 'you clicked on regi

Re: [web2py] Custom information page after registration and hide field

2021-01-31 Thread 'brushek' via web2py-users
response.flash = 'you clicked on register' return dict(message="you clicked on register") I have a question about response.view - when I comment this out, I get in browser: invalid view (default/register.html) why view isn't pick based on controller's function nam

Re: [web2py] Custom information page after registration and hide field

2021-01-31 Thread 'brushek' via web2py-users
OK, Your suggestion is to search in examples of web2py and github ? Regards niedziela, 31 stycznia 2021 o 03:48:08 UTC+1 mauri...@gmail.com napisał(a): > I thought I must have seen an example of the same from github or Web2py > examples. > Regards > > On Sun, Jan 31, 2021,

[web2py] Custom information page after registration and hide field

2021-01-30 Thread 'brushek' via web2py-users
registration to some page on which will be custom message with qrcode ? 2. How to add silently this motp_secret field to database during registration of new user without his interaction/knowing about it Regards brushek -- Resources: - http://web2py.com - http://web2py.com/book (

[web2py] Re: Problem after git pull with sqlrow

2017-05-07 Thread brushek
ouse I don't want to mess up in web2py code, and it seems to be some web2py issue... Regards brk W dniu niedziela, 7 maja 2017 13:46:04 UTC+2 użytkownik brushek napisał: > > Hello, > > I have recently did git pull for some old web2py powered project, after > that I get

[web2py] Problem after git pull with sqlrow

2017-05-07 Thread brushek
2. 3. 4. 5. 6. 7. 8. Traceback (most recent call last): File "/home/brushek/web2py/gluon/restricted.py", line 216, in restricted exec(ccode, environment) File "", line 102, in File "/home/brushek/web2py/gluon/sqlhtml.py", line 3314, in __init__ fi

[web2py] Re: how login_onaccept works ?

2014-02-23 Thread brushek
Yes, I'm sure, but Marin wrote why it was wrong. Thank both of You for Your time regards brushek W dniu piątek, 21 lutego 2014 16:57:13 UTC+1 użytkownik Massimo Di Pierro napisał: > > Are you sure? It should only fire once. > > On Thursday, 20 February 2014 17:56:13 UTC

Re: [web2py] how login_onaccept works ?

2014-02-21 Thread brushek
Thank You Marin, that was the case :) Regards brushek W dniu piątek, 21 lutego 2014 01:22:44 UTC+1 użytkownik Marin Pranjić napisał: > > you are calling the function and assigning the return value > > use = lambda: check_production(1) > or just = check_production, without (1) &g

[web2py] how login_onaccept works ?

2014-02-20 Thread brushek
time field is updated in database every time I click on site (after login). It is correct behavior ? I would to fire this function only once, after user login. Regards brushek -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: IS_IN_SET in SQLFORM.dictform

2014-01-07 Thread brushek
Thank You Massimo, it's enaugh for me - indeed, the code is rather simple. Regards and good luck :) brushek W dniu wtorek, 7 stycznia 2014 09:09:04 UTC+1 użytkownik Massimo Di Pierro napisał: > > This is the source for SQLFORM.dictform: > > def dictform(dictionary, **kwargs):

[web2py] Re: IS_IN_SET in SQLFORM.dictform

2014-01-05 Thread brushek
? Or, to change the SQLFORM.dictform to SQLFORM.factory, but factory need to take dict with (many) fields ? I was very happy to see dictform - it perfectly fit into the config setter/updater for me, last thing I needed is to make select for some of the fields :(. Regards brushek W dniu

[web2py] Re: IS_IN_SET in SQLFORM.dictform

2014-01-05 Thread brushek
field (after SQLFORM.dictform, see bellow), than the widget will change automatically, but it seems not working that way. What I should also change to get select in view (now it is still [probably default] input field) ? W dniu sobota, 4 stycznia 2014 18:26:10 UTC+1 użytkownik brushek na

[web2py] IS_IN_SET in SQLFORM.dictform

2014-01-04 Thread brushek
tween a and e") if form.process().accepted: session.config.update(form.vars) validator is working OK, but I would like to change the type of NAME field in form to select dropdown, instead simple input. How to do this ? How to change the type of field after it is created in any SQLFORM.*

[web2py] changing validator of one field based on choice of another field

2013-03-02 Thread brushek
checked against range (-360:360) Can I do this without using javascript ? regards brushek -- --- 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

[web2py] Re: Problem with legacy tables

2012-01-27 Thread brushek
And yes, as always Massimo :), it is working now, thank You for response :). Taken from trunk: Version 1.99.4 (2012-01-26 12:53:05) stable regards brushek On 26 Sty, 19:54, Massimo Di Pierro wrote: > Yes. This will be resolved. We are working on it. In fact it may be > solved already.

[web2py] Re: Problem with legacy tables

2012-01-26 Thread brushek
QLTABLE if you don't > > have "id" field.I have also legacy table which doesn't have field > > called "id". I gave using SQLFORM.grid and create the list with > > . If you're looking for paging, you can use the > > following plugin which I

[web2py] Re: Problem with legacy tables

2012-01-25 Thread brushek
I'm using vim, editing files directly on server. On 25 Sty, 15:47, Marin Pranjić wrote: > What do you use for development? If you use an IDE with debugging > step-by-step featues, you can find out where does "id" come from > > > > > > > > On Wed, Jan

[web2py] Re: Problem with legacy tables

2012-01-25 Thread brushek
db.gk_shop,fields=[db.gk_shop.id_modulu,db.gk_shop.nazwa_modulu],user_signature=False,deletable=False) and it isn't the case, the error still remain: Traceback (most recent call last): File "/home/users/brushek/web2py-dev/gluon/restricted.py", line 204, in restricted exec cc

[web2py] Problem with legacy tables

2012-01-25 Thread brushek
Hello, Because I need to have legacy tables in one of my project, I would like to please You to see what could be wrong in my model/controller: http://code.google.com/p/web2py/issues/detail?id=613 Massimo reflects if it is bug or not. Could You help ? regards brushek

[web2py] Re: SQLFORM.grid custom labels in edit form for each row

2011-12-17 Thread brushek
/default/planetysurowce/edit/gk_planety/1 but not in: /app/default/planetysurowce where grid is computed. Anyway, thanks Anthony, I think (as You said) it will be quick fix, and all the stuff will work :) regards brushek

[web2py] Re: SQLFORM.grid custom labels in edit form for each row

2011-12-17 Thread brushek
.define_table('mytable', Field('myfield', > label=IMG(_src=URL('static','img/myimage.png' > > Haven't tried it, but hopefully should work. > > Anthony > > > > > > > > On Friday, December 16, 2011 5:10:53 PM U

[web2py] Re: SQLFORM.grid custom labels in edit form for each row

2011-12-16 Thread brushek
Thank You, Anthony. It was... so easy!!! I was looking for some very strange and wierd solutions, big + for You :). regards brushek On 16 Gru, 23:32, Anthony wrote: > In your table definition, you can specify a 'label' argument for each > field, and I think that can be whatev

[web2py] SQLFORM.grid custom labels in edit form for each row

2011-12-16 Thread brushek
Hello, I would like to have images instead of text (or text AND image) in each label for row, when I click edit in form generated by SQLFORM.grid. How to do this in easiest way ? Regards brushek

[web2py] grid edit custom label for fields

2011-12-16 Thread brushek
Hello web2py users ;), I'm using SQLFORM.grid to create form. I wuold like to change labels in edit form from fields name to (for example) images. How to this ? regards brushek

[web2py] Re: BlockUI with web2py

2011-11-03 Thread brushek
g and build up from > something more basic. > > > > > > > > On Thursday, November 3, 2011 11:11:03 AM UTC-4, brushek wrote: > > > without load and without akcje.load i can see the blocking message, > > but there is no unblock > > > if request.vars.a == &#

[web2py] Re: BlockUI with web2py

2011-11-03 Thread brushek
mps out. Doesn't look like a web2py issue, though. I think you'll > just have to debug your JS code. Are you sure it's getting to the $.blockUI > call (i.e., it's not returning in the preceding if clause)? > > > > > > > > On Thursday, November 3, 2

[web2py] Re: BlockUI with web2py

2011-11-03 Thread brushek
e component will only load if request.vars.a='restart' -- is > the main page visited with '?a=restart' in the URL? Where/how are you > invoking BlockUI? > > > > > > > > On Wednesday, November 2, 2011 5:16:42 AM UTC-4, brushek wrote: > > > he

[web2py] Re: BlockUI with web2py

2011-11-02 Thread brushek
Hello, >     if request.vars.a == 'restart': >         form=FORM(TR('Wybierz VPS',SELECT(ipvps,_name='ip', >             requires=IS_IN_SET(ipvps))), >               TR('',INPUT(_type='submit'), > formstyle='ul'),_id='staty') >         if form.accepts(request,session): I think, that here should b

[web2py] Re: BlockUI with web2py

2011-11-02 Thread brushek
x27;:}} Restart action {{=LOAD('default','akcje.load',vars={'a':'restart'},content='Poczekaj...',ajax=True)}} On 2 Lis, 02:41, Anthony wrote: > Can you show some code? > > > > > > > > On Tuesday, November 1, 2011 6:47:13 PM UTC-4

[web2py] Re: BlockUI with web2py

2011-11-01 Thread brushek
special about using it with web2py. > > > > > > > > On Tuesday, November 1, 2011 8:34:42 AM UTC-4, brushek wrote: > > > Hello, > > > I would like to use jquery blockUI with web2py for long time action. > > Can You give me some example/advice, how to do this with w

[web2py] BlockUI with web2py

2011-11-01 Thread brushek
Hello, I would like to use jquery blockUI with web2py for long time action. Can You give me some example/advice, how to do this with web2py using web2py's ajax or jQuery in the best-fashion manner ? regards brushek

[web2py] Re: @auth.requires_login problem

2011-10-21 Thread brushek
And now is all ok, thank You, Massimo. On 21 Paź, 16:03, Massimo Di Pierro wrote: > typo in last commit. fixed now in trunk > > On Oct 21, 5:16 am, brushek wrote: > > > > > > > > > On 21 Paź, 04:33, Massimo Di Pierro > > wrote: > > > > This

[web2py] Re: @auth.requires_login problem

2011-10-21 Thread brushek
eback (most recent call last): File "/home/users/brushek/web2py/gluon/restricted.py", line 192, in restricted exec ccode in environment File "/home/users/brushek/web2py/applications/test/controllers/ default.py", line 72, in File "/home/users/brushek/web2py/gluon/

[web2py] @auth.requires_login problem

2011-10-20 Thread brushek
Hello, I craated test app, in default.py added above index (and no other changes in project): @auth.requires_login() def index(): ... After logging in, and going to index I get folowing error: Traceback (most recent call last): File "/home/users/brushek/web2py/gluon/restricted.py"

[web2py] Re: grid usage

2011-10-19 Thread brushek
o have many files for views, and diffrent controllers will need to have diffrent files for views. But I can pass args, and that is fine to me. regards brushek

[web2py] Re: grid usage

2011-10-19 Thread brushek
On 19 Paź, 16:38, Martín Mulone wrote: > at the moment you can't pass vars to grid, instead use args. > OK, understand, thank You. regards brushek

[web2py] grid usage

2011-10-19 Thread brushek
grid(db.serwery,user_signature=False) elif request.vars.a == 'klienci': grid=SQLFORM.grid(db.klienci,user_signature=False) return dict(grid=grid) Form is showing, but when I click on edit (or enything else action) I get following error: Traceback (most recent call last):

[web2py] Re: Problem with SQLFORM.grid

2011-09-05 Thread brushek
Can anybody help ? or grid and smartgrid shouldn't be used with custom fields ? Regards brushek On 5 Wrz, 16:22, brushek wrote: > On 5 Wrz, 15:55, Johann Spies wrote: > > > Hallo Brushek, > > > I am also trying out SQLFORM.grid/smartgrid and learn as I go. > &g

[web2py] Re: Problem with SQLFORM.grid

2011-09-05 Thread brushek
On 5 Wrz, 15:55, Johann Spies wrote: > Hallo Brushek, > > I am also trying out SQLFORM.grid/smartgrid and learn as I go. > > @auth.requires_login()> def dodajserwer(): > >    response.flash = T('Serwery') > >    form=SQLFORM.grid(db.serwery) > > Ap

[web2py] Problem with SQLFORM.grid

2011-09-05 Thread brushek
response.flash='Serwer dodany' elif form.errors: response.flash = 'popraw' return dict(form=form) I get following error: Traceback (most recent call last): File "/home/users/brushek/web2py/gluon/restricted.py", line 194, in restricted exec ccode in environm

[web2py] Re: Bug or future ?

2011-08-31 Thread brushek
And that's clear to me right now, Thank You :) ! Regards, brushek On 31 Sie, 02:22, Anthony wrote: > On Tuesday, August 30, 2011 6:42:20 PM UTC-4, brushek wrote: > > > On 31 Sie, 00:03, Bruno Rocha wrote: > > > as far as I know, this line "db.dog.owner.requir

[web2py] Re: Bug or future ?

2011-08-30 Thread brushek
et the select box with numbers (id's from person table). Regards brushek

[web2py] Bug or future ?

2011-08-30 Thread brushek
requires=IS_IN_DB(db, 'person.id') If I comment out last line, the form=SQLFORM(db.dog, record=None, deletable=False) will show name in select box (where owner will show), but without comment there is only id (number). Is it ok ? regards brushek

[web2py] Greenplum support in web2py

2011-08-24 Thread brushek
ile "/home/users/brushek/web2py/gluon/restricted.py", line 192, in restricted exec ccode in environment File "/home/users/brushek/web2py/applications/testgp/controllers/ default.py", line 71, in File "/home/users/brushek/web2py/gluon/globals.py", line 145, in

[web2py] Re: Deploying with default web2py server?

2011-06-02 Thread brushek
I can add for myself, that under nginx + uwsgi web2py is twice time faster than Rocket (no offence :) ), look: nginx: httperf --hog --server web2py.server.tld (changed) --port 8443 --num- conns=1000 --num-calls=1 [...] Request rate: 1258.2 req/s (0.8 ms/req) [...] Rocket (standard web2py insta

[web2py] Re: Error after upgrade to 1.96.1

2011-06-02 Thread brushek
ex'),URL('index')==URL(),URL('index'),[]) > > This is because this code was generated by the wizard and the wizard > is still experimental. This worked with only an early version of the > wizard. The new wizard does not do this any more. > > Massimo > > O

[web2py] Problem after upgrade to 1.96.1

2011-06-02 Thread brushek
% (settings.author, settings.author_email) response.meta.keywords = settings.keywords response.meta.description = settings.description response.menu = [ (T('Index'),URL('index').xml()==URL().xml(),URL('index'),[]), Can You give me some advice, what is wrong ? Regards brushek

[web2py] Error after upgrade to 1.96.1

2011-06-02 Thread brushek
Hello, I get following error after upgrade to 1.96.1: Wersja web2py™ Version 1.96.1 (2011-06-01 19:20:34) Python Python 2.7.1: /usr/bin/python Traceback Traceback (most recent call last): File "/home/users/brushek/web2py/gluon/restricted.py", line 184, in restricted