[web2py] Re: tab separated csv file

2013-01-08 Thread Derek
in sqlhtml there is a TSV exporter though... On Wednesday, March 11, 2009 9:08:27 AM UTC-7, mdipierro wrote: There is no configuration parameter to do so. You mat create your own csv serializer. look into the python csv module. On Mar 11, 10:01 am, Marco Prosperi marcoprosperi...@gmail.com

[web2py] Re: tab separated csv file

2013-01-08 Thread Derek
You could monkey-patch the dal 'rows' object __str__ by making it export as a TSV. On Wednesday, March 11, 2009 8:01:42 AM UTC-7, Marco Prosperi wrote: hello everybody, how can I change the following function (defined in appadmin.py controller) so that the downloaded file has tab separated

[web2py] Re: subforms / formsets / form cloning imprementation

2013-01-08 Thread Derek
Perhaps it would be a nice feature to add to the smartgrid - in place ajax update / addition. So you'd just add a smartgrid to your form, and you can click 'add' and right in place you can add a new record to the grid / db. On Tuesday, January 8, 2013 11:43:31 AM UTC-7, Henrique Pantarotto

[web2py] Re: subforms / formsets / form cloning imprementation

2013-01-08 Thread Derek
Take a look at this - maybe it's similar to what you need... http://www.web2pyslices.com/slice/show/1432/insert-and-delete-ajax-show-process On Monday, January 7, 2013 12:02:01 AM UTC-7, Henrique Pantarotto wrote: Hello everybody! I'm quite new to Python and web2py, but I consumed all of

[web2py] Re: Resizing a user uploaded image

2013-01-08 Thread Derek
Take a look here for a somewhat similar example... http://www.web2pyslices.com/slice/show/1387/upload-image-and-make-a-thumbnail You'll need the PIL (python image library) installed. On Tuesday, January 8, 2013 11:43:36 AM UTC-7, Daniele wrote: How can i make it so that when a user uploads an

[web2py] Re: Resizing a user uploaded image

2013-01-08 Thread Derek
# # db.table_name.picture.requires = RESIZE(200, 200) # # # to store original image in picture and create a thumbnail in 'thumbnail' field # # from images import THUMB # db.table_name.thumbnail.compute = lambda row: THUMB(row.picture, 200, 200) On Tuesday, January 8, 2013 12:03:37 PM UTC-7, Derek wrote: Take

[web2py] Re: SQLFORM Next Item in Database

2013-01-08 Thread Derek
It seems to me that you could add a 'next' button on that page, which would take request.args(0)+1 and formulate your HREF that way. On Tuesday, January 8, 2013 2:43:46 PM UTC-7, D.P. wrote: I'm using solidtable to pull a selection from a database and display that selection (with the ability

Re: [web2py] Re: plugin to drag and drop upload of a file

2013-01-07 Thread Derek
I don't see it as an issue, but I'd consider merging those css files into one, to reduce the amount of requests that need to be made. The fact that they are CSS files and not hard-coded means that you aren't mixing them up, since they are still separate. On Monday, January 7, 2013 6:23:22 AM

[web2py] Re: Possible bug: DAL csv import unable to parse csv file near ): syntax error BUT NO ) in thefile

2013-01-04 Thread Derek
You need to have the column names in the first line of the csv. On Friday, January 4, 2013 10:30:08 AM UTC-7, JoeCodeswell wrote: i am using Version 2.3.2 (2012-12-17 15:03:30) stable sorry for no mentioning that before. Love and peace, Joe On Friday, January 4, 2013 9:14:53 AM UTC-8,

[web2py] Re: app about page

2013-01-04 Thread Derek
You are talking about this? http://fluxodecaixa.com.br/ On Friday, January 4, 2013 3:36:28 AM UTC-7, Ramos wrote: hello. what does it mean the graph in the about page under Project progress? Thank you António --

[web2py] Re: web2py reference documentation

2013-01-04 Thread Derek
You can look at this Epydoc: http://www.web2py.com/examples/static/epydoc/index.html On Friday, January 4, 2013 1:37:03 PM UTC-7, rh wrote: Hello, I have downloaded all ~100 MBs of the docs locally and can browse them fine. (although I only wanted the latest english docs I got multiple

Re: [web2py] Re: error in mysql ?

2013-01-04 Thread Derek
but wouldn't his 'requires=' catch this before it even gets to the db? On Friday, January 4, 2013 3:51:30 PM UTC-7, Michele Comitini wrote: Possible solutions: 1. Probably Bruno Rocha can help you better, so you can try to post a issue on github. 2. You can find what is the parent_id you

[web2py] Re: session[id]

