Re: [web2py] Re: Web2py with python 3.8.5

2021-01-14 Thread Joe Barnhart
Just for the record, because it's not clear from this thread, the Python 3,8 problem seems to have been taken care of. I've been running web2py on Python 3.8 for the last couple of weeks at least and never noticed a problem. On Sunday, January 3, 2021 at 2:26:52 PM UTC-6 jimka...@yahoo.com

[web2py] Re: Happy New Year

2021-01-01 Thread Joe Barnhart
And whatever "lucky food" you ate LAST year on New Year's -- DON'T TOUCH THAT STUFF!! It didn't work. -- Joe On Thursday, December 31, 2020 at 4:33:09 PM UTC-6 snide...@gmail.com wrote: > On Thursday, December 31, 2020 at 11:37:24 AM UTC-8 Massimo Di Pierro > wrote: > &

[web2py] Re: Redis and Python3?

2021-01-01 Thread Joe Barnhart
rtn = None* Does anyone know how to make code blocks in this new stupid Google Groups window? Sheesh. One step sideways and three steps back. -- Joe On Wednesday, September 11, 2019 at 12:11:13 AM UTC-5 Massimo Di Pierro wrote: > :-) > > > On Monday, 9 September 2019 22:40:36 UTC

[web2py] Re: Is it time to take redis off the features list?

2021-01-01 Thread Joe Barnhart
ve it working with python3 but only as far as web2py 2.18.5. > Thereafter I cannot get it to work either. > > Unfortunately it does begin to appear that web2py has reached end of life > status. > > On Friday, 13 November 2020 at 03:13:18 UTC Joe Barnhart wrote: > >> I

[web2py] Is it time to take redis off the features list?

2020-11-12 Thread Joe Barnhart
I know this is really old news, but redis no longer works under python 3 and web2py. I'm just thinking it's time to take out all mention of redis from the book and list of features of web2py. Yes, it technically works with python 2, but since that platform is now dropped in the wake of the

[web2py] Using LOAD and template blocks

2020-10-31 Thread Joe Barnhart
I'm using LOAD functionality to break my webpage into bite-sized "cards" or "widgets" each of which is loaded separately when the page is called. My overall website looks much like a "dashboard" with several of these widgets on a single page. I'm trying to understand the LOAD process and how

[web2py] Re: pyDAL looks abandoned?

2020-08-12 Thread Joe Barnhart
FWIW there's nothing stopping you from using peewee inside web2py instead of DAL, if you desire. It's kind of an advanced topic, but it's possible. I notice peewee relies on cascaded message sends. Being an old Smalltalker I actually like cascaded message sends, but I recall that pypy

[web2py] Re: Tip - Using multiple web2py templates

2020-08-12 Thread Joe Barnhart
Doesn't this have an unfortunate negative effect on "compiled" views? To be compiled, everything about the view needs to be known ahead of time and your dynamic use of templates seems to defeat that. I suspect when you choose to "compile" the application from the web2py admin interface, these

[web2py] Re: Auth - overlapping permissions problem

2020-07-26 Thread Joe Barnhart
Having more than one group with the same permissions is no problem at all. In fact, it's kind of the purpose of role-based authentication. I have a web site that features different classes of users who need access to pages. Some groups can access every single page in the site (e.g. 'root'

[web2py] Re: 2.19.1 redis sessions problem

2020-06-10 Thread Joe Barnhart
Yep. I just confirmed the errant behavior with web2py 2.20.4 and python 3.8.2. If reds sessions are enabled the logon never completes. -- Joe B. On Sunday, March 29, 2020 at 11:39:10 PM UTC-5, Massimo Di Pierro wrote: > > Sorry. We should fix this. Will look into it asap. > > O

[web2py] Re: Redis and Python3?

2019-09-09 Thread Joe Barnhart
ROFL! I don't think it's quite ready for my prime-time cash-producing website yet. I'll definitely keep an eye on it and start playing around with it. I need to keep you from making any decisions I don't like, after all! -- Joe On Monday, September 9, 2019 at 8:48:54 PM UTC-7, Massimo Di

Re: [web2py] Re: Redis and Python3?

