[web2py] psycopg2 to 3

2022-10-12 Thread Chad D Raley
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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/c461348c-bccf

[web2py] Re: Graphql consumption

2020-07-29 Thread Richard D
sday, July 29, 2020 at 3:57:33 PM UTC+2, Richard D wrote: > > Dear Web2py friends, > > I am trying to cosume a graphql endpoint using > https://github.com/graphql-python/gql#HTTP-async-transport but get an > error. > > Applied code: > > def qlquery(): > fr

[web2py] Graphql consumption

2020-07-29 Thread Richard D
- 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. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/df8910e5-3eaa-48be-b95e-9d3a67195888o%40googlegroups.com.

[web2py] Re: adding fields dynamically in web2y forms

2019-01-26 Thread Richard D
", Field("name"), Field("invoice_line_ids", "list:reference invoice_line"), Field('total_price', compute=lambda r: invoice_sum(r['invoice_line_ids']) ), format='%(name)s') Hope th

[web2py] rewrting url for function flexibility through routes

2019-01-26 Thread Richard D
d an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.

Re: [web2py] Re: How can I union 2 different table datasets?

2017-05-10 Thread George D Elig
view or materialized view in the db, and then just create a DAL > model based on that view (turn off migrations for that model so the DAL > does not attempt to create a table for it). From that point, you can use > that model for queries via the DAL. > > Anthony > > On Thur

[web2py] Re: How can I union 2 different table datasets?

2017-04-27 Thread George D Elig
y.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. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.

[web2py] Re: How can I union 2 different table datasets?

2017-04-25 Thread George D Elig
egant solution. On Saturday, April 22, 2017 at 4:51:21 PM UTC-4, George D Elig wrote: > > I have the following tables defined and would like to display rows of > cats, followed by rows of dogs > > db.define_table(‘cat’, > > Field('name', 'string', leng

[web2py] How can I union 2 different table datasets?

2017-04-22 Thread George D Elig
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, visit https://groups.google.com/d/optout.

[web2py] Help with creating a Select within the Web2Py DAL for a SQL query that uses an 'exists' clause

2017-04-21 Thread George D Elig
"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, visit https://groups.google.com/d/optout.

[web2py] How can I create a DAL Select statement from a SQL exists clause?

2017-04-21 Thread George D Elig
t batch.id from batch where sites.batchid = batch.id) limit 1 Thanks in advance for any assistance. D. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: What's wrong with this script?

2016-05-12 Thread Fernando D. Bozzo
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. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.

[web2py] Re: Pyodel announcement

2015-12-10 Thread Richard D
I / We will extend the goodies. On Thursday, December 10, 2015 at 5:54:23 AM UTC+1, Massimo Di Pierro wrote: > > This was built by some of my students. It is incomplete but has lots of > goodies. > > On Wednesday, 9 December 2015 14:53:33 UTC-6, Richard D wrote: >> >>

[web2py] Pyodel announcement

2015-12-09 Thread Richard D
/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, visit https://groups.google.com/d/optout.

[web2py] Re: Learning Management System survey

2015-12-06 Thread Richard D
is 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, visit https://groups.google.com/d/optout.

[web2py] OnKeyPress

2015-06-30 Thread D. Kev
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, visit https://groups.google.com/d/optout.

[web2py] Download a file

2015-06-23 Thread D. Kev
this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.

[web2py] Re: Adding the number of day to a date

2015-01-31 Thread Richard D
Anthony S What is the trigger for this update of T2 withholding _until? This will influence the solution drastically. Richard D On Saturday, January 31, 2015 at 8:47:47 PM UTC+1, Anthony Smith wrote: > > Hi > > I never explained it very well, > Table 1 has products with a with

[web2py] Re: Extra field in SQLFORM can not be processed()

2015-01-31 Thread Richard D
kbox')) form[0].insert(-1,my_extra_element) Do INPUT and SELECT behave differently? Richard D On Saturday, January 31, 2015 at 6:46:40 AM UTC+1, Anthony wrote: > > You added a select element with the name "conversation" to a SQLFORM based > on db.entity. Does db.entity in

[web2py] Extra field in SQLFORM can not be processed()

2015-01-30 Thread Richard D
;).accepted: Gives an error : 'Table' object has no attribute 'conversation' What is going wrong? Richard D -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/w

[web2py] Re: web2py 2.9.12 is OUT

