[web2py] LessCSS -- really interesting CSS "compiler"

2011-06-25 Thread Joe Barnhart
ittle overwhelming at how it can transform a complicated CSS file. I'm still wrapping my head around it. -- Joe B.

[web2py] Re: LessCSS -- really interesting CSS "compiler"

2011-06-25 Thread Joe Barnhart
That's http://lesscss.org/ Sheesh. On Jun 25, 7:50 pm, Joe Barnhart wrote: > http://lescss.org/

[web2py] Re: LessCSS -- really interesting CSS "compiler"

2011-06-26 Thread Joe Barnhart
lly pleasing as well as useful. I just thought others may like to know about it... -- Joe On Jun 27, 4:16 am, Jason Brower wrote: > As nice and easy as it is (I love how easy the language is).  Couldn't > we just do this with python? That way we could just add our css file as > a dynamic file like the others.

[web2py] Select by id "off by one" error

2011-09-01 Thread Joe Barnhart
d version (1.98.2) on Mac OSX (source). My table definition is not weird or malformed and no errors are encountered in the program. It just returns the wrong row. The equivalent statement works fine: db(select.table.id==id).select().first() -- Joe

[web2py] Re: Select by id "off by one" error

2011-09-01 Thread Joe Barnhart
hapter... http://www.web2py.com/book/default/chapter/06#Shortcuts Your method works, and is the preferred solution (the book even says so). But we should probably either fix the [id] method or eliminate it from the book. Probably fixing it would be best since there may be old code that relies on it. Thanks,

[web2py] Re: Select by id "off by one" error

2011-09-01 Thread Joe Barnhart
Of course! You have hit it on the head. That is exactly my mistake. The book is correct, and the error is all mine. Warm regards, -- Joe On Sep 1, 1:42 am, Vasile Ermicioi wrote: > from the book > > myrecord = db.mytable[id] > del db.mytable[id] > > db.mytable - is t

[web2py] Big problem -- no session_id without using Auth

2011-09-01 Thread Joe Barnhart
with every mouse click and AJAX send! Please tell me there is a simple way around this. This is a very critical problem for my new site! Warm regards, Joe

[web2py] Re: Big problem -- no session_id without using Auth

2011-09-01 Thread Joe Barnhart
tries it from a different computer, no session id is generated and no session information is retained. I have also tried storing session information in the database with no difference. -- Joe On Sep 1, 10:41 am, Joe Barnhart wrote: > I have an application where I desperately need to track st

[web2py] Re: Big problem -- no session_id without using Auth

2011-09-01 Thread Joe Barnhart
I can believe this. I too have seen it behave perfectly if I have EVER been logged in to the app (or admin i/f) from a computer. But if I go to a computer where it has NEVER seen the admin i/f or logged in, the app fails to give me a consistent session id. It's very weird. On Sep 1, 11:29 am, pb

[web2py] Re: Big problem -- no session_id without using Auth

2011-09-01 Thread Joe Barnhart
then lose the nice automatic session state things web2py does for me. (After all, I use web2py because I'm LAZY!) -- Joe B. On Sep 1, 11:38 am, Jonathan Lundell wrote: > On Sep 1, 2011, at 11:25 AM, Joe Barnhart wrote: > > > Update -- > > > This problem is variable.  After lo

[web2py] Found solution! cgi.FieldStorage problem exposed

2013-05-30 Thread Joe Barnhart
I've had the most awful time trying to get the actual filename of an uploaded file to appear in my database. I've gone over and over the advice, but it has never worked for me. I was beginning to suspect evil spirits in my code when I ran across the problem... cgi.FieldStorage does NOT behave

[web2py] Re: Found solution! cgi.FieldStorage problem exposed

2013-05-30 Thread Joe Barnhart
; > You ran into a bug (imho) that has existed in python since 2001 (at least). > > http://bugs.python.org/issue444913 > > Now it's preserved for backwards compatibility. > > > > On Thursday, May 30, 2013 2:06:20 AM UTC-7, Joe Barnhart wrote: >> >> I'

[web2py] Re: psycopg2 or pg8000

2013-05-30 Thread Joe Barnhart
ger tasks include creating pdf files and this took about 1/3 to 1/5 the time under pypy as compared to cpython 2.7.1. I know this is not an accurate comparison (because of the pypy component), but the runaway memory use of postgres under pg8000 concerned me so I thought I'd mention it.

[web2py] Fun with Scheduler

2013-06-05 Thread Joe Barnhart
I think the web2py scheduler is the most amazing thing ever added to the platform. It is truly a wonder in that it works so well and has such a clean design. I was trying to improve it in the most minor way -- I wanted to create a decorator that causes a function to be submitted to the schedul

[web2py] Re: Fun with Scheduler

2013-06-05 Thread Joe Barnhart
ars) > > If you can package a MINIMAL application to show what you need maybe we > can figure out a general decorator that will be included in the next > scheduler release :P > > Il giorno mercoledì 5 giugno 2013 12:57:40 UTC+2, Joe Barnhart ha scritto: >> >> I th