2019-09-09 Thread Joe Barnhart
a test bench for this. If someone else has a Python2/redis site already they may be able to test it quicker. -- Joe On Monday, September 9, 2019 at 3:00:50 PM UTC-7, Jim S wrote: > > Is it backward compatible as well? > > -Jim > > On Mon, Sep 9, 2019 at 4:54 PM Joe Barnhart

[web2py] Re: Redis and Python3?

2019-09-09 Thread Joe Barnhart
YES. This seems to work fine in my case. It permits me to save both sessions and cache data to redis using Python3. Maybe we can get it accepted and blessed for the next release. Joe On Monday, September 9, 2019 at 1:03:51 PM UTC-7, rastafarien wrote: > > Hello > > I have a

[web2py] Re: Redis and Python3?

2019-09-09 Thread Joe Barnhart
for a larger deployment. -- Joe On Monday, April 1, 2019 at 11:31:10 PM UTC-7, Massimo Di Pierro wrote: > > we could change True/False with 1/0 but a better approach would be to > remove the value within the redis adapter. The value of locked does not do > anything anyway on

[web2py] Re: Redis and Python3?

2019-03-31 Thread Joe Barnhart
be that would encourage people to complain that the implementation of the redis DAL dialect is too deficient. Putting it in DAL would raise people's expectations of what it can handle. -- Joe On Sunday, March 31, 2019 at 10:19:20 AM UTC-7, Jim S wrote: > > I changed the following in gluo

[web2py] Re: In praise of the lowly "nested_select"

2019-03-29 Thread Joe Barnhart
so implements "on", but not Expression) I should come up with a simpler example. This one was just grabbed directly out of my site so I knew it worked but i's too complex to just show the concept. -- Joe On Wednesday, February 13, 2019 at 11:22:46 AM UTC-8, Skiros wrote: > > Hello ! > Ver

[web2py] Re: In praise of the lowly "nested_select"

2019-03-29 Thread Joe Barnhart
use I'm always using it to get to Fields and other table-related items. So, to reiterate, the "on" function is in the Table, not Expression. -- Joe On Wednesday, February 13, 2019 at 11:22:46 AM UTC-8, Skiros wrote: > > Hello ! > Very interesting !!! > > I'm trying to reprod

[web2py] Re: Redis and Python3?

2019-03-29 Thread Joe Barnhart
t way as I wasn't planning to become a redis expert. Sessions in redis could be important to me, tho, so I may need to set aside some time to dig into it. (Storing sessions in cookies has been problematic due to the limited space for cookies in browsers.) -- Joe On Wednesday, March 27, 2019 at

Re: [web2py] Re: Not my type

2019-03-29 Thread Joe Barnhart
Python 2 and the code fails, copy and paste the actual error message you get and we'll puzzle it out. Warm regards, Joe On Friday, March 29, 2019 at 7:32:52 AM UTC-7, Al Hart wrote: > > Hi Joe, > > Thanks so much for responding. Let me be more specific. I was referring to a

[web2py] Re: web3py again....

2019-03-28 Thread Joe Barnhart
to minimize/abstract and provide a growth path. Plus, with py3 and web2py in hand, its not like there's a fire that needs putting out. -- Joe On Thursday, March 28, 2019 at 2:16:15 AM UTC-7, Massimo Di Pierro wrote: > > I know this comes up once in a while but ... > > https://githu

[web2py] Re: Not my type

2019-03-28 Thread Joe Barnhart
Hi Al -- First off, welcome to the web2py group. Next, it's not clear from your message just what the question is. If you can elaborate on (a) what you did, (b) what you expected, and (c) what you got, I'm sure someone here can help Warm regards, Joe B. On Thursday, March 28, 2019 at 2:10

[web2py] Re: Redis and Python3?

2019-03-27 Thread Joe Barnhart
I AM using numerous bools as VALUES in dictionaries. Do you think there is some kind of workaround to convert bools to strings for the purpose of storing sessions in Redis? Warm regards, Joe On Sunday, March 24, 2019 at 11:45:07 AM UTC-7, Massimo Di Pierro wrote: > > Hello Joe, > bas