2013-01-03 Thread Derek
It seems to me that you are storing data in the session which should actually be linked to the auth_user table. On Thursday, January 3, 2013 1:39:10 AM UTC-7, Annet wrote: Massimo, Thanks for your reply. It is not clear to me what you are storing in session. I have a table 'node' and

[web2py] Re: show a wait message until the form.accepts completes.

2012-12-31 Thread Derek
I give you a plus one for this. The way I use it, is I just have a 'onclick=javascript:$.blockUI({ backgroundColor: '#f00', color: '#fff'}); ' and notice that it does not 'return false' so that the click gets handled by the form handler. On Monday, December 31, 2012 8:36:15 AM UTC-7, Anthony

[web2py] Re: Has anyone made a simple chat system with websocket_messaging.py? General questions about chat.

2012-12-31 Thread Derek
Well, you'd want the database to just fetch the last 25 or so messages when the link loads for the first time. Your browser probably needs to refresh. I use firebase.com for my realtime chat / database backend. It works great. I built a chat system that works fine, now I'm working on a

[web2py] Re: Serve different files based on JavaScript capability?

2012-12-31 Thread Derek
Use the 'request.user_agent()' to determine which version of content to send. That will get you the scraper (aka robot) reading what you want. As far as people with javascript disabled, I'd suggest you ignore those users, it amounts to less than 2% anyway. On Sunday, December 30, 2012 10:19:29

[web2py] Re: Error in OpenID (web2py 2.3.2)?

2012-12-31 Thread Derek
Looks like the OpenIDAuth uses the reserved keyword user for the name of a field. On Monday, December 31, 2012 7:00:14 AM UTC-7, mweissen wrote: Hi, I want to try OpenID. I have found the following chapter in the book (rev. 4.9): - OpenID We have

[web2py] Re: Form Vars and request Vars