Re: [web2py] Re: psycopg2 or pg8000

2013-06-05 Thread Joe Barnhart
d its eventual world domination.) Warm regards, Joe On Saturday, June 1, 2013 6:13:57 PM UTC-7, Ovidio Marinho wrote: > > The books Learning Python in chapter Execution Optimization Tools pag.30 > ...Execution Optimization Tools > CPython, Jython, and IronPython all implement the Python l

[web2py] Web2py Grid: Hiding from the main grid but show on other views

2013-06-11 Thread Joe Magaro
Hi, I am just learning web2py and I have a working grid: form=SQLFORM.grid(db.CodeMaster,editable=auth.has_membership('Editor_Group'), create=auth.has_membership('Editor_Group'),deletable=auth.has_membership('Editor_Group') ) There is a field in db.CodeMaster that I would like to hide from

[web2py] Re: Web2py Grid: Hiding from the main grid but show on other views

2013-06-12 Thread Joe Magaro
e > > Now put the two lines in the action before the grid(...) and it will only > apply to that grid. > > On Tuesday, 11 June 2013 15:34:30 UTC-5, Joe Magaro wrote: >> >> Hi, I am just learning web2py and I have a working grid: >> form=SQLFORM.grid(db.CodeMaster,

[web2py] Re: Web2py Grid: Hiding from the main grid but show on other views

2013-06-12 Thread Joe Magaro
Thanks Villas! That did it! On Wednesday, June 12, 2013 5:41:56 PM UTC-4, villas wrote: > > I seem to remember doing something like this once - worth a try: > > if not 'view' in request.args: > db.CodeMaster.Code_Example.readable = False > db.CodeMaster.Code_Example.writable = False > el

[web2py] Setting hmac_key manually from string in auth.key

2013-06-13 Thread Joe Barnhart
omputer #1 is on 2.4.7 and #2 is on 2.5.1 if that matters. Joe -- --- 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...@go

[web2py] Re: Setting hmac_key manually from string in auth.key

2013-06-13 Thread Joe Barnhart
That's an excellent question, and one that did not occur to me. Yes, computer #1 has Python 2.7.1 and #2 has 2.6.6. Was there a change in the way the keys are interpreted between these Python releases? -- Joe On Thursday, June 13, 2013 8:48:41 PM UTC-7, Massimo Di Pierro wrote: > &

[web2py] Re: Setting hmac_key manually from string in auth.key

2013-06-14 Thread Joe Barnhart
That must be it. I updated my deployment to the newest Debian with Python 2.7 and all is working now. You are the man! -- Joe On Thursday, June 13, 2013 10:36:36 PM UTC-7, Massimo Di Pierro wrote: > > There should be no difference but I remember reading in the past there was >

[web2py] Scheduler compatible with nginx/uwsgi?

2013-06-14 Thread Joe Barnhart
on this scheduler -- it's one of the best features of web2py -- so if I have to use apache or something else in production I'll do that. -- Joe -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this

[web2py] Thesaurus for Web2py?

2013-06-15 Thread Joe Magaro
Hi, Can someone recommend a thesaurus that works with Web2py? -- --- 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

[web2py] Re: Scheduler compatible with nginx/uwsgi?

2013-06-16 Thread Joe Barnhart
> its own. What you need to check is that the scheduler instance can connect > to the database (if this was a result of permission problems on the file, > the breakage should have happened before those logs, e.g. reading the > source file of web2py.py). > > On Saturday, Jun

[web2py] Re: Spammers on web2pyslices.com

2013-06-16 Thread Joe Barnhart
At least one site i use regularly implemented a 24-hour posting delay. Sign up today and your posting ability starts tomorrow. It was a little annoying to newbies but it really zeroed the spam! -- Joe On Saturday, June 15, 2013 12:40:50 PM UTC+8, rochacbruno wrote: > > Hi, > >

[web2py] Using a python module in web2py

2013-06-16 Thread Joe Magaro
Hi, I have a thesaurus(nltk-wordnet) working from the python command line. However when I try to use it in Web2Py I get an error. Can someone help, please --- all the details are Below: Simple example Code: - import nltk from nltk.corpus import wordnet as wn def

[web2py] Re: Scheduler compatible with nginx/uwsgi?

2013-06-17 Thread Joe Barnhart
or the worker table. All three schduler tables are completely empty. As for real-time debugging this, I'm in Malaysia this week on a biz trip. (I'm so jet-lagged I don't think I can find my head with both hands!) -- Joe On Sunday, June 16, 2013 8:20:16 PM UTC+8, Niphlod wrot

[web2py] Re: Using a python module in web2py

2013-06-18 Thread Joe Magaro
ownload(). Searched in: - '/var/www/nltk_data' - '/usr/share/nltk_data' - '/usr/local/share/nltk_data' - '/usr/lib/nltk_data' - '/usr/local/lib/nltk_data' On Sunday, June 16, 2013 8:47:10 PM UTC-4, Joe Magaro wrote: > > > Hi

[web2py] Re: Scheduler compatible with nginx/uwsgi?

2013-06-19 Thread Joe Barnhart
Hi Niphlod -- The culprit seems to be the handling of "datetime" in the function "now" in scheduler.py. If I import datetime within the scope of "now" it works fine. I could submit a patch once I get into a place that actually has internet. -- Joe On Monday, J

[web2py] Re: Scheduler compatible with nginx/uwsgi?

2013-06-20 Thread Joe Barnhart
I understand importing modules, or at least I thought I did... Why would it affect scheduler.py if I Import datetime in a module of my own? I haven't made mods to scheduler.py if that is what you meant. -- --- You received this message because you are subscribed to the Google Groups "web2

[web2py] Horrifically slow AJAX -- how to debug?

2013-07-02 Thread Joe Barnhart
ry helpful with some issues but not this one so much.) Joe -- --- 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...@go