[web2py] Redis and Python3?

2019-03-19 Thread Joe Barnhart
of redis I'm wondering how it seemed to work before. It's been awhile since I used it, but I swear it worked before. Didn't it? Maybe I dreamed it. -- Joe Message: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. Traceback (most recent call

[web2py] Re: how can I get row representation set in 'format' table option

2018-10-23 Thread Joe Barnhart
, it can be accessed as the attribute _format on any table. -- Joe On Tuesday, October 23, 2018 at 5:53:01 AM UTC-7, Shawn Michaels wrote: > > > Hi, I have this minimal example: > > db.define_table('entry_type', > Field('label'), > format='%(label)s' > ) > > how can I

[web2py] Re: Limits of storing session in browser cookie?

2018-09-27 Thread Joe Barnhart
the amount of session data all these years with web2py. It made my session fat and lazy! -- Joe On Thursday, September 27, 2018 at 3:51:37 PM UTC-7, Anthony wrote: > > You'll be limited to 4KB (post-encryption). I suppose a reasonable > alternative would be to use sessionStor

Re: [web2py] Setting writable and readable=True on all fields

2018-09-27 Thread Joe Barnhart
Yep. I'm pretty sure 'fields' is a list so it doesn't need function parentheses. And since "my_table" and "db['my_table']" are the same: for f in my_table.fields: my_table[f].writable=True Same thing, but sweetened with syntactic sugar. (low calorie) -- Joe On Th

[web2py] Re: How to capture auth_user login time & logout time

2018-09-27 Thread Joe Barnhart
What Anthony said. Only sessions rarely log out. They mostly time out, which does not show up as an event. Joe On Wednesday, September 26, 2018 at 12:13:25 PM UTC-7, mostwanted wrote: > > Hi guys, i was wondering if there is a way for me to capture user login > time and user lo

[web2py] Limits of storing session in browser cookie?

2018-09-27 Thread Joe Barnhart
ere's a LOT of stuff in the session, and I wonder if the size of the cookie might be causing its truncation? What are the practical limits of using browser cookies to hold session data, and are there workaround for large-ish sessions? Joe -- Resources: - http://web2py.com - http://web2py.com/book (D

[web2py] Re: How to add variable in function which called inside ajax function

2018-09-04 Thread Joe Barnhart
$.ajax({ data: {a:2, b:3}, url: "{{=URL('loadAdditonalInfo')}}", success: my_success_fcn(ret) )}; Something like this, from memory... You can get more details at the jQuery website. It has excellent docs. Joe On Tuesday, September 4, 2018 at 6:23:03 AM UTC-7, Константин Ко

[web2py] Re: pydal metadata in db