2012-12-31 Thread Derek
Your labor_report should take those two variables then. Unless of course, you store them in a session. On Monday, December 31, 2012 5:29:33 PM UTC-7, Paul Rykiel wrote: hello, I have two form vars 1) startDt (defined as _class=date 2) endDt (defined as _class=date if

Re: [web2py] WWW SQL Designer to DAL converter

2012-12-28 Thread Derek
Yes, it's pretty much the same, you can also generate web2py from it, and it works just fine. Well, the relations needs a bit of work, but it does make it easier. On Friday, December 28, 2012 12:12:32 AM UTC-7, Massimo Di Pierro wrote: Didn't we have this already? http://gaesql.appspot.com/

Re: [web2py] Re: Unable to set is_active=True when record_versioning is enabled

2012-12-27 Thread Derek
the log, you are essentially changing history (which we all should know is impossible). In any case, you can count this as a vote for not allowing undeletes by changing the is_active flag. Thanks, Derek Wilson On Wednesday, December 26, 2012 10:02:38 PM UTC-7, Mandar Vaze wrote: On Wed

[web2py] Re: generating svg from controllers

2012-12-26 Thread Derek
Have you tried: a = XML(circle cx='200' cy='500' r='10' /) ? On Wednesday, December 26, 2012 11:52:54 AM UTC-7, jonas wrote: Hi. Is there any way to generate xml svg via controllers? svg can be made by using declarative syntax, i.e xml instead of javascript. is it possible to return an

[web2py] Re: Unable to set is_active=True when record_versioning is enabled

2012-12-26 Thread Derek
If auditing is turned on, you need to be able to see that the record was once deleted. I believe that to undelete, you should create a new record with is_active set to true. On Wednesday, December 26, 2012 10:38:27 AM UTC-7, Massimo Di Pierro wrote: there is a ticket about. I understand the

[web2py] Re: Query results from 2 children tables from same parent ordered by date

2012-12-21 Thread Derek
If you only need one date, why not display just one date? On Friday, December 21, 2012 2:01:59 PM UTC-7, Mamisoa Andriantafika wrote: I have pb to show the coalesce date in view. I tried; exams_mutex['COALESCE(dataset1.date,dataset1.date)'] but it is not working? Le jeudi 20 décembre

Re: [web2py] Re: help please

2012-12-19 Thread Derek
The data is gone. Let this be a reminder to all of you out there, back up your data and back it up often. Also, it's not backed up if you can't restore it, so test out restores as well. On Wednesday, December 19, 2012 9:08:47 AM UTC-7, LightDot wrote: First, make a couple of physical copies

[web2py] Re: hello3.xml question

2012-12-19 Thread Derek
Yeah, I got the same issue as you. I have a site called 'customers2' and a controller 'customer' and a function 'index' - when i add a '.xml' onto 'index' i get this: invalid view (customer/index.xml) On Wednesday, December 19, 2012 2:38:36 PM UTC-7, lucas wrote: hello one and all, i am

[web2py] Re: web2py 2.3.2 is OUT

2012-12-19 Thread Derek
clicking the 'demo' links, all the demo sites look like crap and have serious issues with navigation. http://web2py.com/demo_app1/default/index clicking on the 'categories' - nothing happens. http://web2py.com/demo_app2/default/index once again, clicking on the 'categories' does nothing, and

[web2py] Re: help with login

2012-12-17 Thread Derek
This is telling me that your system doesn't support sha512? On Monday, December 17, 2012 3:31:48 PM UTC-7, samuel bonilla wrote: @servicios_publicos.json def login(usuario, password): respuesta = {} user = auth.login_bare(usuario, password) if not user:

[web2py] Re: help with login

2012-12-17 Thread Derek
Make sure you have OpenSSL installed. On Monday, December 17, 2012 4:04:51 PM UTC-7, Derek wrote: This is telling me that your system doesn't support sha512? On Monday, December 17, 2012 3:31:48 PM UTC-7, samuel bonilla wrote: @servicios_publicos.json def login(usuario, password

[web2py] Re: online users in web2py

2012-12-12 Thread Derek
There may also be a way to trigger the 'onunload' event, but since that's tied to the specific page you're on, you'll trigger it quite a bit if you don't load everything using ajax. On Wednesday, December 12, 2012 7:19:15 AM UTC-7, Massimo Di Pierro wrote: Big can of worms. How do you define

[web2py] Re: issue with multi-select widget

2012-12-11 Thread Derek
I suppose so. You could just take an empty list, append request.vars.mylist to it, and then it should definitely be a list. On Tuesday, November 20, 2012 12:08:36 PM UTC-7, SamD wrote: Thanks, I found those fixes useful. At the same time, it is quite a pain to have a message of error saying

Re: [web2py] How may I catch this exception class 'psycopg2.IntegrityError'

2012-12-11 Thread Derek
IntegrityError is a subclass of Database - you need to catch psycopg2.database.integrityerror On Tuesday, December 11, 2012 9:43:04 AM UTC-7, Richard wrote: Hello, I try to write a ondelete function that will try to delete a record and if fall on the exception : class

[web2py] Re: Integrity error with IS_NULL_OR( IS_IN_DB() )

2012-12-10 Thread Derek
The problem with IS_IN_DB is that it creates a foreign key constraint - It appears you have 'zero=choose one' - you're adding a foreign key that isn't actually in the database. I'd suggest that you add choose one to the requirement_priorities table, and add in validation logic to throw an

[web2py] Re: Integrity error with IS_NULL_OR( IS_IN_DB() )

2012-12-10 Thread Derek
Of course, you should follow the web2py principle - everything should have a default behavior. Default the priority to the lowest possible, or the most frequently used value. On Monday, December 10, 2012 3:33:15 PM UTC-7, Derek wrote: The problem with IS_IN_DB is that it creates a foreign key

Re: [web2py] Re: ('web2py' in pycon.us.talks) == False

2012-12-07 Thread Derek
web2py is not the issue here. The issue is that in 2013 somebody can attend PyCon and not will not be exposed to any other web framework but Django (12 talks + tutorials) and Pyramid (2 talks). Exactly, Even if web2py is not in the talks, the fact that there is only two web

[web2py] Re: Changing textarea columns in a regular FORM

2012-12-05 Thread Derek
1. for textarea, set _rows and _cols. 2. press shift-enter instead. 3. _disabled? On Wednesday, December 5, 2012 6:46:16 AM UTC-7, Francisco Barretto wrote: Hi there, it might be (and probably is) a silly but I have a series of questions concerning the following form:

[web2py] Re: Changing textarea columns in a regular FORM

2012-12-05 Thread Derek
I'd also like to add that you should be able to find this by looking at the source code. In gluon/html.py. It is surprisingly readable. On Wednesday, December 5, 2012 9:48:23 AM UTC-7, Derek wrote: 1. for textarea, set _rows and _cols. 2. press shift-enter instead. 3. _disabled

[web2py] Re: informix standard engine

2012-12-04 Thread Derek
mssql 2005 and above has row_number which would allow pagination. On Tuesday, December 4, 2012 7:49:21 AM UTC-7, Massimo Di Pierro wrote: This is a similar problem as mssql which does not support pagination. I just committed to trunk a new adpater: DAL('informix-se://.') please give

[web2py] Re: Smartgrid searching a referenced column

2012-12-04 Thread Derek
I did a search on this error message and everything I saw said that there is some invalid data in the database (ie - the data doesn't match the schema). On Tuesday, December 4, 2012 6:34:00 AM UTC-7, Rakesh Singh wrote: Hi, I am having an issue querying a referenced column using the

[web2py] Re: Building a nested query in place

2012-11-27 Thread Derek
For this kind of thing, triggers are great. On Tuesday, November 27, 2012 10:23:13 AM UTC-7, Wes Hall wrote: Understood, this is a database issue. My expense comment was referring to frequently checking the db for changes, not the actual query. Friendly names should 10, teacher list

Re: [web2py] Re: web2py as Windows service

2012-11-14 Thread Derek
The log file should tell you what the issue is. You might also want to look in the windows event logs, it may have more details as to what failed. On Wednesday, November 14, 2012 12:30:38 AM UTC-7, David Sorrentino wrote: Hello Derek and Tim, First of all thanks for your reply. :) @Derek

[web2py] Re: Changing a uploaded filename

2012-11-13 Thread Derek
Wouldn't that also leave the uploaded file in the uploads folder? On Tuesday, November 13, 2012 10:00:24 AM UTC-7, Christian Espinoza wrote: Well, thanks anyway, its was resolved using the base code from http://stackoverflow.com/questions/8008213/web2py-upload-with-original-filename Using

Re: [web2py] delete button + confirm instead of check to delete + confirm + submit

2012-11-13 Thread Derek
I'd use a before_delete function to check if the checkbox 'yes im sure - delete' was checked. if not checked, don't delete. don't enable the delete button until that box is checked is another option On Tuesday, November 13, 2012 1:26:08 PM UTC-7, Richard wrote: Hello, I would like to

[web2py] Re: web2py as Windows service

2012-11-13 Thread Derek
Check your log files. Are you getting any errors? On Monday, November 12, 2012 3:32:07 AM UTC-7, David Sorrentino wrote: Hello folks! :) I am trying to run web2py as Windows service, but no positive results. Following the recipe on the online book, I edited the file options.py. The file