[web2py] Re: Horrifically slow AJAX -- how to debug?

2013-07-02 Thread Joe Barnhart
ate in all cases. Only the web2py-nginx-postgres path seems to be excessively slow, and only when I'm using jQuery AJAX requests. On Tuesday, July 2, 2013 4:49:31 AM UTC-7, Massimo Di Pierro wrote: > > Did you try the {{=response.toolbar()}} ? > > On Tuesday, 2 July 2013 05:18:27

[web2py] Re: Horrifically slow AJAX -- how to debug?

2013-07-02 Thread Joe Barnhart
the time waiting for the AJAX response. Hence my quandry. -- Joe On Tuesday, July 2, 2013 5:24:16 AM UTC-7, villas wrote: > > For visualizing network latency etc, Firebug is great (available for > Firefox). > I think all major browsers have a similar development tool. > > &g

[web2py] Re: Horrifically slow AJAX -- how to debug?

2013-07-02 Thread Joe Barnhart
I basically have tried two AJAX requests and one request. Both have resulted in the same outcome. I also tried the session._unlock(response) suggestion but without any measurable result. Clearly something in my setup is snarled but finding it is proving difficult. -- Joe On Tuesday, July 2

[web2py] Re: Horrifically slow AJAX -- how to debug?

2013-07-03 Thread Joe Barnhart
many gigabytes of data, but it may take a year or two to build up to its full potential. I could start with something simpler to configure and upgrade it as the volume builds. Joe -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group

[web2py] Re: Horrifically slow AJAX -- how to debug?

2013-07-03 Thread Joe Barnhart
erver stack. I'll do something about nginx and then see if the problem persists. -- Joe B. On Wednesday, July 3, 2013 1:49:14 AM UTC-7, Massimo Di Pierro wrote: > > Ajax aside, you should be able to start web2py locally and call > > http://127.0.0.1:8000/swim_smarter/results

[web2py] Re: Horrifically slow AJAX -- how to debug?

2013-07-03 Thread Joe Barnhart
for visitors yet. So I am actually using a routable address for the site itself. (I invested in a local ISP so I have learned more about routing than I ever wanted to know!) -- Joe On Wednesday, July 3, 2013 1:17:32 PM UTC-7, Derek wrote: > > You're returning 72 rows, which equates