2018-09-04 Thread Joe Barnhart
iculty for me unless I have good workarounds. Joe On Sunday, September 2, 2018 at 11:08:50 AM UTC-7, Massimo Di Pierro wrote: > > We you may know web2py has the ability to store table metadata in DB: > > from gluon.dal import InDBMigrator > db = DAL(myconf.get('db.uri'), adap

[web2py] Re: Hidden fields in SQLFORMs are one-way?

2018-08-27 Thread Joe Barnhart
d go edit the hidden field value directly and my new value is rendered when the xml method is called to build the view. form.attributes['hidden']['a'] = 'new value' -- Joe On Monday, August 27, 2018 at 6:39:50 AM UTC-7, Anthony wrote: > > From the book: > > form = SQLFORM(...,

[web2py] Hidden fields in SQLFORMs are one-way?

2018-08-26 Thread Joe Barnhart
. if form.validate(): . . . elif form.errors: form.var.a = 'c' What am I missing? Are hidden fields dumb, one-way-trip only fields? Are they not modifiable along with the other fields? -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (

[web2py] Re: Need to add form "warnings" in addition to "errors"

2018-08-23 Thread Joe Barnhart
he unfortunate collision of design choices to limit the usefulness of "elements" in this one corner case. The red flash isn't that bad. I'll just say I'm doing it deliberately to get the user's attention. "A feature is a bug as described by Marketing..." On Wednesday, August 2

[web2py] Re: Need to add form "warnings" in addition to "errors"

2018-08-22 Thread Joe Barnhart
y the enclosing DIVs to be class "warning" also. I'd provide different CSS for the yellow background. Just thinking out loud here. On Wednesday, August 22, 2018 at 3:31:14 PM UTC-7, Joe Barnhart wrote: > > I'm looking to add "warnings" to forms using (/hijacking) as m

[web2py] Re: session data type changed after upgrade to 2.17.1

2018-08-22 Thread Joe Barnhart
So "session" stuff gets pickled and unpicked which makes sense that dates might come back as strings. What puzzles me is that it "used to work" so did pickled date objects used to come back as date objects again? That would seem like a much bigger change than just t

[web2py] Need to add form "warnings" in addition to "errors"

2018-08-22 Thread Joe Barnhart
ant to add the original INPUT and not my subclassed version, leading to more fun and hilarity. Any simple ideas from the web2py blackbelts? I'm a brownbelt and can probably implement it if you give me a hint. -- Joe P.S. An example of a warning would be if a user fills in his parent's last

[web2py] Re: New web2py/pydal feautures for scalability

2018-08-07 Thread Joe Barnhart
irst off, store "session" data on the user's web client by putting session data directly in the cookie. Then configure DAL to store the "metadata" (i.e. "*.table" files) in the database itself, as shown below... If I got it wrong, please let me know. -- Joe On Sunday,

[web2py] Re: How do you change memcache session expiry?

2018-08-07 Thread Joe Barnhart
Yes, I agree. This needs to be REMOVED FROM THE BOOK. I've just wasted most of a day before realizing memcache is useless for sessions. -- Joe On Friday, January 18, 2013 at 1:03:01 AM UTC-8, Paolo wrote: > > Hi all, I have just tried the solution proposed on the issue but it doen't

[web2py] In praise of the lowly "nested_select"

2018-08-02 Thread Joe Barnhart
performance and still keep the power and generality of DAL. This feature might deserve additional explanation in the book. -- Joe If you want to see the executesql version, hold your nose and peek below. I'm sure it is ghastly and could be done much better. There are two variants I was play

[web2py] Re: Using cache.action in a module

2018-08-02 Thread Joe Barnhart
e because their data is (a) relatively large (~50k), (b) relatively costly to get (~300ms), and (c) unchanging for all time and all users. They depend only on the supplied vars for uniqueness. When I cache them the app really pops! -- Joe On Wednesday, August 1, 2018 at 11:28:39 AM

[web2py] Re: Using cache.action in a module

2018-08-01 Thread Joe Barnhart
_name__ = f.__name__ return g return decorator On Wednesday, August 1, 2018 at 12:50:12 AM UTC-7, Joe Barnhart wrote: > > Oops, I meant of course; > > current.cache.action > > instead of > > current.cache > > > > > On Wednesday, August 1,

[web2py] Re: Using cache.action in a module

2018-08-01 Thread Joe Barnhart
Oops, I meant of course; current.cache.action instead of current.cache On Wednesday, August 1, 2018 at 12:48:00 AM UTC-7, Joe Barnhart wrote: > > You're a fountain of ideas! I missed that one in the book. > > I wonder if this would work. Off to go try it... > > def lazy

[web2py] Re: Using cache.action in a module

2018-08-01 Thread Joe Barnhart
, prefix, session, vars, lang, user_agent, public, valid_statuses, quick)(f)(*c, **d) g.__name__ = f.__name__ return g return decorator On Tuesday, July 31, 2018 at 11:25:10 AM UTC-7, Anthony wrote: > > On Tuesday, July 31, 2018 at 1:57:46 AM UTC-

[web2py] Using cache.action in a module

2018-07-30 Thread Joe Barnhart
ing for trouble? Is there anything I should watch for? -- Joe -- 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 sub

[web2py] Re: Why does cache.disk cause recursion error?

2018-07-30 Thread Joe Barnhart
it does what I want. Won't win any contest for prettiness, tho. -- Joe On Monday, July 30, 2018 at 12:13:42 PM UTC-7, Anthony wrote: > > The particular code being pickled, if it matters, looks like this: >>> >>> >> data-toggle="dropdown"> >>>

[web2py] Unicode strings play havoc with JSON

2018-07-30 Thread Joe Barnhart
tring' The default json encoder keeps the "u" making the string unreadable to the web page. I can smash everything with str() before encoding to get rid of the unicode flag but it's tedious. -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gi

[web2py] Why does cache.disk cause recursion error?

2018-07-29 Thread Joe Barnhart
I'm using cache.action with cache_model=cache.disk to play with optimization of my site. To be sure, this page has a lot going on -- complicated menus using "button" objects among the issues. But I don't have any circular references, at least as far as I can tell. Still, I get the error:

[web2py] Postgres migration errors

2018-07-29 Thread Joe Barnhart
I’d get rid of the idiom: db.colname==“%s”%pythonvar Just replace it with: db.colname==pythonvar — Joe -- 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: Using Scheduler without "dict" to define functions

2018-06-26 Thread Joe Barnhart
Thank you for pulling back some of the mystery surrounding the scheduler for me. The module import idea is fabulous and will completely solve my problem! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Using Scheduler without "dict" to define functions

2018-06-26 Thread Joe Barnhart
ot; even though I specifically test to make sure it is visible when invoking web2py -M -S app/controller/x How do I scale this up without needing 100 stub functions in a model file along with the scheduler? -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - h

Re: [web2py] Re: Scheduler and far-away tasks

2018-06-11 Thread Joe Barnhart
swimmers to get access before their worst -- the idea is easily extended to any level of granularity down to individual swimmers if necessary. -- Joe On Monday, June 11, 2018 at 11:30:30 AM UTC-7, Richard wrote: > > Hello Joe, > > I am not using the scheduler primarilly because I ne

[web2py] Re: Scheduler and far-away tasks

2018-06-11 Thread Joe Barnhart
scheduler. Believe it or not, on the old site this is all manual operation. There are swim meet hosts who stay up until midnight to control their meet's visibility now. -- Joe On Monday, June 11, 2018 at 8:16:04 AM UTC-7, Anthony wrote: > > I suppose that should be fine. Tasks are stored i

[web2py] Scheduler and far-away tasks

2018-06-10 Thread Joe Barnhart
eliability is of high importance in my site, so design that decreases reliability is to be avoided. -- Joe -- 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) --- Yo

[web2py] Re: create users manually

2018-05-18 Thread Joe Willrich Lutalo
Thanks, but in the typical application structure, where would you place these function invocations? In my case, am working on an existing application instance, and want to easily add a new user into the db, if possible, merely overriding the password of an existing account with a new one. Just

[web2py] AppConfig in JSON returns unicode

2018-04-17 Thread Joe Barnhart
was a "str" and failed because it was "unicode". Anyway, the workaround is to use "str()" on any fields that are critical. Longer term, it may be useful for the maintainer of AppConfig to return strings instead of unicode from JSON format files. -- Joe -- Resources:

[web2py] Re: Customizing Fields the lazy way

2018-04-15 Thread Joe Barnhart
. date_field("birth", label=T("Birth date")), . . . It all works really well and gives me the single point of control I want. It requires no changes in web2py and works with current, past, and future versions. And the lazy programmer in me marvels at all the code

[web2py] MySql deprecation of NO_AUTO_CREATE_USER

2018-04-15 Thread Joe Barnhart
0.07 Just curious... -- Joe -- 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 &qu

[web2py] Re: Decrypt password from auth_user

2018-04-09 Thread Joe Barnhart
Actually you don’t want to show the correct number of characters. That gives an attacker a lot of information. -- 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

[web2py] Re: Form stopped working...

2018-02-21 Thread Joe
Thanks Leonel, what is the best way to fix this problem? I am on Pythonanywhere, I am not sure about what I should do at this point. On Wednesday, February 21, 2018 at 11:31:46 PM UTC+8, Leonel Câmara wrote: > > From the point of view of web2py if you had migrations enabled what > happened was

[web2py] Form stopped working...

2018-02-20 Thread Joe
and the form is no longer processing anything. I changed it back, reloaded the app I tried everything but it's not processing the Form. I would appreciate some help with this. Thanks. Cheers, Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-11-02 Thread Joe
/username/web2py/applications So, that's how I end up with this problem: /home/username/web2py/applications/new_directory/applications/init On Thursday, November 2, 2017 at 11:20:41 PM UTC+8, Anthony wrote: > > On Thursday, November 2, 2017 at 5:54:41 AM UTC-4, Joe

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-11-02 Thread Joe
In pythonanywhere you have to create a folder first before you install the app. So you mean, it should be* /web2py/applications/my_app_directory/init* On Thursday, November 2, 2017 at 10:05:13 AM UTC+8, Anthony wrote: > > In any case, can you advise me on how to fix this problem? My directory

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-11-01 Thread Joe
on pythonanywhere? Thanks again for all your help with this. Cheers, Joe On Sunday, October 15, 2017 at 10:07:51 PM UTC+8, Anthony wrote: > > On Friday, October 13, 2017 at 7:22:42 PM UTC-4, Joe wrote: >> >> Hi Dave, I have reloaded the apps in web2py if that's what you mean. I >>

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-10-24 Thread Joe
with the account. I mean setting up everything again. I hope not. Please let me know your thoughts. Thanks again. Cheers, Joe On Tuesday, October 24, 2017 at 1:27:22 PM UTC+8, Dave S wrote: > > > > On Monday, October 23, 2017 at 8:00:29 PM UTC-7, Joe wrote: >> >> Hi Anthony,

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-10-23 Thread Joe
love to resolve this, and find out what's wrong. Thanks again for all your help. Cheers, Joe On Sunday, October 15, 2017 at 10:07:51 PM UTC+8, Anthony wrote: > > On Friday, October 13, 2017 at 7:22:42 PM UTC-4, Joe wrote: >> >> Hi Dave, I have reloaded the apps in web2py

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-10-13 Thread Joe
will still have to be *mysite.com/init/static/robots.txt* to reach it- this is the issue I am trying to solve - I am trying have *mysite.com/robots.txt* On Saturday, October 14, 2017 at 2:35:11 AM UTC+8, Dave S wrote: > > > > On Friday, October 13, 2017 at 2:12:13 AM UTC-7, Joe wrote:

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-10-13 Thread Joe
the rewrite system as > above, there is no particular reason to name your app "init". The only > reason to use "init" is if you are not using the rewrite system and want a > default application when accessing a URL with the domain name only. > > Anthony > &

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-09-18 Thread Joe
troller if you want /default/index to be > gone when there are any request.args. > > How are your URLs being generated? What happens if you just go to > http://yourdomain.com? > > Anthony > > On Sunday, September 17, 2017 at 9:24:31 AM UTC-4, Joe wrote: >> >&g

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-09-17 Thread Joe
Yes, I reloaded the app. Nothing happens, it doesn't change the URL. I tried several different ways to change the routes.py. In the current situation in the *web2py* folder I have this in the* routes.py* file: routers = dict( BASE = dict(default_application='init'), ) Then, in the

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-09-16 Thread Joe
= dict(default_application='myapp'),) I must be missing something. Joe On Friday, September 15, 2017 at 9:45:19 PM UTC+8, Anthony wrote: > > See > http://web2py.com/books/default/chapter/29/04/the-core#Parameter-based-system. > > In routes.py, something like: > > route