[web2py] Re: Capturing field changes with _after_update and smartgrid

2012-11-09 Thread Derek
Why not just use before_update? On Friday, November 9, 2012 10:53:21 AM UTC-7, Jim S wrote: I'm missing something. I have a table where I want to react to changes to a particular field. I'm trying to use the _after_update callback check for this. However, using this it appears to me that

[web2py] Re: how i can write a web2py code nto javascript

2012-11-09 Thread Derek
No, he's trying to use a web2py function within the javascript, or have web2py write javascript instead of html. I'm not sure it can do that. On Friday, November 9, 2012 3:37:10 AM UTC-7, lyn2py wrote: Do you mean that you want the code to appear on the webpage? Save your code into a file

[web2py] Re: Capturing field changes with _after_update and smartgrid

2012-11-09 Thread Derek
Use before_update to store the current data in the session, then the after_update would have access to it. On Friday, November 9, 2012 11:55:36 AM UTC-7, Jim S wrote: Because the update may fail. -Jim On Friday, November 9, 2012 12:20:18 PM UTC-6, Derek wrote: Why not just use

Re: [web2py] Re: Capturing field changes with _after_update and smartgrid

2012-11-09 Thread Derek
Cool, I might have suggested using versioning if all you are trying to do is to track changes. On Friday, November 9, 2012 3:38:28 PM UTC-7, Jim S wrote: Just reporting back. The _before_update is working perfectly for me. -Jim On Fri, Nov 9, 2012 at 3:45 PM, Jim Steil ato@gmail.com

[web2py] Re: DAL and Pivot Tables

2012-11-09 Thread Derek
try using groupby and sum http://web2py.com/books/default/chapter/29/06#sum,-avg,-min,-max-and-len On Friday, November 9, 2012 1:10:40 PM UTC-7, Rocco wrote: (I already post this question, but it was deleted in few seconds and no reason was mentioned. I try to repost it, removing formatting

[web2py] Re: SQLFORM via AJAX - action is blank