[web2py] Am I outgrowing DAL?

2013-07-15 Thread Joe Barnhart
(Table A/B and Table B/C) and do the final table joining from Python? Or is there some DAL-fu I'm missing? -- Joe B. -- --- 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] Re: Am I outgrowing DAL?

2013-07-15 Thread Joe Barnhart
is a seldom-used housekeeping part of the site and speed is not as important... Joe On Monday, July 15, 2013 4:09:23 PM UTC-7, Niphlod wrote: > > I don't remember any DAL code that prevents something like that. From a > theoretical standpoint though, every column that is not aggreg

[web2py] Re: Am I outgrowing DAL?

2013-07-15 Thread Joe Barnhart
ought and maybe postgres is telling me that Table A and Table B are not 1:1 as I thought. Every day is an education! -- Joe On Monday, July 15, 2013 5:05:33 PM UTC-7, Massimo Di Pierro wrote: > > This query > > SELECT A.col1, B.col1, count(C.col1) > FROM A, B, C > WHERE A.b_i

[web2py] Re: Am I outgrowing DAL?

2013-07-16 Thread Joe Barnhart
wrong. I'm using all the columns now and although it's painfully slow it works. The painfulness can likely be reduced by choosing the right indexes for my tables. Thanks for your help Niphlod. You are Massimo are constant sources of great information. -- Joe On Monday, July 15, 2013

[web2py] Is there an issue with my web2py install? "can't pickle function objects"

2013-07-16 Thread Joe Magaro
Hi, Lately when I'm in the admin section, when I perform an action such as installing a new app, or deleting a view I keep getting the error below. Im not sure what changed to affect this, please help! raceback (most recent call last): File "/home/www-data/web2py/gluon/main.py", line 606, in w

[web2py] Re: Is there an issue with my web2py install? "can't pickle function objects"

2013-07-17 Thread Joe Magaro
Hi Mossimo - Where would I look for this? I haven't done sessions in my apps yet, but maybe one of the projects I loaded might have. Also, why would an app affect the admin site? On Tuesday, July 16, 2013 10:44:46 PM UTC-4, Joe Magaro wrote: > Hi, Lately when I'm in the admin se

[web2py] Re: Is there an issue with my web2py install? "can't pickle function objects"

2013-07-20 Thread Joe Magaro
raise TypeError, "can't pickle %s objects" % base.__name__ state = base(self) args = (self.__class__, base, state) try: getstate = self.__getstate__ Variablesbase.__name__'function'builtinTypeErrorbase Context loc

[web2py] Re: Is there an issue with my web2py install? "can't pickle function objects"

2013-07-21 Thread Joe Magaro
Hi. I have another issue,and in researching it i'm wondering if this is somewhat related to having 2 or more domains served from web2py? On Tuesday, July 16, 2013 10:44:46 PM UTC-4, Joe Magaro wrote: > > Hi, Lately when I'm in the admin section, when I perform an action such as

[web2py] Re: Using a recursive select but encountered a broken reference

2013-07-21 Thread Joe Magaro
Hi, Im also having the same issue, and the fix above seemed to work -- I'm wondering if there is an official fix for this? On Saturday, March 2, 2013 2:55:17 PM UTC-5, Marin Pranjić wrote: > > This happened to an user multiple times. No idea why it happens. > > Error ticket doesn't show much, th

[web2py] Need Apache help for "uploads" directory

2013-07-24 Thread Joe Barnhart
orked out the changes needed to the stock Apache2 setup that accommodates the upload directory? Seems like it would be a nice addition/update to the book setup. Joe B. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscr

[web2py] Re: Need Apache help for "uploads" directory

2013-07-24 Thread Joe Barnhart
I must say this web deployment step is much harder than using web2py to create the site! -- Joe B. On Wednesday, July 24, 2013 2:58:07 PM UTC-7, Niphlod wrote: > > there are no special permissions because apache can't serve the uploads > directory by itself. Remember that "

[web2py] Re: Need Apache help for "uploads" directory

2013-07-25 Thread Joe Barnhart
x for this anyway. I must have screwed up something when I installed Apache for Debian. Sometimes it's just quicker to start over -- especially since i don't have a big investment of time in this VM instance. Thanks. Joe On Wednesday, July 24, 2013 11:22:20 PM UTC-7, Niphlod wrote:

[web2py] Re: Appending for validation using jQuery.