[web2py] How to get rid if the /init/default/ in the URL?

2017-09-15 Thread Joe
I've been trying to do this for so long, but with *pythonanywhere* hosting, it doesn't seem to be possible to get rid of the *init/default/* part of the URL. I think, this nested sub-directories structure is not optimal for SEO and also makes it difficult to place the *robot,txt* and

[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Joe Barnhart
Thank you for your help, Anthony. -- Joe -- 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

[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Joe Barnhart
quot;,label=XML(T("SCM %s",("",, elapsed_time_field("scm_le",label=XML(T("SCM %s",("",, elapsed_time_field("scy_gt",label=XML(T("SCY %s",("",, elapsed_time_field("scy_le",label=XML(T("SCY %s

[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Joe Barnhart
inted literally in the form label instead of creating the symbol I intended. So I got around the problem with CAT(). Still, an awful amount of work and hassle to reverse-engineer and make a work around for something that just should have worked. I'm not sure why is "sanitized" to begi

[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Joe Barnhart
goes wrong, it goes very wrong. And you need to spend hours with the source trying to figure out where it went wrong and if there's an easy fix without modifying the distro. -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sou

[web2py] Re: How to use HTML escapes in Field titles

2017-07-24 Thread Joe Barnhart
Ugh. Replace the word "title" with "label" everywhere. Global search and replace. -- 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

[web2py] How to use HTML escapes in Field titles

2017-07-24 Thread Joe Barnhart
quot;)), elapsed_time_field("scm_le",label=T("SCM ")), elapsed_time_field("scy_gt",label=T("SCY >")), elapsed_time_field("scy_le",label=T("SCY ")), Field("nt_ok", "boolean", label=T("Allow NT")),

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-21 Thread Joe Barnhart
Yes. I just tested with 2.15.2 and all works perfectly as expected. -- Joe On Thursday, July 20, 2017 at 2:58:08 PM UTC-7, Massimo Di Pierro wrote: > > Can you confirm all is good now with 2.15.2? > Thanks to you and Leonel for looking into this so quickly. > > On Sunday, 16 Jul

[web2py] Re: Sacramento-area web2py programmers?

2017-07-17 Thread Joe Barnhart
that indoor programming jobs would be highly preferred... -- Joe On Monday, July 17, 2017 at 8:45:36 AM UTC-7, Alex Glaros wrote: > > who else lives around Sacramento besides Joe? > > You're invited for dinner and talk some weekend at my house in Winters, CA > (near Davis) > > con

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
Yes that fix looks exactly on point. -- Joe On Sunday, July 16, 2017 at 3:28:22 PM UTC-7, Leonel Câmara wrote: > > Joe the fix on the DAL wasn't for your problem, Your problem was fixed in > web2py here: > > https://github.com/web2py/web2py/pu

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
You are correct. By using the SQLFORM.factory function the table was, indeed, different. I blame the lapse on the inability of neurons to function in the 106 degree heat we're having in the Sacramento area today. -- Joe On Sunday, July 16, 2017 at 2:53:10 PM UTC-7, Anthony wrote: > &g

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
I think I tried your fix but it didn't work. None of my fields were "common". Massimo had pointed out the fix on Github. -- 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: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
Found the issue and a workaround see below. -- 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

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
uot;, _class="center”)) . . . Cloning the fields before using them in SQLFORM.factory avoids the error. -- Joe On Sunday, July 16, 2017 at 10:15:18 AM UTC-7, Leonel Câmara wrote: > > Joe can you show us some code? I've already fixed two bugs related to > this, one on the DAL and anot

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-15 Thread Joe Barnhart
1 or later versions. I'm weeks away from deploying the biggest site I've ever done. As of this second, my best short-term option is to revert to the previous version of web2py and finish. But that has severe long-term repercussions if I can't update my web platform in the future. -- Joe

[web2py] Re: Web2py like clone in Java?

2017-07-15 Thread Joe Barnhart
As long as we're adding interesting but obscure and little-used web platforms, I'd like to submit Seaside, the Smalltalk web platform. Just... well... because Smalltalk! -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: Grails for web2py - anyone interested ?

2017-07-15 Thread Joe Barnhart
But Grails borrowed heavily from Rails. And you, Massimo, mentioned that Rails also provided some "inspiration" for web2py So by the commutative property of web platforms, web2py and Grails share some family similarities. -- Joe On Thursday, July 13, 2017 at 10:05:54 AM UTC-7,

[web2py] ValueError: Field is already bound to a table <-- need a fix for this

2017-07-15 Thread Joe Barnhart
inding in the driver immediately before a query.) Why can this binding only happen once? Is it happening because I do the heavy lifting in modules instead of controllers? I often use the same tables more than once in a function, so this could be problematic (read: fatal) in my adoption of 2.15.1. -

[web2py] Re: DAL sqlite vs postgresql: Row Orders are different?

2017-07-03 Thread Joe Barnhart
join). Which table would you "default" the order-by clause to? -- Joe On Friday, June 30, 2017 at 3:53:17 PM UTC-7, lyn2py wrote: > > I ran my app on *sqlite* and things are working well, so I ported it over > to *postgresql*... however I noticed one glaring difference

[web2py] Re: cpython and web2py

2017-06-27 Thread Joe Barnhart
r techniques can fix just about anything. -- Joe On Sunday, June 25, 2017 at 12:10:56 PM UTC-7, Ron Chatterjee wrote: > > Ok. I buy that. > > Speed is always a plus. > > Whats are the calls to run web2py with pypy? Can you share a link or an > example? I cant seem to find tha

[web2py] Re: cpython and web2py

2017-06-25 Thread Joe Barnhart
uot; which just speeds up all web2py websites for all occasions. -- Joe On Sunday, June 18, 2017 at 3:27:19 PM UTC-7, Ron Chatterjee wrote: > > Have anyone tried this? Wondering if this is a way to gain some speed. > > > https://micropyramid.com/blog/running-django-with-

[web2py] Re: cpython and web2py

2017-06-17 Thread Joe Barnhart
No. On Sunday, May 28, 2017 at 8:50:15 AM UTC-7, Ron Chatterjee wrote: > > I understand that. No one is disputing better coding better performance. > But the question is: > > Cython wrapper ( > > Default. Py > > ) > Is it possible. If so how? > > -- Resources: - http://web2py.com -

[web2py] Re: Error in handling long ints in gluon.serializers json()

2017-05-26 Thread Joe Barnhart
t parent, it does not check up the "tree". And all of the helpers are subclasses of DIV, which itself is a subclass of XmlComponent. Just askin'... On Friday, May 26, 2017 at 12:05:25 PM UTC-7, Joe Barnhart wrote: > > I dunno how this affects me and not everyone else who uses this tool.

[web2py] Error in handling long ints in gluon.serializers json()

2017-05-26 Thread Joe Barnhart
ipt responds with "SyntaxError: No identifiers allowed directly after numeric literal" every time. Where am I going wrong? -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issue

[web2py] Re: cpython and web2py

2017-05-18 Thread Joe Barnhart
oblem, you carefully profile the system to find out exactly where the problem lies. Then you determine the best way to fix the problem. I'll give you a peek in the back of the book -- born from 40+ years of programming experience. The problem is never where you thought it would be. -- Joe --

[web2py] Re: Manual error regarding "hidden" fields

2017-05-10 Thread Joe Barnhart
"Invalidate".was supposed to be "onvalidation" before autospell worked its wonder... -- 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

[web2py] Re: Manual error regarding "hidden" fields

2017-05-10 Thread Joe Barnhart
gic in the "validate" and "accept" functions effectively block that. So just swap the lines and the manual is back to being perfect! -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code

[web2py] Re: Manual error regarding "hidden" fields

2017-05-09 Thread Joe Barnhart
. -- Joe On Tuesday, May 9, 2017 at 7:35:08 AM UTC-7, Anthony wrote: > > Good point. Maybe submit a PR to the book repo. > > On Monday, May 8, 2017 at 5:07:01 PM UTC-4, Joe Barnhart wrote: >> >> In the section about SQLFORM, the description of hidden fields is >>

[web2py] Re: Validate_and_insert fails because "id" has no value

2017-05-09 Thread Joe Barnhart
etting the "requires=None" for the three reference fields. -- Joe On Tuesday, May 9, 2017 at 7:34:15 AM UTC-7, Anthony wrote: > > id fields do not get any validators by default, and if they did, it > certainly would not be an IS_IN_DB validator (if anything, it would be >

[web2py] Validate_and_insert fails because "id" has no value

2017-05-08 Thread Joe Barnhart
ments be evaluated if the first test fails, so it goes on to the second test, which gives an exception. I'm not sure how this ever worked, but I'm sure it did at one point. Maybe there was a regression. This was done in web2py 2.14.6-stable. -- Joe -- Resources: - http://web2py.com - http://w

  1   2   3   4   5   6   7   8   >