[web2py] janrain google is not being displayed any longer

2014-03-10 Thread Adi
Used to have a basic janrain account, and yesterday morning Google login button disappeared, while other 3 are still there. Any suggestions what could be the reason? Afterwards I upgraded a service level to plus, regenerated Google+ key, and added Facebook and Twitter, but the original 3 (aol,

[web2py] sqlform.grid boolean field search doesn't return any rows

2013-10-11 Thread Adi
Search: table.field = on (shows rows with T) table.field != on (no rows, even though there are some F's) 2.7.3-stable+timestamp.2013.10.11.19.30.17, MySQL, field defined as boolean, char(1) I think this worked, but haven't used it in some time. -- Resources: - http://web2py.com -

[web2py] Re: sqlform.grid with div instead of html tables

2013-09-21 Thread Adi
I'm formatting the data for certain columns within each row by calling a function, and returning an XML element, which then displays HTML within that cell. Code bellow is just to give you an idea... GRID: links=dict(orderMaster=[

[web2py] Re: sqlform.grid with div instead of html tables

2013-09-21 Thread Adi
elements to the grid). Anthony On Saturday, September 21, 2013 5:46:26 PM UTC-4, Adi wrote: I'm formatting the data for certain columns within each row by calling a function, and returning an XML element, which then displays HTML within that cell. Code bellow is just to give you an idea

Re: [web2py] Re: simple button in grid question

2013-09-16 Thread Adi
. thanks, Alex On Saturday, September 14, 2013 6:56:24 PM UTC-7, Alex Glaros wrote: Works perfect Adi and Villas, much appreciated. Here's the complete code: def view_all_suggestions_and_**comments(): query = (db.IdeaComment.ideaID==db.**Idea.id http://db.Idea.id

[web2py] one more web2py e-commerce app :)

2013-09-16 Thread Adi
Just completed a core system at nammuhats.com. Can't praise enough how easy, (and rock solid) is to build systems with web2py :) Once again, thanks Massimo and all contributors for the best framework! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: How to make smartgrid redirect to edit after creating new record?