2013-07-25 Thread Joe Barnhart
one in.) Get Firebug on Firefox and open the "console" pane. It shows you if you have any javascript errors. -- Joe B. On Wednesday, July 24, 2013 10:05:52 PM UTC-7, Prasad Muley wrote: > > Hello All, > I am newbie web2py programmer. I tried to do custom validat

[web2py] Re: Found solution! cgi.FieldStorage problem exposed

2013-07-28 Thread Joe Barnhart
date()" with your own "insert" to manually process forms with upload values. I've been pounding on WingIDE to figure out why I couldn't get my code to work as documented, and I found this. I'm not exactly sure how to code around it, but I'll figure someth

[web2py] Re: Found solution! cgi.FieldStorage problem exposed

2013-07-29 Thread Joe Barnhart
Hi Massimo -- Yes, that should to it. I have a live cgiFieldStorage object at the breakpoint and when I enter "x is not None" reports True. -- Joe P.S. still having upload issues, but that's a separate thread! On Monday, July 29, 2013 5:46:29 AM UTC-7, Massimo Di Pierro

[web2py] Uploading data as blob -- hitting a brick wall

2013-07-29 Thread Joe Barnhart
db.define_table("fileobject", Field("upload","upload",uploadfield=Field("upload_data","blob")), ... Again, this FAILS, but for a different reason -- the "table" attribute of the "upload_data"

[web2py] Re: Uploading data as blob -- hitting a brick wall

2013-07-29 Thread Joe Barnhart
fields. self_uploadfield.table.insert(**keys) I would stake my meager reputation as a Python code reader that the "upload" to blob feature of web2py has been majorly borked, perhaps in a recent update. It doesn't work anything like described in the PDF or online book. It appea

[web2py] Re: Problem with virtual field

2013-07-30 Thread Joe Barnhart
o variable itself. This has the effect of trying to look up the table name key and falling back to assuming its just a simple row. -- Joe B. On Tuesday, July 30, 2013 5:35:38 AM UTC-7, Eduardo Cruz wrote: > > Hi, I have this table > db.define_table('station', >

[web2py] Is saving "upload" data in a database broken?

2013-07-31 Thread Joe Barnhart
I can't seem to get the feature to work. Looking at the code in DAL, I don't see how it could possibly work as documented in the the book. Did something change? Does anyone use this feature? Note: this does not affect GAE since that is handled automatically, and still works as far as I know

[web2py] Re: Uploading data as blob -- hitting a brick wall

2013-08-01 Thread Joe Barnhart
if it is a string and the file is read into the blob data field if true. I'll be able to test my application using DB-stored data now. I'm not sure if its advantages will outweigh the drawbacks, but at least I can give it a proper try now. Thanks again! -- Joe B. -- --- You recei

[web2py] Re: IS web2py good for largescale

2013-08-03 Thread Joe Barnhart
db schema flawed in some way, or other design decisions that crater performance? The current Rails site is pretty well loved but it bogs and people are not happy with response time. Also, my end goal is to scale this site x10 or more, so scalability and stability are paramount! -- Joe B. P.S

Re: [web2py] bizzard issue with postgres web2py select IMPORTANT

2013-08-07 Thread Joe Barnhart
Not to be flip, but couldn't you just reverse the test and use ~(mytable.mybool==False)? That would be false for False and true for True and None (NULL) But I agree it is an interesting find, and I will watch out for this in my own code. Thanks for posting! -- Joe On Wednesday, Aug

[web2py] Cool "formstyle" trick w/Python lambda

2013-08-08 Thread Joe Barnhart
3. ... and many many more! Best of all, it only needs stupid Python tricks and doesn't much with the underlying structure of web2py at all! No nasty stares from the devs! (Just kidding...) -- Joe -- --- You received this message because you are subscribed to the Google Groups &

Re: [web2py] bizzard issue with postgres web2py select IMPORTANT

2013-08-08 Thread Joe Barnhart
=False and turn that into your construction below? Warm regards, Joe On Thursday, August 8, 2013 5:57:44 AM UTC-7, Niphlod wrote: > > it would give the same result, its the exact same "mental-mistake" > if you negate the filter you get exactly what you would get negatin

[web2py] How to switch between pg8000 and psycopg2?

2013-08-08 Thread Joe Barnhart
oject if I discover anything interesting. Ultimately I think the community will be well-served by a pure Python driver because PyPy will work one day and we'll all want pure Python for everything at that time. -- Joe -- --- You received this message because you are subscribed to the Goo

[web2py] Re: How to switch between pg8000 and psycopg2?

2013-08-08 Thread Joe Barnhart
OK. I looked at the source and found I can add a parameter to the URL: 'postgres:pg8000://web2py:web2py@localhost/mydatabase' But the bad news is --- pg8000 doesn't support Python 2.7! (Or so the docs say.) It stopped development awhile ago, apparently. Oh well. -- Joe On T

[web2py] How to keep database portability?

2013-08-09 Thread Joe Barnhart
My head hurts! There must be some pattern I'm missing to extend my database code so that I can prevent it from being too tied to a single platform. What pattern do you use? -- Joe -- --- 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/groups/opt_out.

[web2py] Re: Alias in query

2013-08-09 Thread Joe Barnhart
Just use the variable "suma" as the key in the Row object: r[suma] Don't put quotes around the name -- use the actual variable itself and it will return the string needed to fetch the variable from the Row object. -- Joe On Friday, August 9, 2013 8:01:18 AM UTC-7, Jos

[web2py] Re: How to keep database portability?

2013-08-09 Thread Joe Barnhart
void using "special features" when Postgres can't handle an "insert or ignore" statement without a setpoint and rollback for the statement. -- Joe On Friday, August 9, 2013 12:44:45 PM UTC-7, Niphlod wrote: > > This is a tough point. One thing is saying that your app sh

[web2py] Re: How to keep database portability?

2013-08-09 Thread Joe Barnhart
I need to preserve the database state by keeping the changes to the tables in a consistent state. If I insert a group of records, I need to make sure they all succeed or fail. I can't commit them one at a time in this case. -- Joe On Friday, August 9, 2013 1:55:12 PM UTC-7, Niphlod

[web2py] Re: Creating Auth Groups

2013-08-09 Thread Joe Barnhart
The appadmin application definitely DOES show the auth_* tables for me. Maybe you didn't cause the tables to be built? You need to put in the auth.define_tables() somewhere in your models to cause web2py to build them. -- Joe On Friday, August 9, 2013 2:19:42 PM UTC-7, Rob Paire wrote:

[web2py] Re: How to keep database portability?

2013-08-09 Thread Joe Barnhart
the only method recommended on the Postgres forums, usually when people converting from MySql complain... -- Joe On Friday, August 9, 2013 2:39:36 PM UTC-7, Niphlod wrote: > > On Friday, August 9, 2013 11:11:13 PM UTC+2, Joe Barnhart wrote: >> >> I need to preserve the database st

[web2py] Re: How to switch between pg8000 and psycopg2?

2013-08-09 Thread Joe Barnhart
You are correct. I needed to fixup the migration issue when switching between psycopg2 and pg8000. It works fine. Just did a fake=True and back to False and all was good. -- Joe On Friday, August 9, 2013 12:38:47 AM UTC-7, Massimo Di Pierro wrote: > > I am pretty sure it works wi

[web2py] Re: Curious admin upload behavior: file name changed when uploading to static/css: - becomes _

2013-08-09 Thread Joe Barnhart
ame of the dir under applications to an underscore. I knew and understood why we do this at one time but I've slept since then and appear to have forgotten it all... -- Joe On Thursday, August 8, 2013 1:28:53 AM UTC-7, Massimo Di Pierro wrote: > > Because only some characters are allo

[web2py] Re: Querying auth.user tables for a user with ____ attribute?

2013-08-11 Thread Joe Barnhart
like('Barn%')).select(...) ...or... db(db.auth_user.first_name=='Joe').select(...) ...or... db(db.auth_user.username.contains('frog').select(...) -- Joe On Sunday, August 11, 2013 4:49:25 PM UTC-7, Hunt wrote: > > Hello, > > How would I go about querying the aut

[web2py] I got those ol' datepicker blues!

2013-08-11 Thread Joe Barnhart
;optional"? This is not my first run-in with this feature. I know many people like the "convenience" of this feature but to me it's always been a mixed bag. Especially the "all or nothing" approach we now have where you either take it on all of your fields or kil

[web2py] Re: LOAD() not working

2013-08-11 Thread Joe Barnhart
? If you can separate those and test them one at a time, you can make progress on the problem. -- Joe On Sunday, August 11, 2013 7:04:36 AM UTC-7, lesssugar wrote: > > Both web2py.js and jquery.js are loaded and accessible. There are no JS > errors shown in console, all looks "normal&

[web2py] Re: I got those ol' datepicker blues!

2013-08-12 Thread Joe Barnhart
#x27;m not looking for purity here, just functionality, and this approach worked. That whole "formstyle" thing is a very neat hook. It greatly extends the built-in SQLFORM functionality. -- Joe On Monday, August 12, 2013 12:19:33 AM UTC-7, Massimo Di Pierro wrote: > > Perhaps th

[web2py] Form vars, request vars, hidden fields, oh my!

2013-08-12 Thread Joe Barnhart
e well. Right? Bt! Thanks for playing, but no. The hidden form won't fool the validator into accepting the form. I feel like I'm so close to making this work, yet apparently not seeing some tree for the forest I'm wading through. How do the black-belts handle this? -- J

[web2py] Re: I got those ol' datepicker blues!

2013-08-12 Thread Joe Barnhart
Wow, you are awesome Anthony! You come up with the best one-liners! -- Joe On Monday, August 12, 2013 6:12:04 AM UTC-7, Anthony wrote: > > Also: > > Field('birthday', 'date', > widget=lambda f, v: SQLFORM.widgets.date.widget(f, v, _class= &g

[web2py] Re: Form vars, request vars, hidden fields, oh my!

2013-08-12 Thread Joe Barnhart
or xyzzy is required, even tho that's been changed, It looks like there's still some kind of "length" requirement on the field even tho I've removed the requires. -- Joe On Monday, August 12, 2013 6:30:35 AM UTC-7, Anthony wrote: > > > Take the field &q

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

2013-08-12 Thread Joe Barnhart
s into the scheduler_task table using a db insert. -- Joe On Monday, August 12, 2013 3:07:02 AM UTC-7, D. wrote: > > 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 > irrele

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

2013-08-12 Thread Joe Barnhart
Yesh, I prolly forgot to mention my scheduled tasks are all in modules. That limits me to the thread-local vars and scheduler isn't one of those! -- Joe On Monday, August 12, 2013 11:09:45 AM UTC-7, Niphlod wrote: > > it's really strange that you can't access the sched

[web2py] Re: Form vars, request vars, hidden fields, oh my!

2013-08-12 Thread Joe Barnhart
Nope, no unique or notnull set on the database field. Just a pure, clean text field. I'll see if I can come up with a simplified example. When I did that with another problem Niphlod was helping me with, it showed me what the real issue was. Always a good exercise! -- Joe On M

[web2py] web2py menus don't like iPhone!

2013-08-15 Thread Joe Barnhart
ried the suggested fix on the Bootstrap forum without success but we're still working on it... Thought everyone should know... -- Joe P.S. Please, no Android jokes! -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py] "Automatic" validators being set for tables

2013-08-18 Thread Joe Barnhart
s=[] on each field, but I have something like 50 fields in this table. They are not all string fields, either, so a blanket requires=[] would probably screw up some of the fields. Is there a way to make the automatic validators for length handle IS_EMPTY_OR correctly for fields that may be empt

[web2py] Two tables, one form -- with a twist

2013-08-18 Thread Joe Barnhart
quot; validation failures on fields I'm not using in the form (I compute a subset of the fields since the information is redundant in some way). Should I just punt SQLFORM and do it all manually? -- Joe -- --- You received this message because you are subscribed to the Google Groups &

[web2py] Re: Two tables, one form -- with a twist

2013-08-18 Thread Joe Barnhart
he time in Smalltalk but I'm not accustomed to seeing it in Python! -- Joe On Sunday, August 18, 2013 9:19:28 PM UTC-7, Anthony wrote: > > Also, as a general note, the automatic form names will be different for > create vs. update forms, but you can control that by specifying your

[web2py] Re: "Automatic" validators being set for tables

2013-08-18 Thread Joe Barnhart
e two are examples of the best. Here is the other post: https://groups.google.com/forum/#!topic/web2py/SjyPkAPdRPg -- Joe On Sunday, August 18, 2013 7:05:00 PM UTC-7, Massimo Di Pierro wrote: > > Can you post some code so we can reproduce it? This should not be > happening. In fact the

[web2py] Re: diffrence between web2py and django framework...

2013-08-19 Thread Joe Barnhart
g informed -- the kind of "informed" that only comes from experience in each platform. Warm regards, Joe On Friday, August 16, 2013 11:09:57 AM UTC-7, Udeme Samuel wrote: > > hello developers please i am new to web2py and django but i want to know > what is the diffrence between t

[web2py] Re: The good and bad about web2py!!!

2013-08-22 Thread Joe Barnhart
one and they always come down to the same things -- using "exec" threatens the world as we know it, we import too much automatically, and we just aren't Django enough. Yawn. -- Joe On Wednesday, August 21, 2013 6:45:24 AM UTC-7, Ramos wrote: > > comments ? > http://a

[web2py] We need a new plan for javascript validators

2013-08-25 Thread Joe Barnhart
I'm well into the development of my commercial website and I find I am running afoul of the built-in javascript validators in web2py more and more. If the validators were useless, the decision to just cut them out of the code and be done with it would be easy and simple. But they do have their

[web2py] Re: We need a new plan for javascript validators

2013-08-25 Thread Joe Barnhart
lass = 'date' becomes: class MyDateWidget(StringWidget): _class = 'anything_but_date_here' Reading thru the code I can see there is a lot of power in the widgets. I can muck with "requires", "represents", etc. in addition to the input class. Joe On Sunday,

[web2py] Re: We need a new plan for javascript validators

2013-08-25 Thread Joe Barnhart
I seem to keep underestimating the widget classes and their power. Reading the code I can see that widgets pretty much "own" the fields and their representation in all respects. I can change input class, "represents", "requires" and pretty much anything else the Field needs to show itself.

[web2py] Re: "required" class for required fields

2013-08-25 Thread Joe Barnhart
I just discovered that dictform and smartdictform override my "requires" and add their own, based on the type of the Field. It somewhat defeats the purpose of having a custom widget. -- Joe On Sunday, August 25, 2013 7:51:30 AM UTC-7, Niphlod wrote: > > -1 on the patch. > &

Re: [web2py] github - please follow

2013-08-25 Thread Joe Barnhart
Call me a Luddite but I still like hg. Maybe it's cuz it's written Python... ;-) -- Joe On Sunday, August 25, 2013 4:44:01 AM UTC-7, Massimo Di Pierro wrote: > > We could. It helps me to have two copies. I have messed up the git repo a > couple of times. > > On Sunday

[web2py] Re: faster way to import csv

2013-08-26 Thread Joe Barnhart
eduler. I built in a little "messaging" table so when my scheduler is done it sends a message to me and I can see the results. It's a marvelous piece of work and one of the best features of web2py. -- Joe On Sunday, August 25, 2013 3:15:28 PM UTC-7, Sebastian Demian wrote: > &

[web2py] Frustration with SQLFORM and date formata

2013-09-20 Thread Joe Barnhart
n it should be? I am not using any of the translation services, all I want is simple, US English only, no translations, plain date format both input and output, set to mm-dd-yyyy. I'm stumped. -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gi

[web2py] Re: Frustration with SQLFORM and date formata

2013-09-20 Thread Joe Barnhart
ithout the enclosing list and, although it will correctly read back the format I specified, it always displays the form initially with the wrong date format. -- Joe On Friday, September 20, 2013 4:11:38 AM UTC-7, Niphlod wrote: > > > BTW, a simple requires=IS_DATE(format='%d-%m%-%

[web2py] Re: Frustration with SQLFORM and date formata

2013-09-20 Thread Joe Barnhart
You are a wizard Mr. Niphlod. Using "default" does indeed work where presetting the form.vars does not. I now have a path that works so I am a happy camper! -- Joe B. On Friday, September 20, 2013 11:57:24 AM UTC-7, Niphlod wrote: > > what if you edit a pre-existing record

[web2py] Web2py admin crashes

2013-10-03 Thread Joe Magaro
Hi, All was working well, until today I went and clicked "administrative interface" for my site, and it issues a ticket. Internal errorTicket issued: admin/65.94.212.187.2013-10-03.19-26-12.8b8b3b98-0858-4925-a517-59ebed5f1ad1

[web2py] Re: web2py binary contest

2013-10-15 Thread Joe Barnhart
te (with data) on a Linux server and download it for either Windows or Mac to run locally. I know, not your usual requirement. My idea is to customize a site that gets downloaded by a user and run locally on his laptop. -- Joe B. On Monday, October 14, 2013 12:04:31 PM UTC-7, Niphlod wro

<    1   2   3   4   5   6   7   8   9   >