2015-01-18 Thread Richard D
I upgrade manually from 2.9.11 to 2.9.12, looks fine so far, thank you :) Richard D On Saturday, January 17, 2015 at 7:20:14 AM UTC+1, Massimo Di Pierro wrote: > > Changelog: > > - Modular DAL, thanks Giovanni > - Added coverage support, thanks Niphlod > - More tests, thanks

[web2py] SQLFORM in Nested components

2015-01-10 Thread Richard D
A(T("Edit"),_href=URL('environment','change_issue.load', vars=dict(issue_id=i.id)), ajax=True, cid='chg_issue_' + str(i.id), _class='label') }} The submit button (=ajax?) is not working on this latter FORM. What is wrong here? Ric

[web2py] Re: mobile menu item always active

2015-01-09 Thread Richard D
I have tested this on the iPhone and Samsung Note 2014 with the same behaviour. It looks to be a consequent issue. I'll open a ticket for this. Richard D On Friday, January 9, 2015 at 6:07:36 AM UTC+1, Massimo Di Pierro wrote: > > Please open a ticket. Is this an IPad specific is

[web2py] mobile menu item always active

2015-01-08 Thread Richard D
lse, URL('default', 'statistieken'), []), (T('Presentatie'), False, 'https://prezi.com/e36pz5qa1ghg/het-wij-gevoel/', []) ] Thank your for your feed back. Richard D -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://

[web2py] Re: mobile-menu nav is not is not working up on tablet

2015-01-08 Thread Richard D
Ho Jo, Do you still have this issue? Richard D On Tuesday, October 7, 2014 4:05:08 PM UTC+2, Joe wrote: > > I am having a great time using web2py. I am grateful to all of you who > created and contributed to this amazing framework. I just created my first > app, I am learning as f

[web2py] Re: happy holidays everybody

2014-12-24 Thread Richard D
To all web2py users and developers, Merry X-mas and a happy New Year. Richard D On Wednesday, December 24, 2014 2:48:18 PM UTC+1, Massimo Di Pierro wrote: > I wish a happy holidays to everybody in this community. > > As a Christmas present and mostly the work of Giovanni Barillar

[web2py] Re: Backend and FrontEnd dev

2014-12-18 Thread Richard D
Hi, I would advice to stick to web2py in the first place. Only then you will learn the strengths of Web2py. I have been through a similar process for a RIA app and have now a full web2py app with good functionality. Focus on functionality and organisation win instead of ui details. Richard D

[web2py] Maximum size session variable

2014-12-15 Thread Richard D
s.com. For more options, visit https://groups.google.com/d/optout.

[web2py] Re: Verification email is not sent

2014-12-11 Thread Richard D
Thank you, I think mail.settings.tls = False did it :) Richard D On Wednesday, December 10, 2014 9:34:56 PM UTC+1, Richard D wrote: > > Hi, > > In my app standard email can be send using mail.send(to=['ric > The registration email is not sent however. >

[web2py] Re: Get a Web2py cloud instance in less than 30 seconds

2014-12-11 Thread Richard D
Works nice :) Richard D On Friday, December 5, 2014 5:46:50 PM UTC+1, Enrique Conci wrote: > > Hi There! > > My name is Enrique and I work for Terminal.com, a cloud computing provider. > > We were playing a little bit with web2py and we think it's a really good > produ

[web2py] Verification email is not sent

2014-12-10 Thread Richard D
ages.verify_email = 'Click here' I have no further controller functions. What can be wrong? Thank you for your feedback. Richard D -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2

[web2py] Re: CSV import in LOAD does not work

2014-11-06 Thread Richard D
roups "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, visit https://groups.google.com/d/optout.

[web2py] Re: CSV import in LOAD does not work

2014-11-06 Thread Richard D
Leonel, Thank you for the quick answer, I'll try to implement this. I assume this will not touch the other form handling in components. Richard D On Thursday, November 6, 2014 7:34:36 PM UTC+1, Richard D wrote: > > Dear all, > > I am making a csv import function but en

[web2py] CSV import in LOAD does not work

2014-11-06 Thread Richard D
_href=URL('import','import_entities.load'), ajax=True, cid='internal_add_data_div') }} It looks like the formcsv.process().accepted is working differently, why? Or is something else broken? Richard D (D for distinguishing to the other Richard ;) ) -- Resou