2013-09-15 Thread Adi
, Alex Glaros wrote: Adi, you had a tiny working example above *this works: grid=SQLFORM.smartgrid(.* is the data model available for that? I'm looking for any small self-contained working example of smartgrid redirecting to edit thanks, Alex On Saturday, September 14, 2013 5

[web2py] Re: simple button in grid question

2013-09-14 Thread Adi
lambda row: A('Complete', _class='btn', _id='btn_complete', _onclick='return confirm(Complete Order %s? (%s %s))' % (row.id,

[web2py] Re: Webhosts for Web2py

2013-08-31 Thread Adi
Their pricing looks good. Do they offer different distributions (ubuntu primarily)? I've been with linode for the last year, and so far very happy. Adnan On Thursday, August 29, 2013 5:20:10 PM UTC-4, Anthony wrote: You might consider Digital Ocean https://www.digitalocean.com/pricing (just

[web2py] Re: Can't retrieve xy.jpeg file properties (.thumbnail vs .jpeg) from PIL resized image (2.6.0-dev)

2013-08-28 Thread Adi
Thanks Ricardo and Niphlod for your help! On Tuesday, August 27, 2013 5:59:44 PM UTC-4, Niphlod wrote: you kinda have to. contenttype is automatically guessed from the extension only. There's no header instrospection. On Tuesday, August 27, 2013 9:07:56 PM UTC+2, Adi wrote

[web2py] Can't retrieve xy.jpeg file properties (.thumbnail vs .jpeg) from PIL resized image (2.6.0-dev)

2013-08-27 Thread Adi
Used the Python Imaging Library (with JPEG decoder) to create set of thumbnails. For the images with jpeg extension, the error pops up that the properties can't be retrieved, while for the non-image extensions, everything displays fine. Is this a problem with PIL not generating enough header

[web2py] Re: Can't retrieve xy.jpeg file properties (.thumbnail vs .jpeg) from PIL resized image (2.6.0-dev)

2013-08-27 Thread Adi
This is the example I used for resizing images: http://stackoverflow.com/questions/273946/how-do-i-resize-an-image-using-pil-and-maintain-its-aspect-ratio, and the one with extension .thumbnail works fine, but jpeg doesn't. I didn't set the content-type manually. On Tuesday, August 27,

[web2py] Re: need help to improve download of dynamic images (nginx)

2013-08-23 Thread Adi
-Redirect'] = os.path.join(request.folder, 'uploads', document.file) return '' On Thursday, August 22, 2013 10:06:34 PM UTC+2, Adi wrote: Hello everyone. Am trying to populate a page with around 20 dynamic images from the upload folder, but they get rendered extremely slow, even

[web2py] need help to improve download of dynamic images (nginx)

2013-08-22 Thread Adi
Hello everyone. Am trying to populate a page with around 20 dynamic images from the upload folder, but they get rendered extremely slow, even as thumbnails. Tried using a suggest approach from the forum fast_download(), but without luck in my case. Anyone has a suggestion, what should I be

[web2py] 1071, Specified key was too long; max key length is 767 bytes in 2.6.0-development+timestamp.2013.07

2013-08-03 Thread Adi
Upgraded from 2.5.1 to 2.6.0, and it seems that auth.wiki is causing this. If I comment it out, everything else works fine. #auth.wiki(resolve=False) #wiki = Wiki(auth=auth, render='html') Ticket ID 127.0.0.1.2013-08-03.08-03-20.34cb1611-c6d4-46fc-b59e-106ad21d723e class

[web2py] Re: 1071, Specified key was too long; max key length is 767 bytes in 2.6.0-development+timestamp.2013.07

2013-08-03 Thread Adi
^_^ On Saturday, August 3, 2013 2:06:13 PM UTC+2, Adi wrote: Upgraded from 2.5.1 to 2.6.0, and it seems that auth.wiki is causing this. If I comment it out, everything else works fine. #auth.wiki(resolve=False) #wiki = Wiki(auth=auth, render='html') Ticket ID 127.0.0.1.2013-08-03.08-03

[web2py] list:string field in smartgrid? ver: 2.6.0-development+timestamp.2013.08.01.08.22.32

2013-08-03 Thread Adi
I have a list:string field without any represent definition, and when open record for editing in smartgrid, the field is represented as string (one line). I remember in the past seeing a button with the plus sign on the right side, and ability to add multiple values into a field. Should I

[web2py] Re: list:string field in smartgrid? ver: 2.6.0-development+timestamp.2013.08.01.08.22.32

2013-08-03 Thread Adi
, 2013 2:47:11 PM UTC-4, Niphlod wrote: are you using an application based on a scaffolding pre 2.6.0 and upgraded web2py to 2.6.0? If yes, please overwrite your app's web2py.js with the new welcome/static/js/web2py.js On Saturday, August 3, 2013 8:41:09 PM UTC+2, Adi wrote: I have

[web2py] Re: list:string field in smartgrid? ver: 2.6.0-development+timestamp.2013.08.01.08.22.32

2013-08-03 Thread Adi
an application based on a scaffolding pre 2.6.0 and upgraded web2py to 2.6.0? If yes, please overwrite your app's web2py.js with the new welcome/static/js/web2py.js On Saturday, August 3, 2013 8:41:09 PM UTC+2, Adi wrote: I have a list:string field without any represent definition, and when

[web2py] Re: Scheduler tasks stuck in ASSIGNED state

2013-01-14 Thread Adi
Seems like we have the same situation (Version 2.3.2 (2012-12-17 15:03:30) stable). More and more tasks are just being assigned, but not completed nor failed. I can send you a debug log via email, if this hasn't been fixed in trunk? Thanks, Adnan On Wednesday, December 19, 2012 2:46:07 PM

[web2py] (2, 4, 1, 'alpha.2', datetime.datetime(2013, 1, 8, 15, 30, 47)) trunk: formstyle_bootstrap broken

2013-01-09 Thread Adi
Seems that bootstrap broke in latest trunk. All my forms, which use bootstrap are returning errors... commenting formstyle='bootstrap' makes it work fine. Traceback (most recent call last): File /Users/adnan/web2py24/gluon/restricted.py, line 212, in restricted exec ccode in environment

[web2py] Re: (2, 4, 1, 'alpha.2', datetime.datetime(2013, 1, 8, 15, 30, 47)) trunk: formstyle_bootstrap broken

2013-01-09 Thread Adi
Works. Thanks Massimo! On Wednesday, January 9, 2013 10:37:19 AM UTC-5, Massimo Di Pierro wrote: I think this is now fixed in trunk. Can you please check? On Wednesday, 9 January 2013 08:33:35 UTC-6, Adi wrote: Seems that bootstrap broke in latest trunk. All my forms, which use bootstrap

[web2py] Re: emailing From: full name

2013-01-08 Thread Adi
Hi Jonathan, Mine is putting properly company name in front of the address, by using: mail.settings.sender = 'Company', but knowing that you are a guru here, may not be at all what you are looking for... If you wanted I could send you a sample email privately to see if that's what you needed?

[web2py] Re: replacing plugin_wiki with auth.wiki

2013-01-02 Thread Adi
, 2013 10:44:58 AM UTC-5, Alan Etkin wrote: On Wednesday, January 2, 2013 1:44:39 AM UTC-3, Adi wrote: Thanks Alan for your help. Have two more questions related to this: Maybe in the view you can do something like: {{=DIV(MARKMIN(mm), _id=videoframe))}} An then use CSS for adding the size

[web2py] replacing plugin_wiki with auth.wiki

2013-01-01 Thread Adi
At the moment I'm using plugin_wiki to display youtube videos on web pages. How would I replace it with auth.wiki() without creating new wiki pages, and wiki menu? {{=plugin_wiki.widget('youtube', code=video.strip(), width=270, height=230)}} Thanks, Adnan --

[web2py] Re: replacing plugin_wiki with auth.wiki

2013-01-01 Thread Adi
22:11:55 UTC-3, Adi escribió:At the moment I'm using plugin_wiki to display youtube videos on web pages. How would I replace it with auth.wiki() without creating new wiki pages, and wiki menu? The built-in MARKMIN helper is the simplest tool to embed video: def myvideo(): mm

[web2py] fall back for memcached to db caching

2012-12-24 Thread Adi
Tried catching the exception when memcache is not available to switch to db caching, but getting an excepting. Should it be possible to catch this exception, ignore it and continue running? Thanks, Adnan try: from gluon.contrib.memcache import MemcacheClient memcache_servers =

[web2py] Re: fall back for memcached to db caching

2012-12-24 Thread Adi
) grid=SQLFORM.grid(q) return dict() On Monday, December 24, 2012 5:11:17 PM UTC-5, Massimo Di Pierro wrote: Can you try replace: except: with except Exception: On Monday, 24 December 2012 10:04:08 UTC-6, Adi wrote: Tried catching the exception when memcache is not available

[web2py] probing into examples application

2012-12-22 Thread Adi
Just noticed from gogle webmaster tools that someone was probing into links bellow and got 500 server response for each. Is there anything that could potentially be dangerous from a security prospective, since examples get deployed with every installation of web2py? (I deleted it now in

[web2py] how to use session in cookie?

2012-12-22 Thread Adi
I tried using session.connect(cookie_key='key', compression_level=9) instead of session.connect(request, response, db=db), and got the error as bellow, plus some inconsistent unexpected behavior. When I rolled back to db sessions all works fine as expected. It's an e-commerce app,

[web2py] Re: how to use session in cookie?

2012-12-22 Thread Adi
scan :) On Saturday, December 22, 2012 10:02:28 AM UTC-5, Massimo Di Pierro wrote: Can you please look for the error in the apache logs? There is a limitation in the cookie size wich may break for large sessions. On Saturday, 22 December 2012 08:49:04 UTC-6, Adi wrote: I tried using

[web2py] Re: probing into examples application

2012-12-22 Thread Adi
at urls like /phpmyadmin/, /wp-admin/ etc trolls and auto-bots are never going to stop probing urls. On Saturday, December 22, 2012 2:46:59 PM UTC+1, Adi wrote: Just noticed from gogle webmaster tools that someone was probing into links bellow and got 500 server response for each

[web2py] Re: how to use session in cookie?

2012-12-22 Thread Adi
://w.replacedserver.com/mobipp_us/category/11 [Sat Dec 22 11:10:57 2012] [error] [client 24.150.57.81] malformed header from script. Bad header=QRZl7DmMFohP98mTnbyI4cEEvQcxWS: wsgihandler.py, referer: http://w.replacedserver.com/mobipp_us/category/11 On Saturday, December 22, 2012 10:32:34 AM UTC-5, Adi wrote

[web2py] Re: how to use session in cookie?

2012-12-22 Thread Adi
:38:06 PM UTC-5, Massimo Di Pierro wrote: In think the problem is exactly the size of the cookie. On Saturday, 22 December 2012 10:15:20 UTC-6, Adi wrote: Sorry Massimo, Seems I was looking into wrong error_log... This one is related to web2py... JUst run it again: [Sat Dec 22 11:10:53

[web2py] Re: help testing auth.signature with mysql/pgsql

2012-12-22 Thread Adi
do you mean: db._common_fields.append(auth.signature) i have it, and can test now On Saturday, December 22, 2012 12:44:06 PM UTC-5, Massimo Di Pierro wrote: If you have fields with auth.signature and mysql/pgsql could you help me test the latest trunk? The reason is that I changed the

[web2py] Re: help testing auth.signature with mysql/pgsql

2012-12-22 Thread Adi
, December 22, 2012 1:56:28 PM UTC-5, Massimo Di Pierro wrote: Specifically let me know: - after upgrade, do you see a migration in sql.log? - does everything seem to work or you get a ticket? Masimo On Saturday, 22 December 2012 12:30:25 UTC-6, Adi wrote: do you mean: db._common_fields.append

[web2py] Re: help testing auth.signature with mysql/pgsql

2012-12-22 Thread Adi
data (which include Null values). This will break the migration. It worked for you because the step was only faked. The creation of the new table is never a problem. I have reverted the change in trunk. Massimo On Saturday, 22 December 2012 13:28:13 UTC-6, Adi wrote: My app

[web2py] editable=lambda row: check(row), : make user's row editable, and the rest read only

2012-12-17 Thread Adi
Is it possible to display all rows in grid, but make editable only a row that belongs to a particular user? Tried searching if someone else did it, but couldn't find any reference... Tried following code, without success: def check(row): return (row.created_by == 1) #auth.user_id def

[web2py] Re: webgrid and row_created

2012-12-17 Thread Adi
this is how i use onclick for confirmation purpose in a grid: lambda row: A('Copy', _class='btn', _onclick='return confirm(Duplicate %s?)' % row.po_number, _href=URL('duplicate_po',args=[row.id])), On Monday, December 17, 2012 2:46:59 PM UTC-5, Kenneth wrote: Hi, anybody

[web2py] Re: editable=lambda row: check(row), : make user's row editable, and the rest read only

2012-12-17 Thread Adi
PM UTC-5, villas wrote: In this case I usually make editable=False and then make my own 'Edit' link button for just those records the user is allowed to change. On Monday, December 17, 2012 8:09:47 PM UTC, Adi wrote: Is it possible to display all rows in grid, but make editable only a row

[web2py] latest trunk: 2.3.0 (2012-12-13 12:53:52) rc - name tb is not defined

2012-12-13 Thread Adi
Just tried to use database administration on existing tables... 1. 2. 3. 4. 5. 6. 7. Traceback (most recent call last): File /Users/adnan/web2py209/gluon/restricted.py, line 212, in restricted exec ccode in environment File

[web2py] Re: Querying on 1:M Relationships in SQLFORM.grid and SQLFORM.smartgrid

2012-11-26 Thread Adi
+1 this would be a great and needed feature... just stumbled into this problem, and working around it :) On Friday, August 31, 2012 5:48:17 PM UTC-4, Massimo Di Pierro wrote: Hello Mike, thanks for your patch? Would you please attach it to a google code issue so we do not forget. We

[web2py] Re: we should support this in DAL

2012-11-17 Thread Adi
Definitely would be nice to support NoSQL. I tried the existing DAL with MongoDB and grid worked fine to the point of view/edit record. Due to different concepts (sql/nosql) if it's hard to keep them in a same DAL, maybe there could be a separate layer for NoSQL. I would be glad to test lots

[web2py] Re: Session files not always created

2012-11-16 Thread Adi
hmm... i got the latest trunk, and also started having a problem with session... but still investigating. On Friday, November 16, 2012 5:50:02 PM UTC-5, villas wrote: Using latest trunk with Apache/Linux. I'm having log in problems, especially with IE 9. I've noticed that in the browser

[web2py] Re: Session files not always created

2012-11-16 Thread Adi
tested the same code in Version 2.2.1 (2012-10-21 16:57:04) stable, and session works as expected, but not in trunk. simplified version of what i'm doing: def a(): products=db(db.products1).select() session.category_products_keys = products.as_dict().keys() print

[web2py] Re: Session files not always created

2012-11-16 Thread Adi
correction... rearranged the code a bit, and all works as expected on my side... On Friday, November 16, 2012 8:43:24 PM UTC-5, Adi wrote: tested the same code in Version 2.2.1 (2012-10-21 16:57:04) stable, and session works as expected, but not in trunk. simplified version of what i'm

[web2py] scheduler and mongodb

2012-10-29 Thread Adi
This simple insert into mongodb works fine when called from within same application, but not when called from a scheduler on nginx, uwsgi, pymongo. Scheduler reports task as COMPLETED and all other inserts into mysql from the same function work well. What's more interesting, same scheduler

[web2py] Re: scheduler and mongodb

2012-10-29 Thread Adi
: you have to manually commit them to save your results. On Monday, October 29, 2012 2:59:22 PM UTC+1, Adi wrote: This simple insert into mongodb works fine when called from within same application, but not when called from a scheduler on nginx, uwsgi, pymongo. Scheduler reports task

[web2py] mongodb 2 errors: BSON can only handle up to 8-byte ints, second argument must be of type ObjectI

2012-10-23 Thread Adi
Installed mongodb, pymongo driver from source on mac osx 10.7.5, and created a fresh application. Tried to create a new user from admin panel, and got first error bellow. Record got inserted though. After I used option Lost password from the menu, got second error underneath. type

[web2py] Re: update_or_insert doesn't always return the corresponding row id

2012-10-23 Thread Adi
of the records you updated, just the number of rows. Suppose you did db.update_or_insert(condition, values) If you are in the need just db(condition).select(table.id) after that. On Tuesday, October 23, 2012 3:15:44 AM UTC+2, Adi wrote: Stumbled upon the same thing. Understood that possibly

[web2py] Re: mongodb 2 errors: BSON can only handle up to 8-byte ints, second argument must be of type ObjectI

2012-10-23 Thread Adi
integer' SyntaxError: second argument must be of type ObjectId or an objectid representable integer On Tuesday, October 23, 2012 8:47:14 AM UTC-4, Adi wrote: Installed mongodb, pymongo driver from source on mac osx 10.7.5, and created a fresh application. Tried to create a new user from admin

[web2py] Re: update_or_insert doesn't always return the corresponding row id

2012-10-22 Thread Adi
Stumbled upon the same thing. Understood that possibly results could have more ids when key is different from primary key, e.g (name=='john'), but would it be possible to return an additional parameter with update id(s), if they are known? return newid, updateids On Friday, December 30,

[web2py] Re: web2py love

2012-10-20 Thread Adi
Totally agreed... i stopped developing years ago, but web2py brought me back and gave confidence, and courage to do this kind of large scale rapid development just by myself... Thank you Massimo and all other true experts on your generous contribution and help... What makes this fantastic

[web2py] is commit necessary for update_or_insert() in scheduler

2012-10-19 Thread Adi
Just noticed that records won't get updated when I call update_or_insert from scheduler, unless I include commit. Should it be like that? tbl_a.update_or_insert(...) tbl_b.update_or_insert(...) db.commit() --

[web2py] how to loop through tables with 1M records?

2012-10-19 Thread Adi
to loop through all records with all needed fields? Thanks, Adi --

Re: [web2py] how to loop through tables with 1M records?

2012-10-19 Thread Adi
Thank you Vasile for your quick response. This will be perfect. On Friday, October 19, 2012 2:02:41 PM UTC-4, Vasile Ermicioi wrote: _last_id = 0 _items_per_page=1000 for row in db(db.table.id_last_id).select(limitby=(0,_items_per_page), orderby=db.table.id): #do something

Re: [web2py] easy way to validate a list of emails?

2012-10-17 Thread Adi
Thank you Bruno for this! Exactly what I was looking for. Maybe it would be a good idea to add it as a multiple parameter to standard IS_EMAIL(multiple=True, ...) In any case, thanks :) On Wednesday, July 6, 2011 4:39:39 AM UTC-4, rochacbruno wrote: forget the latest, I wrote directly here