2012-11-07 Thread Derek
Why would you need to create an action for the form? Are you not using self submit? On Wednesday, November 7, 2012 12:22:03 PM UTC-7, Simon Carr wrote: I have this piece of code that calls a function in my controller when clicked. {{=A('Add to My

[web2py] Re: UnicodeDecodeError: \'ascii\' codec can\'t decode byte

2012-10-11 Thread Derek
Just running that in Python I get an error. (Número de serie: +100).decode(utf8).encode(latin1) UnicodeDecodeError: 'utf8' codec can't decode byte 0xfa in position 1: invalid start byte I noticed that first line: #coding: utf8 ú - this is a latin1 character, so you have an invalid python

[web2py] Re: get a dict (with ajax-request) and use it within javascript

2012-10-11 Thread Derek
Well, what are you seeing when you go to the url yourself? On Thursday, October 11, 2012 2:22:03 AM UTC-7, Timo W wrote: Hey, I want to call a function that I defined in the Controller from javascript via AJAX. When the function returns a string everything is perfect, but when it returns

[web2py] Re: Versioning is on but record still deleted. Am I missing something?

2012-10-08 Thread Derek
You are doing nothing wrong, perhaps you had a misunderstanding of how versioning works. Do do what you want, look at the before_delete callback. You'd want to return 'true' to abort the delete operation. http://web2py.com/books/default/chapter/29/06#before-and-after-callbacks On Monday,

[web2py] Re: weird variable name violation

2012-10-08 Thread Derek
http://web2py.com/books/default/chapter/29/06?search=reserved#Reserved-keywords Standard SQL keywords are normally reserved in all SQL databases. Order is a sql keyword, so it may not be reserved by web2py but the database itself. To give you an example, here are a few...

[web2py] Re: weird variable name violation

2012-10-08 Thread Derek
And if you want to see what ones are reserved, check here: gluon/reserved_sql_keywords.py On Monday, October 8, 2012 12:49:00 PM UTC-7, Niphlod wrote: that's because probably you are using names that your db does not allow as names because they are functions (i.e. naming a field select

[web2py] Re: web2py on dd-wrt

2012-10-08 Thread Derek
web2py is light? first i've heard... well, it seems that you are getting these errors because it does not have write access? You can try the recipe listed here: http://web2py.com/book/default/chapter/13#Memcache This replaces the disk cache with memcache. On Saturday, October 6, 2012 6:46:17

[web2py] Re: web2py on dd-wrt

2012-10-08 Thread Derek
Just wanted to add, keep reading down that page, it shows how web2py is configured for GAE (google app engine) because GAE also doesn't have access to the file system. That could be useful for what you are trying to do. On Monday, October 8, 2012 1:02:38 PM UTC-7, Derek wrote: web2py is light

[web2py] Re: REGARDING SQL 99

2012-10-08 Thread Derek
Massimo, I agree with your points, not necessarily 3, but then again, i've had many years of experience writing sql queries, so i know what can go wrong, and i know why you might say that to a beginner. On Friday, October 5, 2012 7:24:40 AM UTC-7, Massimo Di Pierro wrote: I am not sure about

[web2py] Re: Edit or delete not committing in sqlform.grid for custom query

2012-10-08 Thread Derek
did you open an issue? http://code.google.com/p/web2py/issues/list On Saturday, October 6, 2012 11:28:32 AM UTC-7, Gerd wrote: Hi! Any updates on this? Am Sonntag, 30. September 2012 16:16:33 UTC+2 schrieb Gerd: Hi! I'm actually using V2.0.9 and the error is still active. Is it fixed in

[web2py] Re: exceptions.EOFError

2012-10-02 Thread Derek
Yea, 2.0.9 didn't have the fix for this. That was an issue that I reported. It just means you are trying to access the database view of a ticket and there are no tickets. On Tuesday, October 2, 2012 7:54:37 AM UTC-7, Massimo Di Pierro wrote: If you use trunk, please use the latest. I have no

[web2py] Re: exceptions.EOFError

2012-10-02 Thread Derek
, Derek wrote: Yea, 2.0.9 didn't have the fix for this. That was an issue that I reported. It just means you are trying to access the database view of a ticket and there are no tickets. On Tuesday, October 2, 2012 7:54:37 AM UTC-7, Massimo Di Pierro wrote: If you use trunk, please use

Re: [web2py] XML Webservice

2012-10-01 Thread Derek
, I'd hate to leave the Russians out in the cold (lol). On Friday, September 28, 2012 6:15:14 PM UTC-7, Massimo Di Pierro wrote: Should this line be there in the default generic.xml? On Friday, 28 September 2012 20:02:26 UTC-5, Derek wrote: https://web2py.com/books/default/chapter/29/10#HTML

[web2py] Re: framework benchmarks - web2py surprisingly slow?

2012-10-01 Thread Derek
I think we all might be asking for the same thing then - can we make the webserver pluggable, like how the databases are now? So if I install Tornado, or Gunicorn, or whatever, I can just specify that in a config file, or perhaps the little gui that comes up i can specify which webserver i

[web2py] Re: 'efficiently search by tag' with postgres

2012-10-01 Thread Derek
FYI, distinct is the same as group by all. On Saturday, September 22, 2012 3:18:32 PM UTC-7, Massimo Di Pierro wrote: Looks like postgres is picky and wants in groupby all the selected fields in distinct. This should work: rows = db(data.id==tag.record_id)\

Re: [web2py] Re: framework benchmarks - web2py surprisingly slow?

2012-10-01 Thread Derek
Yea, we get it. Pure python is not a requirement for most of the people who use this software. It is important to you, and I can understand your design decision to keep it that way, but still, we were just talking about alternatives, not a new default. On Monday, October 1, 2012 1:58:14 PM

[web2py] Re: creating tables from user input

2012-10-01 Thread Derek
I'd alter your suggestion a bit - if a game always two and only two teams, then assuming it is like baseball or soccer or football, you'd have two teams, a 'home' team and an 'away' team. So, there would be a 1-1 mapping, not a 1-many. On Monday, October 1, 2012 1:46:38 AM UTC-7, Cliff

Re: [web2py] [OT] Has Massimo ever considered a JavaScript framework?

2012-09-28 Thread Derek
Have you ever tried using AngularJS with Web2py? It's a mess because all the instructions I tried didn't work. You can't use their templates at all, you have to do this: span ng:bind=item.name/span instead of the much easier {{item.name}} I would love to use Angular or something similar

Re: [web2py] framework benchmarks - web2py surprisingly slow?

2012-09-28 Thread Derek
Waitress? But it's not a single file. On Friday, September 28, 2012 5:38:10 AM UTC-7, Massimo Di Pierro wrote: Anyway, to my knowledge cherrypy is the only pure-python single-file ssl-enabled web server, apart for rocket. Are there others? On Friday, 28 September 2012 07:37:28 UTC-5,

Re: [web2py] XML Webservice

2012-09-28 Thread Derek
' except: raise HTTP(405,'no xml') }} Make your own file, except, you want to add another response.write before it and include your ?xml version=1.0 encoding=ISO-8859-1? On Wednesday, September 5, 2012 10:18:51 PM UTC-7, Hassan Alnatour wrote: Dear derek, This is my first time useing web

[web2py] area is not defined - Upgraded from 2.06 to 2.09 source on Windows

2012-09-24 Thread Derek
I get an error message now when I click the 'save' button. I'm using the codemirror editor. It says: Uncaught ReferenceError: area is not defined -- ajax_editor.js:36 It was working in 2.0.6 - all I did was download the 2.0.9 source and overwrite everything. Any ideas? --

[web2py] Re: area is not defined - Upgraded from 2.06 to 2.09 source on Windows

2012-09-24 Thread Derek
Update - downloaded the nightly, same issue exists. On Monday, September 24, 2012 4:11:33 PM UTC-7, Derek wrote: I get an error message now when I click the 'save' button. I'm using the codemirror editor. It says: Uncaught ReferenceError: area is not defined -- ajax_editor.js:36

[web2py] Re: area is not defined - Upgraded from 2.06 to 2.09 source on Windows

2012-09-24 Thread Derek
/static/js/ajax_editor.js#L36 Does not look there a variable area. Perhaps this file was not upgraded? Massimo On Monday, 24 September 2012 18:19:38 UTC-5, Derek wrote: Update - downloaded the nightly, same issue exists. On Monday, September 24, 2012 4:11:33 PM UTC-7, Derek wrote: I get

[web2py] Re: area is not defined - Upgraded from 2.06 to 2.09 source on Windows

2012-09-24 Thread Derek
You don't suppose the if-not-modified tag isn't working? On Monday, September 24, 2012 4:32:28 PM UTC-7, Derek wrote: Well, I checked and it was there. I cleared my cache in google chrome and I got the new file. It's saving now. Thanks! On Monday, September 24, 2012 4:26:23 PM UTC-7

[web2py] Re: area is not defined - Upgraded from 2.06 to 2.09 source on Windows

2012-09-24 Thread Derek
invalid function. On Monday, September 24, 2012 4:32:53 PM UTC-7, Derek wrote: You don't suppose the if-not-modified tag isn't working? On Monday, September 24, 2012 4:32:28 PM UTC-7, Derek wrote: Well, I checked and it was there. I cleared my cache in google chrome and I got the new file

Re: [web2py] Many-many options

2012-09-13 Thread Derek
I'm all for 3NF but if you are making a postal address table and you want to split the states and cities out of the same table, even though they will almost always be used together, that's just dumb IMHO. You shouldn't have 3NF just for the sake of having it, you should use it if it makes

Re: [web2py] XML Webservice

2012-09-05 Thread Derek
Create a template with xmlservice.xml and add the appropriate fields. On Wednesday, September 5, 2012 12:50:28 AM UTC-7, Hassan Alnatour wrote: Dear Derek , What should i do then ?? Best Regards, On Wed, Sep 5, 2012 at 2:01 AM, Derek sp1...@gmail.com javascript:wrote: It is XML

[web2py] Re: [Announcement] web2py powered app Vocabilis.NET

2012-09-04 Thread Derek
Looks great, I plan on using this to setup English lessons for my wife (whom is Russian). My only concern is that it's using Flash - she uses only a Tablet computer - touchscreen android device. Html5 would have been a better choice. Thanks, Derek On Thursday, August 30, 2012 7:53:56 AM UTC-7

[web2py] Re: [Announcement] web2py powered app Vocabilis.NET

2012-09-04 Thread Derek
. On Tuesday, September 4, 2012 3:48:28 PM UTC-7, Derek wrote: Looks great, I plan on using this to setup English lessons for my wife (whom is Russian). My only concern is that it's using Flash - she uses only a Tablet computer - touchscreen android device. Html5 would have been a better choice

Re: [web2py] XML Webservice

2012-09-04 Thread Derek
It is XML, but it doesn't have a doctype. So, when it gets to this character: *’* it fails to validate against UTF-8. It should probably be this: charset=ISO-8859-1 On Tuesday, September 4, 2012 2:15:11 AM UTC-7, Hassan Alnatour wrote: Dear ALec , when i go to the link i gave you

[web2py] Re: Accessing auth_user the first time a user logs in

2012-08-30 Thread Derek
Well, I suppose you could check for trial_expires_date on every login, and if it's none, set it. On Thursday, August 30, 2012 9:41:27 AM UTC-7, Yarin wrote: We have to perform a series of checks and updates on an auth_user record as soon as their registration has been verified. Previously,

[web2py] Re: Re-populating a form according to user input

2012-08-30 Thread Derek
So so so many requests, please make this a default feature On Wednesday, August 29, 2012 7:09:43 AM UTC-7, Anthony wrote: This is a very frequent request -- we should probably have some built in functionality to handle this. In the meantime, check out

Re: [web2py] Re: html in session.flash?

2012-08-29 Thread Derek
Read Anthony's message again. It can be either XML or A, not both. Note he also says that you won't be able to click the link anyway. On Wednesday, August 29, 2012 2:21:59 PM UTC-7, Claudio Zambaldi wrote: sorry, that should read: XML doesn't seem to render to html but to string. The

[web2py] Re: Router for multiple controllers

2012-08-21 Thread Derek
wrong. routes_in = ( ('/hello', '/app1/controller1/hello'), ('/bye', '/app1/controller*2*/bye')) On Tuesday, August 21, 2012 9:42:27 AM UTC-7, howesc wrote: routes_in = ( ('/hello', '/app1/controller1/hello'), ('/bye', '/app1/controller1/bye')) On Tuesday, August 21, 2012 1:28:49

[web2py] Re: I'm looking sourc Web2Py Electronic Health Record

2012-08-16 Thread Derek
Just what I was thinking about also. However it looks like the working demo is now invalid. On Thursday, August 16, 2012 9:34:44 AM UTC-7, Anthony wrote: Are you talking about this: http://code.google.com/p/web2pyhl7/ Anthony On Thursday, August 16, 2012 4:14:12 AM UTC-4, Ulugbek Nurjonov

Re: [web2py] Re: Appengine CPU cycles

2012-08-15 Thread Derek
PM UTC-4, Derek wrote: Would it not be possible to do something like this: if 'db' not in dir(): db = DAL(...) On Monday, August 13, 2012 6:43:34 PM UTC-7, rochacbruno wrote: Thinking again... It could be better if define_my_tables run once on the very first request and table

[web2py] Re: bad image and word Validator

2012-08-15 Thread Derek
As far as image filtering is concerned, these are commonly implemented as 'MTurk' tasks. Take a look at Amazon Mechanical Turk if you want this feature. You generally want to have a photo viewed 3x and get at least 2 agreements that it is a prohibited type of image. Those that disagree get a

Re: [web2py] Ajax cascading selects/drop down lists - passing javascript variabeles

2012-08-15 Thread Derek
Couldn't you precalculate and put them in your javascript in the page itself? script var nissancars = {{=XML(nissancars)}} var toyotacars = {{=XML(toyotacars)}} object.onchange=changeMake(this) function changeMake(carmaker){ if(carmaker.value == nissan) { updateOptions(nissancars); }

Re: [web2py] Is powergrid considered dead ?

2012-08-15 Thread Derek
I love working with Adobe Spry Framework. It's great, and supports XML as well as JSON for datasets. On Wednesday, August 15, 2012 3:00:49 PM UTC-7, rochacbruno wrote: HI, I am not updating this project since web2py gets the SQLFORM.grid feature, But, I am using this on some websites and

Re: [web2py] Re: Appengine CPU cycles

2012-08-14 Thread Derek
Would it not be possible to do something like this: if 'db' not in dir(): db = DAL(...) On Monday, August 13, 2012 6:43:34 PM UTC-7, rochacbruno wrote: Thinking again... It could be better if define_my_tables run once on the very first request and table keeps defined forever from

Re: [web2py] Re: Suggestion - a pickled DAL field

2012-08-10 Thread Derek
You could monkey patch it in 0.py in models, perhaps. On Thursday, July 26, 2012 1:10:43 AM UTC-7, Omri Har-Shemesh wrote: I use the pickled field to store a dictionary. Since dictionary is not defined as a serializable type for the as_dict function, it is not returned when calling to

Re: [web2py] Re: Suggestion - a pickled DAL field

2012-08-10 Thread Derek
aww, I love to see a cute monkey patch. On Friday, August 10, 2012 3:28:03 PM UTC-7, Omri Har-Shemesh wrote: Hi Derek, thanks! the as_dict method has already been fixed in trunk to handle my use-case. best wishes, Omri On Sat, Aug 11, 2012 at 12:26 AM, Derek sp1...@gmail.com

[web2py] Re: KeyError: 'name' when inserting/updating via appadmin

2012-08-10 Thread Derek
That definitely looks like a problem. Still though, I think you are taking 3NF a bit too far, no? On Wednesday, August 8, 2012 10:08:53 AM UTC-7, Mandar Vaze wrote: I'm using web2py version : Version 2.0.0 (2012-07-26 06:06:10) dev I have tables defined as follows : name = db.Table(db,

Re: [web2py] Re: Get result set back as list?

2012-08-10 Thread Derek
works for me too. db(db.customers).select(db.customers.name).as_list() On Friday, August 10, 2012 3:58:08 PM UTC-7, Vasile Ermicioi wrote: for me that works alist = db(db.auth_user).select().as_list() --

[web2py] Re: Appengine CPU cycles

2012-08-06 Thread Derek
Have you compiled your app? On Monday, August 6, 2012 10:46:33 AM UTC-7, Felipe Meirelles wrote: Hi, I'm using web2py in a project that stands on top of a REST api. The project is write intensive (around 110k requests a day, with all the requests making at least 2 updates to the

[web2py] Re: Right align the SQLTABLE data.

2012-08-02 Thread Derek
You can use CSS and nth child... .with_id:nth-child(5) {text-align: right;} meaning the 5th child element of an element with the class with_id would be right aligned. On Thursday, August 2, 2012 7:46:44 AM UTC-7, Pradeesh wrote: I am facing a problem to allign SQLTABLE data properly. How can

[web2py] Re: Announcement: Open-source meetup.com alternative released

2012-08-02 Thread Derek
Looks good. I would like to see how exactly I can login via facebook. All I see on your demo site is a login page - no signup, no 'login using facebook'. It's quite ugly, but I won't hold that against you, it looks better than most websites I create. On Thursday, August 2, 2012 9:56:54 AM

[web2py] Re: digital data store

2012-07-26 Thread Derek
I like the work these guys do. http://www.scorpiondesign.com/ On Wednesday, July 25, 2012 11:05:49 PM UTC-7, Richard Penman wrote: Hello, I made this web2py app for selling digital data via PayPal: http://sitescraper.net/data Would appreciate feedback. If you are interested it is

Re: [web2py] BR()

2012-07-26 Thread Derek
Massimo, that doesn't work, as we already explained. Traceback (most recent call last): File C:\Temp\web2py\gluon\restricted.py, line 205, in restricted exec ccode in environment File C:\Temp\web2py\applications\customers2\views\default/index.html, line 88, in module TypeError:

Re: [web2py] BR()

2012-07-26 Thread Derek
Ah, cool. I was going to modify the div class to support that, but it looks like now that would be a waste of time. On Thursday, July 26, 2012 11:24:24 AM UTC-7, Jonathan Lundell wrote: On 26 Jul 2012, at 11:22 AM, Derek wrote: Massimo, that doesn't work, as we already explained. It's

Re: [web2py] BR()

2012-07-26 Thread Derek
Well, since BR is a subclass of DIV, and DIV overrides the __add__ as %s%s self, other - it should work without modification, no? On Thursday, July 26, 2012 12:43:35 PM UTC-7, Massimo Di Pierro wrote: We can also implement BR()+BR(). how about DIV(...)-BR()? What do you think it should do?

Re: [web2py] BR()

2012-07-26 Thread Derek
ah, nevermind. yes, please implement it. On Thursday, July 26, 2012 1:22:46 PM UTC-7, Derek wrote: Well, since BR is a subclass of DIV, and DIV overrides the __add__ as %s%s self, other - it should work without modification, no? On Thursday, July 26, 2012 12:43:35 PM UTC-7, Massimo Di

<    2   3   4   5   6   7   8   9   >