[web2py] Re: Javascript layout

2014-11-04 Thread Richard D
@Anthony, Thank you, from your answer I concluded that it must be possible to use jqwidgets. Loading jquery explicitely, the load completed and ajax did it's job. Not fully ready but a big step in the right direction :) Richard D On Saturday, November 1, 2014 8:51:55 PM UTC+1, Rich

[web2py] Re: Javascript layout

2014-11-04 Thread Richard D
In the default.py controller and navigation.load locals and session vars are set which are rendered for building dropdown menu's on bootstrap buttons. In the standard web2py layout this works fine. The windows are created nicely but is the code above t

[web2py] Re: Javascript layout

2014-11-04 Thread Richard D
Dear All, After some days no reply came to my question. Why is this the case? Is the question wrong, I tried to formulate it in general for the sake of usefullness to others. Richard D On Saturday, November 1, 2014 8:51:55 PM UTC+1, Richard D wrote: > > Hi, > > I want to use

[web2py] Javascript layout

2014-11-01 Thread Richard D
point me to the main solution and design difference between a HTML and javascript layout for web2py? Thank you, Richard D -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: Kendo UI

2014-10-30 Thread Richard D
After a day struggeling and finding Kendo and Angular too much connected, and we need the layout functionality the most, we go for jqxwidgets! Richard D On Thursday, October 30, 2014 5:41:22 PM UTC+1, Leonel Câmara wrote: > > Frankly I considered Angular 1.0 a horrible framework that ap

[web2py] Re: Kendo UI

2014-10-30 Thread Richard D
() { console.log('ok')}) How to solve? Richard D On Saturday, October 25, 2014 12:42:15 PM UTC+2, ArtDijk wrote: > > LS > We are developing a kind of business application. The standard w2p > application user interface is not rich enough for our needs. We nee more > wid

[web2py] Re: Ractive example

2014-10-30 Thread Richard D
Leonel, Richard, Thank you for your support :) The big disturbing factor for me was the wrong Ractive.js I took the first I saw, but that is the development code starting with the imports etc Dive into the release and take ractive.js there. Richard Dijkstra p.s. Trying to use Richard D for

Re: [web2py] Re: Ractive example

2014-10-29 Thread Richard D
s about reserved word that you may use in your model... > > Could you show your model? > > Richarc > > On Wed, Oct 29, 2014 at 4:20 PM, Richard D > wrote: > >> With and without these plugins the error occurs. I downloaded them >> seperately, after the error

Re: [web2py] Re: Ractive example

2014-10-29 Thread Richard D
d(URL('static','js/ractive-events-tap.js')) > response.files.append(URL('static','js/ractive-transitions-fade.js')) > > > Try comment the line above > > Does it remove the error you have? > > Richard > > On Wed, Oct 29, 2

[web2py] Re: Ractive example

2014-10-29 Thread Richard D
Richard D again ;) pass missing was my error cleaning up index.html only half. Having added the 3 js file to application I get the error in the js console when reactive.js is run: Uncaught SyntaxError: Unexpected reserved word More specific: on the first line when importing defaults

[web2py] Re: web2py ala static-site-generator

2013-12-16 Thread Yassen D.
How about generating most of the pages and serving them as static content (e.g. templates that have nothing to render, just plain HTML); then having some templates that really have stuff that needs to be rendered and processed (e.g. a contact form + a POST handler) ? -- Resources: - http://web

[web2py] Re: DAL issues on production server (xen VM)

2013-12-16 Thread Yassen D.
Issue resolved. The source of all trouble was that the Scheduler uses the same db connection as the task it executes. Thus output updates (print '!clear!%(progress)s' % progress) changes the connection status, randomly, hence the strange exceptions. Suggestion: explicitly mention this as a gotc

[web2py] Re: DAL issues on production server (xen VM)

2013-12-15 Thread Yassen D.
On Monday, December 16, 2013 2:46:00 AM UTC+2, Massimo Di Pierro wrote: > > Do you user virtual fields? Are you doing migrations while the scheduler > tasks are running. This is strange because it is a very fundamental piece > of web2py code that has not changed in long time: >> >> >> Massimo,

[web2py] DAL issues on production server (xen VM)