Re: [web2py] restful api post works great localy, but getting login redirect on a remote server

2012-10-16 Thread Adi
for you? Thanks, Adnan On Thursday, October 11, 2012 6:00:30 PM UTC-4, Adi wrote: Thanks Massimo for looking into this. ticket opened: http://code.google.com/p/web2py/issues/detail?id=1080thanks=1080ts=1349992678 On Thu, Oct 11, 2012 at 5:05 PM, Massimo Di Pierro wrote: Please open

[web2py] Re: restful api post works great localy, but getting login redirect on a remote server

2012-10-16 Thread Adi
(':') return (True, True, self.login_bare(username, password)) On Wednesday, October 10, 2012 10:46:54 AM UTC-4, Adi wrote: This is an example from book, where authentication and posting into database work good on a local server. Once I moved the code to production redhat linux

[web2py] scheduler: imported unicodedata module in model not visible in a view

2012-10-11 Thread Adi
unicodedata module is accessible in a view when i test code directly from an application, but get the error when run the same code from scheduler. I can move the code up to a model (db_scheduler), but just wanted to know if imports from models should be visible to Views when run through

[web2py] Re: scheduler: imported unicodedata module in model not visible in a view

2012-10-11 Thread Adi
? On Thursday, 11 October 2012 10:56:50 UTC-5, Adi wrote: unicodedata module is accessible in a view when i test code directly from an application, but get the error when run the same code from scheduler. I can move the code up to a model (db_scheduler), but just wanted to know if imports from models

[web2py] restful api post works great localy, but getting login redirect on a remote server

2012-10-10 Thread Adi
This is an example from book, where authentication and posting into database work good on a local server. Once I moved the code to production redhat linux server, where we have routes.py as bellow all I get as result is a login redirect: You are being redirected a href=

[web2py] Re: Rocket server hanging

2012-10-10 Thread Adi
Not sure if this is of any help to fix something, but for me it happens when i'm fiddling with migrations and get the error message that already exists. Since I deal w legacy databases I'm cautious not to migrate majority of tables, but several I have to. When I enable migration, and get the

Re: [web2py] Re: scheduler: Cannot duplicate a Singleton

2012-10-05 Thread Adi
for me to figure this out, or I have to roll back production before weekend starts :( On Friday, October 5, 2012 12:00:57 AM UTC-4, Adi wrote: Will run more tests in the morning on a brand new application, since I can't see anything wrong (connection string duplication) in code right now

Re: [web2py] Re: scheduler: Cannot duplicate a Singleton

2012-10-05 Thread Adi
won't suffer :) scheduler and workflow are two crucial things in complex applications from my prospective, so big thanks for scheduler, and can't wait to start testing workflow once it's in. On Friday, October 5, 2012 9:27:22 AM UTC-4, Adi wrote: Created a new application from admin panel

Re: [web2py] Re: scheduler: Cannot duplicate a Singleton

2012-10-05 Thread Adi
reproduce it and fix it? We do not need all the code. Just a minimalist example that causes the same problem. On Friday, 5 October 2012 16:24:11 UTC-5, Adi wrote: yes, i just confirmed by running in parallel 9/13 and 10/5 results: 9/13 partially works (will execute task, mark it as COMPLETED

Re: [web2py] Re: scheduler: Cannot duplicate a Singleton

2012-10-05 Thread Adi
Yes, new application was using the existing database, so fixing broken migration fixed the problem of not executing task. Now it executed and marked status as COMPLETED. The problem with scheduler_run table stayed the same. Status: FAILED, and traceback looks as bellow: Traceback (most recent

[web2py] Re: Database insertion with a column default current time inserts wrong time

2012-10-05 Thread Adi
would default=request.now work in this case? On Friday, October 5, 2012 8:27:52 PM UTC-4, Saurabh Kumar wrote: I have a table with follwing schema: db.define_table('active_connections', db.Field('user','string'), db.Field('last_seen','datetime',default=datetime.now()), ) I am inserting

[web2py] scheduler: Cannot duplicate a Singleton

2012-10-04 Thread Adi
We promoted latest night build to production, and scheduler started failing. At the same time there were some code changes, so I'm having a hard time tracing the source of the problem. Any insights while I'm trying to figure it out? Thanks, Adi db: mysql redhat linux w2p: Version 2.0.9 (2012

[web2py] Re: Need help... testing new DAL

2012-10-02 Thread Adi
light tested against 3 apps and all seems to work fine so far. Adnan On Monday, October 1, 2012 10:32:16 PM UTC-4, Massimo Di Pierro wrote: There is a big change in DAL. a = DAL(uri) b = DAL(uri) now a is b because DAL is a singleton (almost). It is a thread local singleton as long a

[web2py] Re: language file fields - text or string?

2012-10-01 Thread Adi
: elem = TEXTAREA(_name=name, value=s, _cols=70, _rows=5, _class=_class)* On Tuesday, September 25, 2012 3:19:55 PM UTC-4, Adi wrote: If I remember well, previously language files displayed multi-line text input fields for longer strings, instead of one line

[web2py] Re: language file fields - text or string?

2012-10-01 Thread Adi
works well :) thanks for fixing it Massimo. Adnan On Monday, October 1, 2012 1:30:03 PM UTC-4, Massimo Di Pierro wrote: Oops. This was a mistake. It should now be fixed in trunk. Can you try it? On Monday, 1 October 2012 10:44:35 UTC-5, Adi wrote: Sorry for bringing this up again. The code

[web2py] Re: potential problem w db.executesql(sql) not updating table when done during onvalidation process

2012-09-27 Thread Adi
=SQLFORM(Order, record=record, fields=fields, keepvalues=True, showid=False, formstyle='divs', submit_button=T('Continue')) if form.process(keepvalues=True).accepted: response.flash = T('Payment Information accepted') On Wednesday, 26 September 2012 19:09:50 UTC-5, Adi wrote

[web2py] potential problem w db.executesql(sql) not updating table when done during onvalidation process

2012-09-26 Thread Adi
My apology if a description of the problem is not concise enough. I am updating record during onvalidaiton process, and this worked until Sep 17. Anything is possible, but I don't remember changing any code in this area. When I run the same SQL statement manually, or from a test procedure,

[web2py] Re: potential problem w db.executesql(sql) not updating table when done during onvalidation process

2012-09-26 Thread Adi
forgot to mention db ver of w2p: MySQL + Version 2.0.9 (2012-09-13 23:51:30) stable On Wednesday, September 26, 2012 8:09:50 PM UTC-4, Adi wrote: My apology if a description of the problem is not concise enough. I am updating record during onvalidaiton process, and this worked until Sep

[web2py] language file fields - text or string?

2012-09-25 Thread Adi
If I remember well, previously language files displayed multi-line text input fields for longer strings, instead of one line. I deal with lot of translated text, and it is much easier to visually spot problems in text fields. Any possibility to re-introduce text fields in Languages where

[web2py] Re: smartgrid: linked_tables=dict(parent=['child'], child=[''])

2012-09-22 Thread Adi
links for child table. Thanks, Adnan On Friday, September 21, 2012 11:58:05 AM UTC-4, Adi wrote: I'm wondering what to do in this situation? I have self-referencing fields in the child table, and due to that smartgrid display links, which basically can't do anything. I'm trying to eliminate

[web2py] 2.0.9 control-f firefox/chrome on mac doesn't work

2012-09-18 Thread Adi
tried search via control/f in welcome app 2.0.9 stable (firefox and chrome) on mac, and it's not responding. did editor commands change? thanks, Adi --

[web2py] Re: 2.0.9 control-f firefox/chrome on mac doesn't work

2012-09-18 Thread Adi
, Adi wrote: tried search via control/f in welcome app 2.0.9 stable (firefox and chrome) on mac, and it's not responding. did editor commands change? thanks, Adi --

[web2py] 2.0.9 web2py.css smartgrid links instead of previous buttons

2012-09-18 Thread Adi
just updated my previous application 1.9.97 web2py.css with the 2.0.9 and smartgrid default buttons became links. Several custom buttons stayed as buttons. noticed that this code bellow was taken out and replaced with commented part. is there now an other way to create by default smartgrid

[web2py] Re: SQLFORM.grid, links and buttons placement specification (before other columns, after, or both)

2012-09-18 Thread Adi
+1 needed this since January :) links on left side would be great. https://groups.google.com/d/topic/web2py/ZlxQ3AfWrr4/discussion On Tuesday, April 17, 2012 4:57:04 AM UTC-4, nikos wrote: Hello there follow web2py users, First of all, Massimo, thanks for the great work you have done to

[web2py] w2p 2.08 stable: type 'exceptions.SyntaxError' invalid table or field name: 40off_sh

2012-09-13 Thread Adi
One of my fields is 40off_sh (legacy MySQL db), and all works fine in 1.97. Seems like cleanup function in dal doesn't like the numeric part at the beginning of field name, or I'm reading it wrong? I checked the table and the field is in, so it's not missing. I can't change the field name,

[web2py] Re: w2p 2.08 stable: type 'exceptions.SyntaxError' invalid table or field name: 40off_sh

2012-09-13 Thread Adi
*$') print REGEX_ALPHANUMERIC.match('40aaa_aa').span() (0, 8) On Thursday, September 13, 2012 8:28:43 PM UTC-4, Adi wrote: One of my fields is 40off_sh (legacy MySQL db), and all works fine in 1.97. Seems like cleanup function in dal doesn't like the numeric part at the beginning of field

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Adi
Thank you Massimo and ALL contributors!!! Starting migration tests now... On Wednesday, August 29, 2012 11:41:34 PM UTC-4, Massimo Di Pierro wrote: After 5 months. It is done. This is the most waited and the most feature-packed release. I am sure we'll find some corners that need to be

[web2py] 2.02 Table name in smartgrid changed...

2012-08-30 Thread Adi
Smartgrid used to display the table name automatically. Is that supposed to be as before? -- attachment: Wholesale App.jpgattachment: Wholesale App-1.jpg

[web2py] 2.02 can't edit examples - no languages folder

2012-08-30 Thread Adi
type 'exceptions.OSError' [Errno 2] No such file or directory: '/Users/adnan/web2py-branch9/applications/examples/languages' --

[web2py] 2.02 examples won't open for editing: type 'exceptions.OSError' [Errno 2] No such file or directo

2012-08-30 Thread Adi
type 'exceptions.OSError' [Errno 2] No such file or directory: '/Users/adnan/web2py-branch9/applications/examples/languages' traceback: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Traceback (most recent call last): File /Users/adnan/web2py-branch9/gluon/restricted.py, line 209, in restricted

[web2py] Re: Congratulations to Bruno and Mariano

2012-08-17 Thread Adi
Congratulations! On Friday, August 17, 2012 10:13:45 AM UTC-4, Massimo Di Pierro wrote: Congratulations to Bruno Rocha and Mariano Reingart, New members of the Python Software Foundations. http://pyfound.blogspot.com.br/2012/08/welcome-new-psf-members.html --

[web2py] Re: paymentech: post request

2012-07-08 Thread Adi
the time with great success! cfh On Friday, July 6, 2012 10:30:34 AM UTC-7, Adi wrote: Could anyone please advise if I'm doing this correctly? I'm trying to post a request to Paymentech gateway. When I try the link in a browser, it responds fine (https://orbitalvar1.paymentech.net/authorize

[web2py] paymentech: post request

2012-07-06 Thread Adi
Could anyone please advise if I'm doing this correctly? I'm trying to post a request to Paymentech gateway. When I try the link in a browser, it responds fine (https://orbitalvar1.paymentech.net/authorize:443), but using post as bellow returns an error. Most likely I'm doing something wrong,

[web2py] Re: GrooverWiki seems to be broken

2012-05-30 Thread Adi
thanks Massimo for this tip... I used the blob field to store AES encrypted Credit Card, and everything worked fine to store it but when I was reading records from the table I was getting this error: File /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/base64.py,

Re: [web2py] web2py recipe book

2012-03-13 Thread Adi
just ordered from packt :) On Monday, March 12, 2012 6:55:03 PM UTC-4, rochacbruno wrote: On Mon, Mar 12, 2012 at 12:10 PM, Bruce Wade bruce.w...@gmail.com wrote: The other book would be version 4 of the official manual. Bought it because I didn't think it would be free online until much

[web2py] Daemon process called 'web2py' cannot be accessed by this WSGI application: /home/www-data/web2py/wsgihandler.py

2012-02-24 Thread Adi
I deployed functional application on Ubuntu 11.04 x64, and everything worked fine, including SSL (admin), until I did do-release-upgrade. https stopped working and I found following Apache error: Daemon process called 'web2py' cannot be accessed by this WSGI application:

[web2py] Re: Daemon process called 'web2py' cannot be accessed by this WSGI application: /home/www-data/web2py/wsgihandler.py

2012-02-24 Thread Adi
feel horribly stupid for unnecessary post again, yet happy for getting it to work... rebooted a box, and all works perfectly fine... sorry... On Friday, February 24, 2012 2:53:13 PM UTC-5, Adi wrote: I deployed functional application on Ubuntu 11.04 x64, and everything worked fine

[web2py] Re: * DATE FIELDS REPRESENT *

2012-02-15 Thread Adi
If you included a translation, as you did, it will cover the form as well... so you won't have to worry about anything... not sure if you need to remove represent now, in order to get it working..?

[web2py] Re: OFF Topic - Business inteligence in Python, web2py?

2012-02-15 Thread Adi
QlikView is not written in python, but I see they talk about integration on their community pages: http://community.qlikview.com/community/development?view=tagstags=python

[web2py] Re: * DATE FIELDS REPRESENT *

2012-02-14 Thread Adi
you can enforce the date format through the language... this is how I use it, and I think there is a thread where Massimo explained it before in my db.py: T.force('en-aa') in en-aa.py: %Y-%m-%d translate to %b %d, %Y and all dates became a new format, display and input fields as

[web2py] Re: option to move smartgrid buttons to the left side

2012-02-09 Thread Adi
Thanks Ross. I'm not sure how to do it, plus to assign the same functionality as existing buttons. Do you have some sample from your code? Just tried the application also on the iphone, and (smartgrid) horizontal scroll doesn't work there either... Practically, can't reach buttons :) Anyone

[web2py] Re: option to move smartgrid buttons to the left side

2012-02-09 Thread Adi
Hi Peter... I put a simple smartgrid together, with a longer text field... so this one doesn't scroll horizontally for me. I'm not sure if it's something that we did on css or somewhere, but i noticed it worked on ipad as it should... here is the link:

[web2py] Re: option to move smartgrid buttons to the left side

2012-02-09 Thread Adi
much can be accomplished through grid and smartgrid. Fantastic core component of the framework! Anyway, thanks for your help. Adi

  1   2   3   >