2013-12-15 Thread Yassen D.
Hello guys, Recently updated from w2p 2.2.1 to 2.8.2 as I was advised; now random errors on database inserts started to raise for stuff that worked on the old version (2.2.1). Tracebacks of the two errors: This is the most common one: File "/home/www-data/web2py/gluon/scheduler.py", line 238

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-05 Thread Yassen D.
Niphlod, yes, that was it !! It was not in the db.py but there was a 0.py with 'settings.migrate = True' (this is not my app, I was just asked to hack there to fix an issue). An easy workaround might be to also set fake_migrations to True (fake_migrate_all=True in DAL() creation) and copy and

[web2py] Scheduler-related database tables created on sqLite but NOT on MySQL

2013-12-05 Thread Yassen D.
Hello all, I follow a simple video-tutorial (http://vimeo.com/27478796); so I create a model scheduler.py with this content: def f(): t = time.ctime() open('/tmp/tasks', 'w').write(t + '\n') return f from gluon.scheduler import Scheduler Scheduler(db, dict(our_func=f)) After savin

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-04 Thread Yassen D.
On Thursday, December 5, 2013 9:33:15 AM UTC+2, Yassen D. wrote: > > ... I get an exception saying that table socialjack.scheduler_task does > not exist (traceback below). But the table IS there, I can see it in the db > admin interface and on the MySQL console ... > Not reall

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-04 Thread Yassen D.
On Thursday, December 5, 2013 8:40:28 AM UTC+2, Yassen D. wrote: > > > > On Wednesday, December 4, 2013 10:28:43 PM UTC+2, Leonel Câmara wrote: >> >> Instead of rerunning the task with period, schedule new tasks every time >> you need to go get the user's frie

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-04 Thread Yassen D.
On Wednesday, December 4, 2013 10:28:43 PM UTC+2, Leonel Câmara wrote: > > Instead of rerunning the task with period, schedule new tasks every time > you need to go get the user's friends > I guess I have to create a record into the scheduler_task table, with some reasonable values, and then

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-04 Thread Yassen D.
Leonel, thanks so much for the advice! On Wednesday, December 4, 2013 10:28:43 PM UTC+2, Leonel Câmara wrote: > > Instead of rerunning the task with period, schedule new tasks every time > you need to go get the user's friends and have many scheduler workers if > there's a chance you will have

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-03 Thread Yassen D.
On Monday, December 2, 2013 6:20:54 PM UTC+2, Massimo Di Pierro wrote: > > The scheduler should do what you need. You can start many workers to > manage the load > >> >> Thanks, Massimo! I upgraded to 2.8.2 with minor issues (MySQL date fields seem to have been mapped to strings and now to datet

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-02 Thread Yassen D.
Massimo, thanks a lot for your help! I will upgrade right away then. (I have very limited time, so I was afraid to break things.) My comments: (a) We need to get the import process run instantly on user UI action (link click). Couple of seconds later is okay, but half a minute later is not ok

[web2py] Spawning a thread or a process for a long-running task [urgent!]

2013-12-01 Thread Yassen D.
Hello guys, I am trying to help with a web2py application (web2py v. 2.2.1, ancient, yes) that needs an urgent patch as follows: There is a controller function that fetches all facebook friends of the user and stores them in the db (mysql). Currently this is done plainly in that function, duri

[web2py] Question on DAL

2013-10-29 Thread Saisha D
Forking this question from a different thread since changing topic. I've tried the welcome app n read through the docs, things were a breeze to set up. I'm now at the data modeling stage for my app. I'm quite familiar with bigtable, and most probably going to deploy my startup live on app-engine

[web2py] Re: gae boilerplate vs web2py

2013-10-28 Thread Saisha D
k to app-engine from web2py? On Tuesday, October 15, 2013 11:02:11 PM UTC-7, Saisha D wrote: > > Hi All, > Apologies if this is a repost, my last post did not go through for many > hours, posting again. > > I'm a newbie to web development, but quite familiar with python

[web2py] Re: NDB support for GAE

2013-10-27 Thread Saisha D
oes need to be reviewed by someone with > more in depth knowledge. > But maybe this could serve as a starting point. > > resources: > > > https://docs.google.com/document/d/1AefylbadN456_Z7BZOpZEXDq8cR8LYu7QgI7bt5V0Iw/mobilebasic > > http://dylanv.org/2012/08/22/a-hitchhik

[web2py] Re: NDB support for GAE

2013-10-27 Thread Saisha D
n the datastore. > > I attached a patch i made based on version 2.6.4 > Maybe one of the developers could have a look. > > I'm not a web2py expert so this does need to be reviewed by someone with > more in depth knowledge. > But maybe this could serve as a starting point. >

[web2py] gae boilerplate vs web2py

2013-10-16 Thread Saisha D
Hi All, Apologies if this is a repost, my last post did not go through for many hours, posting again. I'm a newbie to web development, but quite familiar with python (use it at work), I'm trying to quickly prototype some ideas for a startup website. My goal is to deploy it initially with app e

[web2py] web2py vs webapp2 for bootstrap+gae combo

2013-10-16 Thread Saisha D
Hi, I'm trying to quickly set up a website w/o prior experience. Pretty familiar with Python and hence leaning towards web2py since I heard good things and am impressed by the support/community around it. I am going to use AppEngine for backend store with NDB API, and am considering Twitter

[web2py] Re: Strange behaviour of URL.verify() / @requires_signature() with big vars

2013-10-03 Thread D.
one(): > files = [] > for i in range(10): > files.append(i) > redirect(URL("two", vars={"files":dumps(files)}, user_signature=True) > > @auth.requires_signature() > def two(): > files = loads(form.vars.files) > logger

[web2py] Re: Strange behaviour of URL.verify() / @requires_signature() with big vars

2013-10-03 Thread D.
ierro: > > What's into files? How long are the strings? There are limits to how long > the query string can be. I thing the files should be saved in a session and > retrieved by the target page > > On Thursday, 3 October 2013 01:52:47 UTC-5, D. wrote: >> >>

[web2py] Re: Strange behaviour of URL.verify() / @requires_signature() with big vars

2013-10-02 Thread D.
I'm still struggeling with this problem - does anyone have an idea? I narrowed it a bit further down: If the list I'm passing as vars contains 10 items or less @auth.requires_signature() validates correctly and access to the function is granted. However, if the list has 11 or more items I get "

[web2py] Strange behaviour of URL.verify() / @requires_signature() with big vars

2013-09-19 Thread D.
Dear Community, I'm experiencing a strange behaviour of auth.requires_signature()/URL.verify() def one(): files = [] for i in range(10): files.append(i) redirect(URL("show_files", vars={"files":files}, user_signature=True) @auth.requires_signature() def two(): logger.info(Tr

[web2py] Re: LDAP-auth debugging

2013-09-17 Thread D.
Never mind - the problem is in a messed-up configuration of different OUs ...there's no default Groups-Key in my environment - I'll have to customize ldap_auth.py all the way for recursive searches etc. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.c

[web2py] Re: LDAP-auth debugging

2013-09-16 Thread D.
urn the users full-name instead of the the username: CN="Firstname Lastname". :-( Am Dienstag, 17. September 2013 07:56:35 UTC+2 schrieb D.: > > Here are my auth-settings > auth = Auth(db, secure=True) > auth.define_tables(username=True) > auth.settings.create_us

[web2py] Re: LDAP-auth debugging

2013-09-16 Thread D.
entials via web2pys login-form. As mentioned, according to the network-traffic web2py does not even contact the ldap server but tells me "Invalid login" right away. Am Montag, 16. September 2013 19:06:50 UTC+2 schrieb D.: > > Dear community, > > I'm trying to user ld

[web2py] LDAP-auth debugging

2013-09-16 Thread D.
Dear community, I'm trying to user ldap to authenticate against an MS AD as described in the book but I keep getting "Invalid login". I can connect and verify my login through the normal pyhton-console using simple_bind_s and whoami_s just fine - not using web2py however :-( Apparently there's

[web2py] We deployed web2py with apache2 but when we need password to access https://outser.com/appadmin

2013-09-09 Thread D Dan
What is the password to admin access? Where to set this password? Thanks -- 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 becau

[web2py] Re: Scheduler: Wait for another task to finish and use it's return-values as parameters

2013-08-12 Thread D.
; are in > the scheduler_task table. If those are 100, then you update the task > task_name = "task_after_all:run1" with enabled=True and you delete the > "boss" task. > > > Il giorno lunedì 12 agosto 2013 12:07:02 UTC+2, D. ha scritto: >> >> Dear comm

[web2py] Scheduler: Wait for another task to finish and use it's return-values as parameters

2013-08-12 Thread D.
Dear community, in my app, users can chose from a list of different calculations to be run on a given set of data. Normally the order of those calculation is irrelevant and I just schedule all of the selected to be run by a pool of workers. However, I also need an option to specify that a cert

[web2py] Re: python 3.3.2

2013-07-30 Thread D Dan
Thanks Alan. Could you give an example how to share db.py and other function under models/ folder (say menu.py) across applications? On Tuesday, July 30, 2013 12:16:17 PM UTC-7, Alan Etkin wrote: > > You can share the schema across different apps by serving and requesting > it in json or ya

[web2py] Re: python 3.3.2

2013-07-30 Thread D Dan
Is there a way we could share these things (db.py models and modules across applications?) Currently we share databases across applications. IT is a bit tedious to copy schema definitions to many applications. Thanks On Sunday, July 28, 2013 1:54:03 AM UTC-7, Massimo Di Pierro wrote: > > Abo

[web2py] How to change default controller / default function

2013-06-11 Thread D Dan
It looks pretty straightforward base on the online book Default application, controller, and function default_application default_controller default_function When using the pattern-based system, the name of the default application, controller, and function can be changed from *init*, *default*,

[web2py] Re: Ajax-form-submission: pass ALL form-elements

2013-06-01 Thread D.
Excellent, thanks! I think this should go into the documentation! Am Freitag, 31. Mai 2013 22:21:01 UTC+2 schrieb Niphlod: > > see > https://groups.google.com/forum/?fromgroups=#!searchin/web2py/ajax$20anthony/web2py/sYFJWdLoO3g/V-g6KB6XfqYJ > > >> >> -- --- You received this message because

[web2py] Re: Nested dictionaries / JSON to nested HTML-lists

2013-06-01 Thread D.
> > > Thank you so much for your help - I was twisting my head around the nested recursing :-) Since I just use this one-line-tree-code to create my structure, modifying it proved difficult. I got it to work based on your code by checking the length of

[web2py] Ajax-form-submission: pass ALL form-elements

2013-05-31 Thread D.
hen #myform has many elements or is created/modified dynamically, naming all the elements explicitly in the ajax-function is sometimes not an option anymore. How can I just pass ALL form elements of the submitted form to the controller-function? The otherwise excellent "book" sa

[web2py] Nested dictionaries / JSON to nested HTML-lists

2013-05-31 Thread D.
: {}} Now I would like to turn this into a nested html-list? How would I accomplish this task in web2py? (possibly by using html-helpers). The output should look like this: - windows - foo.foo - system32 - foo.dll - lib - bar.bat - explorer

Re: [web2py] Restful authentication and CORS

2013-05-28 Thread Ruben D. Orduz
the restful >> authentication in web2py? Thanks in advance! >> >> Regards, >> Ray >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from t

[web2py] Re: Schedule task with variable as argument

2013-04-28 Thread D.
t settings.case_root > return settings.case_root > > > > When you queue the "dosomething" function, settings.case_root is available > on the task environment (so you can skip passing it explicitely) > > On Sunday, April 28, 2013 7:54:43 PM UTC+2, D. wr

[web2py] Re: Schedule task with variable as argument

2013-04-28 Thread D.
the value of settings.case_root -- --- 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, visit https://group

[web2py] Re: Schedule task with variable as argument

2013-04-28 Thread D.
Am Sonntag, 28. April 2013 19:11:17 UTC+2 schrieb Niphlod: > > args and vars accept strings that are json representation of a list (args) > or a dictionary (vars). > You can pass whatever you need under the condition that is json-encoded. > If you're trying to pass a variable, then you must eval

[web2py] Schedule task with variable as argument

2013-04-28 Thread D.
r: invalid json What's to correct/jsonic way to pass a variable as an argument? Thanks for your help! D. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails f

[web2py] Custom User Registration

2013-04-23 Thread Mike D
Is there a way to do user registration manually and still get all the goodies that come with web2py registration (email verification, admin approval, etc)? Something similar to login_bare() but for registration? Just adding a user to the auth_user table doesn't trigger any of the automatic stuf

[web2py] Grid conditionaly delete

2013-04-15 Thread D.
Dear community, I'm trying to realize a conditional delete on a grid: 1. I don't want a delete-button in grid-view 2. I do want the delete-checkbox in edit-view for each entry -> If I set up the grid with deletable = false I get 1. but not 2. and vice versa :-( 3. When the delete-checkbox gets

[web2py] Re: Nested table-queries

2013-04-15 Thread D.
I figured it out myself :-) I just needed an inline-loop in my lambda-function: ext_info = lambda row: [A(op, _href=URL("edit", args=op_id, user_signature= True)) + " " for op, op_id in get_extended_info_for_case(row.cases.id)] I find this very ugly though (lambdas and inline-loops in genera

[web2py] Nested table-queries

2013-04-14 Thread D.
Dear Community, I just started with web2py and ran into some difficulties: I would like to display a custom table with my data. For the value of a specific field in each row I need the corresponding information from another table. This is what I have so far: def get_extended_info_for_case(cas

[web2py] Re: RPC Versioning Scheme

2013-02-19 Thread Mike D
w controller for a new version. So your old client gets /app/v1 > and your new client gets /app/v2 > > On Tuesday, February 19, 2013 3:50:05 PM UTC-7, Mike D wrote: >> >> Hi, >> >> I'm using web2py to serve RPC methods to a desktop client that a user can >>

[web2py] RPC Versioning Scheme

2013-02-19 Thread Mike D
Hi, I'm using web2py to serve RPC methods to a desktop client that a user can download. I'd like to know if anyone has any thoughts on a good way to version my API so that I can keep the older versions available for users that haven't updated their clients. As a starting point, I'm thinking of

Re: [web2py] Possible bug in JSONRPC in v2.3.2

2012-12-22 Thread Mike D
or an object (serialized as dict). > and act accordingly. It should now be fixed in trunk. > > Massimo > > On Saturday, 22 December 2012 07:03:36 UTC-6, Niphlod wrote: >> >> both of you, jump on the bandwagon here . >> >> https://groups.google.com/d/topic/we

[web2py] Possible bug in JSONRPC in v2.3.2

2012-12-21 Thread Mike D
Hi, I recently updated to v2.3.2 and noticed that my JSONRPC calls were failing with a message of "argument after ** must be a mapping, not str". After investigating some changes in the versions I noticed that in tools.py, in the serve_jsonrpc() function, the following line changed from: s = m

[web2py] Re: Web2py scheduler timeout

2012-12-17 Thread Mike D
I have now tried with two different browsers to attach the log with no success. I keep getting error (340) occurred while communicating with the server. Do you want me to just email you the log? On Monday, December 17, 2012 12:45:45 PM UTC-8, Mike D wrote: > > Sorry about that. I just tr

[web2py] Re: Web2py scheduler timeout

2012-12-17 Thread Mike D
TED >> 2012-12-16 23:12:23,531 - web2py.scheduler - DEBUG -result: "success" >> 2012-12-16 23:12:23,573 - web2py.scheduler - DEBUG - partial output: >> "serach for files >> /usr/local/ss_server/web2py_ss_server >> processing file: >> S-1014.D-2012121412135

[web2py] Re: Web2py scheduler timeout

2012-12-17 Thread Mike D
21:39:30,096 - ss_server - INFO - files globbed 2012-12-16 21:39:30,097 - ss_server - INFO - getting basename for /usr/local/ss_server/input/S-1014.D-20121214121351.L-WIKILONG.I-00055032,.P-2.jpg 2012-12-16 21:39:30,097 - ss_server - INFO - splitting filename 2012-12-16 21:39:30,09

[web2py] Re: Web2py scheduler timeout

2012-12-13 Thread Mike D
I have only this one task. I am certainly going to change the retry_failed and hopefully that will be a sufficient solution. I actually tried your other solution a while ago and that "monitoring" task actually ended up in a TIMEOUT state as well. Sad face. Any idea on that one? Do you think tha

[web2py] Re: Web2py scheduler timeout

2012-12-13 Thread Mike D
annot fix it I will have to find a different solution for directory >> monitoring and not use the scheduler. >> > > Can't you use a task with retry_failed ? > > Next step is enabling debug logging of the scheduler to see what goes on > when the task timeouts > > On T

[web2py] Web2py scheduler timeout

2012-12-12 Thread Mike D
d images") createScaledImage(64, INPUT_DIR + filename, THUMBS_DIR) createScaledImage(600, INPUT_DIR + filename, SMALL_DIR) write_to_log("done creating scaled images") pic_id = processFile(filename) print

  1   2   >