Re: [web2py] Plugin

2010-02-01 Thread Thadeus Burgess
Create your models/controllers/views/static files etc everything as you normally would, But append the word plugin_ in front of it so models/plugin_test.py controllers/plugin_test.py views/plugin_test/index.html static/plugin_test/logo.png But also follow the database/global def namespace

Re: [web2py] Re: Copy tables from existing table

2010-02-01 Thread Thadeus Burgess
, *audit_table) -Thadeus On Thu, Jan 28, 2010 at 5:52 PM, Thadeus Burgess thade...@thadeusb.com wrote: Sometimes I think to myself and say, Why didn't I just try that! Thank you, both of you! -Thadeus On Thu, Jan 28, 2010 at 4:27 PM, mdipierro mdipie...@cs.depaul.edu wrote

Re: [web2py] EMERGENCY! Major security hole in 1.74.8 fixed in 1.74.9.

2010-02-01 Thread Thadeus Burgess
Does this apply to = 1.74.7? -Thadeus On Mon, Feb 1, 2010 at 1:56 PM, mdipierro mdipie...@cs.depaul.edu wrote: User sveinh has discovered a major security hole in 1.74.8. This is really major and you should immediately upgrade to 1.74.9. I apologize for this. Massimo -- You received

Re: [web2py] Re: Questions on Auth

2010-02-01 Thread Thadeus Burgess
Not necessarily, what if you set session tokens to visitors as well ? You would not want to clear these out. Since a session is not tied to auth, a session is tied to the client visiting the website, you should clear these out manually in your logout function. -Thadeus On Mon, Feb 1, 2010

Re: [web2py] Re: Extra cron processes under Ubuntu 9.10 and Snow Leopard after upgrade to 1.74.9

2010-02-01 Thread Thadeus Burgess
we might have his admin password, but he doesn't have ssl!! :) -Thadeus On Mon, Feb 1, 2010 at 3:57 PM, mdipierro mdipie...@cs.depaul.edu wrote: 173.203.204.205 -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send

Re: [web2py] compile app error

2010-02-01 Thread Thadeus Burgess
It might be a permission issue. If web2py does not have permissions to save to the folder it cannot compile. -Thadeus On Mon, Feb 1, 2010 at 5:09 PM, Wes James compte...@gmail.com wrote: When I try to compile my app with 1.74.9 I get: Cannot compile: there are errors in your app. Debug

Re: [web2py] Re: The state of the wiki and documentation in general

2010-02-01 Thread Thadeus Burgess
Because the web2py community is made up of people who use python for real world work and have real world jobs to make money. Django fanboys have nothing better to do all day than write docs in their parents basement:) -Thadeus On Mon, Feb 1, 2010 at 6:21 PM, mdipierro mdipie...@cs.depaul.edu

Re: [web2py] Re: CMS content upload

2010-01-31 Thread Thadeus Burgess
also you might want to consider markdown, I am using it on my site for comments. With the WIKI that is in gluon/contrib/markdown and WMD javascript editor, with textarea resize it makes a great combo. Do take a look at blogitizor for how this is implemented. -Thadeus On Sun, Jan 31, 2010

Re: [web2py] Global Variable Available Across Sessions

2010-01-31 Thread Thadeus Burgess
Use cache.disk and cache your object instance. -Thadeus On Sun, Jan 31, 2010 at 5:04 PM, Mark Larsen larsen...@gmail.com wrote: I'd like to use a global variable (an instance of an object) that is initiated at server start up and that is a available to all threads/processes of the

Re: [web2py] Re: A small improvement for the edit interface

2010-01-31 Thread Thadeus Burgess
freeze.. hg export revision so hg export tip and then its as easy as a hg import filename for massimo. -Thadeus On Sun, Jan 31, 2010 at 5:35 PM, mr.freeze nat...@freezable.com wrote: I sent you a new admin/controllers/default.py. I'm not really sure how to make a patch with mercurial

Re: [web2py] Re: format zero IS_IN_DB

2010-01-30 Thread Thadeus Burgess
, Iceberg On Jan29, 11:55pm, Thadeus Burgess thade...@thadeusb.com wrote: +1 supporting DenesL argument. (but we already know this) note. default. breaks app. we like the feature but it shouldn't break an app no reason to have to specifically DISABLE something that hasn't existed in web2py

Re: [web2py] Re: has anybody check the the cron in trunk?

2010-01-30 Thread Thadeus Burgess
in windows? c:\python25\python.exe its not case sensitive but it is slash sensitive -Thadeus On Sat, Jan 30, 2010 at 12:24 AM, mdipierro mdipie...@cs.depaul.edu wrote: Would this path be right c:/Python25/python.exe or this c:\Python25\python.exe or both? On Jan 29, 11:18 pm,

Re: [web2py] Re: Unreliable csv-download

2010-01-30 Thread Thadeus Burgess
Perhaps you need to write your own csv export. Save a csv file to /tmp instead and then when your finished creating your csv file then stream it for download. This might reduce the memory requirements? Though not sure what you can do about the fact web2py cache's your select into memory, maybe do

Re: [web2py] Re: Unreliable csv-download

2010-01-30 Thread Thadeus Burgess
Rewrite or provide an alternative to ? -Thadeus On Sat, Jan 30, 2010 at 2:51 PM, mdipierro mdipie...@cs.depaul.edu wrote: I think we should consider rewriting the export function using a tmpfile instead of StringIO and doing pagination. On Jan 30, 2:49 pm, Thadeus Burgess thade

Re: [web2py] Re: Unreliable csv-download

2010-01-30 Thread Thadeus Burgess
...@cs.depaul.edu wrote: I'd just rewrite it to use tempfile and use add an option to do pagination (the counterindidation with pagination is that it may cause data loss or duplication although very rarely). On Jan 30, 3:03 pm, Thadeus Burgess thade...@thadeusb.com wrote: Rewrite or provide

Re: [web2py] Re: format zero IS_IN_DB

2010-01-29 Thread Thadeus Burgess
+1 supporting DenesL argument. (but we already know this) note. default. breaks app. we like the feature but it shouldn't break an app no reason to have to specifically DISABLE something that hasn't existed in web2py before ( you know, the empty select or please choose a value breaks my app

[web2py] Strange ticket

2010-01-29 Thread Thadeus Burgess
Every once in a while I get the following ticket. Its random, any ideas? Traceback (most recent call last): File gluon/main.py, line 396, in wsgibase request.body = copystream_progress(request) ### stores request body File gluon/main.py, line 143, in copystream_progress

Re: [web2py] Re: Strange ticket

2010-01-29 Thread Thadeus Burgess
, mdipierro mdipie...@cs.depaul.edu wrote: It his over https with wsgiserver? On Jan 29, 10:56 am, Thadeus Burgess thade...@thadeusb.com wrote: Every once in a while I get the following ticket. Its random, any ideas? Traceback (most recent call last):   File gluon/main.py, line 396, in wsgibase

Re: [web2py] routes.py SUCKS

2010-01-29 Thread Thadeus Burgess
routes_in ('^/admin(?Pany.*)', '/admin\gany'), ('^/appadmin(?Pany.*)', '/init/appadmin\gany'), ('^/(?Pany.*)', '/init/default/\gany'), routes_out ('/init/appadmin(?Pany.*)', '/appadmin\gany'), ('/init/default(?Pany.*)', '/default\gany'), -Thadeus

[web2py] Postgres Log Shipping

2010-01-29 Thread Thadeus Burgess
Can anyone suggest a tutorial for log shipping to another database using postgresql ? -Thadeus -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send

[web2py] response.postprocessing

2010-01-29 Thread Thadeus Burgess
Maybe its just me and I need to look harder but I can't find where web2py calls this... at all -Thadeus -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this

Re: [web2py] response.postprocessing

2010-01-29 Thread Thadeus Burgess
Thanks. grep fail :) -Thadeus On Fri, Jan 29, 2010 at 3:22 PM, Jonathan Lundell jlund...@pobox.com wrote: On Jan 29, 2010, at 1:16 PM, Thadeus Burgess wrote: Maybe its just me and I need to look harder but I can't find where web2py calls this... at all run_controller_in

Re: [web2py] response.postprocessing

2010-01-29 Thread Thadeus Burgess
response.postprocessing.append(hi) -Thadeus On Fri, Jan 29, 2010 at 3:26 PM, Thadeus Burgess thade...@thadeusb.com wrote: Thanks. grep fail :) -Thadeus On Fri, Jan 29, 2010 at 3:22 PM, Jonathan Lundell jlund...@pobox.com wrote: On Jan 29, 2010, at 1:16 PM, Thadeus Burgess wrote

Re: [web2py] response.postprocessing

2010-01-29 Thread Thadeus Burgess
bah I need to take a break, my eyes play tricks on me. -Thadeus On Fri, Jan 29, 2010 at 3:35 PM, Thadeus Burgess thade...@thadeusb.com wrote: Why does this function get a dictionary, when this is the only function in postprocessing def compress_response(xml):    print xml # prints

Re: [web2py] Postgres Log Shipping

2010-01-29 Thread Thadeus Burgess
, Thadeus Burgess thade...@thadeusb.com wrote: Can anyone suggest a tutorial for log shipping to another database using postgresql ? If you mean by log shipping the method of using logs of sql-transactions to duplicate a database on another server you can search for postgresql warm standby e.g. http

Re: [web2py] Re: Using XML templates with AMF

2010-01-29 Thread Thadeus Burgess
@service.amfrpc3('domain') def somefunction(param): return response.render(filename='mytemplate.xml', context=dict(items)) -Thadeus On Fri, Jan 29, 2010 at 8:28 PM, Dane dane.schnei...@gmail.com wrote: Yes, I'm using services currently. My question is how do I return xml generated by a

Re: [web2py] Re: db.export_to_csv_file and Carriage Return

2010-01-28 Thread Thadeus Burgess
=csv.QUOTE_MINIMAL) s.seek(0) for line in reader: print line ... ['this', 'is\x07', 'test', '12'] ['this', 'is\na', 'test', '12'] On Jan 27, 11:36 pm, Thadeus Burgess thade...@thadeusb.com wrote: We can't have it exporting qoutes and then the import expecting the qoutes to be minimal

Re: [web2py] Re: wmd

2010-01-28 Thread Thadeus Burgess
Take a look at http://code.google.com/p/blogitizor/source/browse/src/controllers/admin.py line 280 starts the controller. note lines 293-297 - setting wmd defaults Look at http://code.google.com/p/blogitizor/source/browse/src/views/admin/create.html note lines 191-193 - sets wmd options 331 -

Re: [web2py] Re: Mobile devices + web2py

2010-01-28 Thread Thadeus Burgess
wow Massimo where did that one creep out of the depths from! Lol I never knew :) -Thadeus On Thu, Jan 28, 2010 at 9:27 AM, tiago almeida tiago.b.alme...@gmail.com wrote: Great! I missed that one. Thank you very much, Tiago - On Thu, Jan 28, 2010 at 3:15 PM, mdipierro

Re: [web2py] format zero IS_IN_DB

2010-01-28 Thread Thadeus Burgess
http://groups.google.com/group/web2py/browse_thread/thread/e0ed90f8e72960f6 Please follow the above thread. Massimo said he was thinking about how to procede with the matter. -Thadeus On Thu, Jan 28, 2010 at 11:05 AM, DenesL denes1...@yahoo.ca wrote: Back in Jan.2/10 the default for

Re: [web2py] Re: format zero IS_IN_DB

2010-01-28 Thread Thadeus Burgess
option, which should not have been there to begin with. Denes. On Jan 28, 12:25 pm, Thadeus Burgess thade...@thadeusb.com wrote: http://groups.google.com/group/web2py/browse_thread/thread/e0ed90f8e7... Please follow the above thread. Massimo said he was thinking about how to procede

[web2py] Copy tables from existing table

2010-01-28 Thread Thadeus Burgess
Is there a way to iterate through the Field() elements of a table and use them to create another similar table ? I'm looking for something like db.define_table('hi', Field('hello'), Field('world')) class Foo() def init(atable): for field in atable: db.define_table(tablename +

Re: [web2py] Re: Copy tables from existing table

2010-01-28 Thread Thadeus Burgess
('newname',*[f for f in db.table]) On Jan 28, 2:20 pm, Thadeus Burgess thade...@thadeusb.com wrote: Is there a way to iterate through the Field() elements of a table and use them to create another similar table ? I'm looking for something like db.define_table('hi', Field('hello'), Field

Re: [web2py] Re: Huge amount of data slowing page loads...

2010-01-27 Thread Thadeus Burgess
You would need to write your own levenshtien database query that returns to jquery autocomplete. -Thadeus On Wed, Jan 27, 2010 at 2:20 AM, Jason Brower encomp...@gmail.com wrote: It's nice... but can I get it to work with things like in my example... Where I press a and it gives me Army

Re: [web2py] Re: uWSGI + Cherokee + web2py - a howto.

2010-01-27 Thread Thadeus Burgess
open the file on the filesystem web2py/applications/myapp/errors/traceback_id its a python pickle object, but you can still read good enough opening it in a text editor. -Thadeus On Wed, Jan 27, 2010 at 6:56 AM, Adi aditya.sa...@gmail.com wrote: Hi Ivan, I followed this howto, and when

Re: [web2py] Re: Web2py for PHP

2010-01-27 Thread Thadeus Burgess
**falls in love with redbean -Thadeus On Wed, Jan 27, 2010 at 7:43 AM, desfrenes desfre...@gmail.com wrote: oh... You must prepend '\' before global names (global class names, function names etc. Wrong, global functions names don't need this. But then that makes it another exception

Re: [web2py] Re: bug in SQLFORM.factory?

2010-01-27 Thread Thadeus Burgess
because SQLFORM.accepts does alot more meta processing before it passes to FORM.accepts. -Thadeus On Wed, Jan 27, 2010 at 8:24 AM, mdipierro mdipie...@cs.depaul.edu wrote: Why def test1(): form=SQLFORM.factory(Field(bool,boolean)) if FORM.accepts(form, request.vars, session,

Re: [web2py] Re: Question about SQLFORM flow

2010-01-27 Thread Thadeus Burgess
no. its rendered as html, you can style it however you like with css i think thats what you are asking? -Thadeus On Wed, Jan 27, 2010 at 8:27 AM, mdipierro mdipie...@cs.depaul.edu wrote: Please ask again. I do not understand. On Jan 27, 4:54 am, leone handja...@gmail.com wrote: I have

Re: [web2py] Re: SQLFORM generating duplicate ids in HTML

2010-01-27 Thread Thadeus Burgess
On this same topic when you define an SQLFORM.factory() it appends 'no_table' as the name. Would it be difficult to add a way to pass a tablename to factory, so that my CSS will stay logical when I use SQLFORM or SQLFORM.factory? -Thadeus On Wed, Jan 27, 2010 at 8:31 AM, mdipierro

Re: [web2py] Replacing template engine

2010-01-27 Thread Thadeus Burgess
platforms. It blows up on Jython or AIX Python. -tim On 1/26/2010 9:05 PM, Thadeus Burgess wrote: Its going to be your best bet in using a different templating language. YOu will have to make sure to only parse your HTML requests and not json/download etc. Basically, response._caller

Re: [web2py] Re: Issues with join...

2010-01-27 Thread Thadeus Burgess
for one, if that is your actual model, your fields have absolutely no relationship to the other tables. db.define_table('order_que', Field('customer_code', length=30), Field('paint'), Field('can_size', requires=IS_IN_SET(['½ Litre', '1 Litre', '10 Litre', '30

Re: [web2py] Re: SQLFORM generating duplicate ids in HTML

2010-01-27 Thread Thadeus Burgess
while im working on getting a patch together. did you decide on how we want to handle markdown/__init__.py ? -Thadeus On Wed, Jan 27, 2010 at 10:00 AM, mdipierro mdipie...@cs.depaul.edu wrote: No objection. send me a patch. On Jan 27, 9:45 am, Thadeus Burgess thade...@thadeusb.com wrote

Re: [web2py] Re: db.export_to_csv_file and Carriage Return

2010-01-27 Thread Thadeus Burgess
You need to define the appropriate csv.QOUTES type. You probably have csv.QOUTES_MINIMAL (which is the web2py default) Try the following import csv db(query).select().export_to_csv_file(s, delimiter=',', quotechar='', quoting=csv.QUOTE_NONNUMERIC) db.import_from_csv_file(s, delimiter=',',

Re: [web2py] put line in variable in view

2010-01-27 Thread Thadeus Burgess
print f.write(line.xml()) the xml function returns a string which is the xml representation of the helper object. -Thadeus On Wed, Jan 27, 2010 at 11:24 AM, Wes James compte...@gmail.com wrote: What is the best way to put this in to a variable so I can output it in a view and write it to

Re: [web2py] Re: db.export_to_csv_file and Carriage Return

2010-01-27 Thread Thadeus Burgess
Doesn't that break backwards compatibility ? -Thadeus On Wed, Jan 27, 2010 at 1:38 PM, mdipierro mdipie...@cs.depaul.edu wrote: I just made this default in trunk. On Jan 27, 10:42 am, Thadeus Burgess thade...@thadeusb.com wrote: You need to define the appropriate csv.QOUTES type. You

Re: [web2py] Re: SQLFORM generating duplicate ids in HTML

2010-01-27 Thread Thadeus Burgess
Bugs must be squashed! You said so yourself a bug is not to be backwards compatible. This isn't really a bug but a design oversight, since it was figured two forms with the same field would never reside on the same page. I too have use for multiple same named fields, but since it doesn't break

Re: [web2py] crud newbie getting invalid function

2010-01-27 Thread Thadeus Burgess
can you give an example of the more complex example? -Thadeus On Wed, Jan 27, 2010 at 2:20 PM, weheh richard_gor...@verizon.net wrote: I'm a crud newbie. I've read the doc v2 on crud and think I understand it. So I tried the following: #model db = DAL('sqlite://storage.sqlite') from

Re: [web2py] Postgresql interface buggy

2010-01-27 Thread Thadeus Burgess
This is most likely a bug, would you be willing to provide more information on the matter? For simplicities sake, drop your tables with the DAL by doing db.table.drop() Then you will have a fresh start when you remove this command. -Thadeus On Wed, Jan 27, 2010 at 3:37 PM, Johann Spies

Re: [web2py] Re: db.export_to_csv_file and Carriage Return

2010-01-27 Thread Thadeus Burgess
I would say keep the old default in sql.py but make this the new default in dal.py The new dal has new functionality anyways -Thadeus On Wed, Jan 27, 2010 at 3:58 PM, Thadeus Burgess thade...@thadeusb.com wrote: Doesn't that break backwards compatibility ? -Thadeus On Wed, Jan 27

Re: [web2py] Re: SQLFORM generating duplicate ids in HTML

2010-01-27 Thread Thadeus Burgess
if it was defaulted to None we could go if _id == None then id = tablename else id = _id Id accept that, just set a unique id for each of my forms and nothing will conflict and it will still keep good with old apps. -Thadeus On Wed, Jan 27, 2010 at 4:27 PM, Wes James compte...@gmail.com

Re: [web2py] After upgrade, getting NameError name 'table' is not defined

2010-01-27 Thread Thadeus Burgess
Yes you should replace the appadmin files. There was a bug (don't remember what) with the old appadmin that was fixed in recent versions. Plus you get access to cache statistics if you have guppy heapy installed :) -Thadeus On Wed, Jan 27, 2010 at 4:44 PM, MikeEllis

Re: [web2py] Re: After upgrade, getting NameError name 'table' is not defined

2010-01-27 Thread Thadeus Burgess
Dont forget to replace teh views so you can get the cache templates -Thadeus On Wed, Jan 27, 2010 at 5:01 PM, MikeEllis michael.f.el...@gmail.com wrote: Thanks, Thadeus.  Replacing appadmin.py fixed it. On Jan 27, 5:56 pm, Thadeus Burgess thade...@thadeusb.com wrote: Yes you should

Re: [web2py] Re: SQLFORM generating duplicate ids in HTML

2010-01-27 Thread Thadeus Burgess
a lot more flexibility from both a CSS design and a UI design using jquery selection. -Thadeus On Wed, Jan 27, 2010 at 5:12 PM, Jonathan Lundell jlund...@pobox.com wrote: On Jan 27, 2010, at 2:30 PM, Thadeus Burgess wrote: if it was defaulted to None we could go if _id == None then id

Re: [web2py] Re: SQLFORM generating duplicate ids in HTML

2010-01-27 Thread Thadeus Burgess
, 2010 at 5:12 PM, Jonathan Lundell jlund...@pobox.com wrote: On Jan 27, 2010, at 2:30 PM, Thadeus Burgess wrote: if it was defaulted to None we could go if _id == None then id = tablename else id = _id Id accept that, just set a unique id for each of my forms and nothing will conflict

Re: [web2py] Re: Postgresql interface buggy

2010-01-27 Thread Thadeus Burgess
What about data type conversion though. In rails this is why you have to define migrations in rake script. Would it even be worth it for web2py ? Could we load the database column to a csv file, have web2py automate the drop column create column and new insert to the new data type? -Thadeus

Re: [web2py] Re: db.export_to_csv_file and Carriage Return

2010-01-27 Thread Thadeus Burgess
what if I have old csv backups laying around :) Ok +1 for QOUTES_NONNUMERIC as default. -Thadeus On Wed, Jan 27, 2010 at 7:45 PM, mdipierro mdipie...@cs.depaul.edu wrote: I do not think this change will cause any backward compatibility problems. On Jan 27, 3:58 pm, Thadeus Burgess thade

[web2py] Two domains, two web2py instances, two apps, same database

2010-01-27 Thread Thadeus Burgess
Here are my needs. example.com = public portion of the website. This includes anything publicly accessible, and allows new accounts to be created. Only needs access to one table, accounts table. dashboard.example.com = internal portion of the website, which includes all account management

Re: [web2py] Re: Postgresql interface buggy

2010-01-27 Thread Thadeus Burgess
generic, their quite powerful though. But a single function called from the web2py command line to convert between data types shouldn't be that hard. of course, you should have your data types set out before the app ever hits production so migrations like this usually mean deleting the sqlite

Re: [web2py] Re: db.export_to_csv_file and Carriage Return

2010-01-27 Thread Thadeus Burgess
Are you saying that from the csv module point of view, or from web2py point of view? I just attempted a simple test attempting to export one of my old files... it failed. Its no biggie, I just will specify my qoute type if I ever need to use one of these old csv files. My only request is make

Re: [web2py] Re: db.export_to_csv_file and Carriage Return

2010-01-27 Thread Thadeus Burgess
QUOTE_MINIMAL but on export applies QUOTE_NONNUMERIC. So import does not change but new export should still be compatible with input. Am I wrong again? I did not try it yet. I am making a guess. Massimo On Jan 27, 11:01 pm, Thadeus Burgess thade...@thadeusb.com wrote: Are you saying that from

Re: [web2py] Re: Best place to store files derived from uploaded data

2010-01-26 Thread Thadeus Burgess
Also the one thing with pickling these files is if any of the files get edited, you should perform some sort of locking since what if two people edit the same file at the same time? Just a disadvantage of using pickle in a multi-instanced environment such as web servers. But you probably already

[web2py] ticket on examples cache

2010-01-26 Thread Thadeus Burgess
http://www.web2py.com/examples/cache_examples/cache_db_select http://www.web2py.com/admin/default/ticket/examples/24.153.196.141.2010-01-26.11-15-40.af2f07f8-6752-4abc-b422-e70cae2627ea -Thadeus -- You received this message because you are subscribed to the Google Groups web2py-users group.

[web2py] A design question with forms.

2010-01-26 Thread Thadeus Burgess
Notice how I have validators set on the database level of web2py. db.table.field.requires = IS_IN_DB(...) I only use SQLFORM.factory to create my forms. I only use SQLFORM.factory because for my purposes forms cannot be mapped directly to database tables. Take a reference field for example, I

[web2py] Re: A design question with forms.

2010-01-26 Thread Thadeus Burgess
(...) validators. How should situations like this be handled, should I just always redefine my validators at the .factory level, or define at the databse level as defaults and only redefine in .factory if the validators change? -Thadeus On Tue, Jan 26, 2010 at 12:11 PM, Thadeus Burgess thade

Re: [web2py] RFC @completion

2010-01-26 Thread Thadeus Burgess
response._caller is internal. response._caller is global for all actions response._caller wants to call you out @completion will allow for per-action notification and per-action notify functions. @completion will allow you to be free @completion agrees with you /political_satire off They

Re: [web2py] validator that creates select with options from list of tuples?

2010-01-26 Thread Thadeus Burgess
IS_IN_DB can use a query can't it? -Thadeus On Tue, Jan 26, 2010 at 3:46 PM, selecta gr...@delarue-berlin.de wrote: Is there a validator that creates a select with options from a list of tuples what I want do do is Field(folder,integer,requires = IS_IN_TUPLELIST([('myfolder',12),

Re: [web2py] Re: RFC @completion

2010-01-26 Thread Thadeus Burgess
I am using response._caller to compress all of my html output on my site to one line. I would use @completion if I was streaming a file or performing some really long task like emailing 1500 people :) -Thadeus On Tue, Jan 26, 2010 at 4:13 PM, hamdy.a.farag hamdy.a.fa...@inbox.comwrote: Hi

Re: [web2py] table self reference not working

2010-01-26 Thread Thadeus Burgess
Neither. You need Field('parent', 'reference plugin_webfolder_files') It is the same as using db.plugin_webfolder_files, but works for tables that have not been defined yet. -Thadeus On Tue, Jan 26, 2010 at 4:17 PM, selecta gr...@delarue-berlin.de wrote: I want to create a webfolder

Re: [web2py] Re: table self reference not working

2010-01-26 Thread Thadeus Burgess
It happens to all of us -Thadeus On Tue, Jan 26, 2010 at 4:27 PM, selecta gr...@delarue-berlin.de wrote: thanks again! u're my hero I guess I should read the manual before asking questions ... starting to feel stupid here o_O On Jan 26, 11:22 pm, Thadeus Burgess thade...@thadeusb.com

Re: [web2py] Re: Alert when email not sent sucessfully !

2010-01-26 Thread Thadeus Burgess
mail.send only fails if there was an authentication error or it was an invalid formed email... if you send to idontex...@example.com mail.send will still return True. -Thadeus On Tue, Jan 26, 2010 at 7:02 PM, hamdy.a.farag hamdy.a.fa...@inbox.comwrote: Hi Yannic I'm not sure whether this

Re: [web2py] Re: RFC @completion

2010-01-26 Thread Thadeus Burgess
http://code.google.com/p/blogitizor/source/browse/src/models/plugin_compression.py -Thadeus On Tue, Jan 26, 2010 at 7:17 PM, hamdy.a.farag hamdy.a.fa...@inbox.comwrote: Thanks Thadeus for replying I didn't understand though, because this concept is new for me can you please give me

Re: [web2py] Replacing template engine

2010-01-26 Thread Thadeus Burgess
Its going to be your best bet in using a different templating language. YOu will have to make sure to only parse your HTML requests and not json/download etc. Basically, response._caller is a function, that returns a string which is the html. So you would instead of response.render(d) you would

Re: [web2py] Making auth_user Field optional

2010-01-26 Thread Thadeus Burgess
db.example.relationship.requires = IS_NULL_OR(IS_IN_DB(db, 'auth_user.id', 'auth_user.first_name')) -Thadeus On Tue, Jan 26, 2010 at 9:12 PM, rppowell rppow...@hotmail.com wrote: Hello; This is probably a basic thing that I am unable to figure out. I have the following table:

Re: [web2py] Re: Blogitizor Open Sourced

2010-01-25 Thread Thadeus Burgess
Well I have been looking at a bunch of them, because a CMS can be a blog and a blog is a stripped down CMS. Ive noticed that most CMS systems are actually just pluggable frameworks, in which you install the features you want. Take redmine for example, its a bug tracking software like trac, but

Re: [web2py] Re: wysiwyg editor in form does not work with ajax

2010-01-25 Thread Thadeus Burgess
was the keyword that was missing in my queries for an answer here is I guess the missing puzzle peacehttp://maestric.com/doc/javascript/tinymce_jquery_ajax_form will try it now, I will let you know if a get a wysiwyg markdown editor working :) On Jan 25, 2:17 am, Thadeus Burgess thade

Re: [web2py] Web2py for PHP

2010-01-25 Thread Thadeus Burgess
you won't find the simplicity just because of the way php is as a language, you might be able to emulate web2py but it will never be web2py because the thing that makes web2py so awesome is python. i'm assuming this is a requirement based on you have clients that want php but you want an easy

Re: [web2py] Re: Blogitizor Open Sourced

2010-01-25 Thread Thadeus Burgess
at 5:29 PM, Richard richar...@gmail.com wrote: that would be great if you further developed blogitizor so it had the functionality of a CMS. If there anything preventing blogitizor running on GAE? On Jan 26, 1:55 am, Thadeus Burgess thade...@thadeusb.com wrote: And because of this I have been

Re: [web2py] Serious issue with upgrading to latest version

2010-01-25 Thread Thadeus Burgess
I also have noticed an inability to upgrade web2py from an older version to a newer version, I always have to wipe the web2py installation, and untar/clone from scratch. I have yet to run into this sort of problem when keeping up with the latest trunk however, this is confusing as to why it

Re: [web2py] Re: Serious issue with upgrading to latest version

2010-01-25 Thread Thadeus Burgess
Insight: I put this in the same category as printer trouble -Thadeus On Mon, Jan 25, 2010 at 8:55 PM, mdipierro mdipie...@cs.depaul.edu wrote: I have no clue. Please share any insight on this matter. On Jan 25, 6:45 pm, Thadeus Burgess thade...@thadeusb.com wrote: I also have noticed

Re: [web2py] Alert when email not sent sucessfully !

2010-01-25 Thread Thadeus Burgess
Check the servers SMTP for mail-delivery failure messages. Beyond that, if they never click your verification link thats a fairly good indication the email is false, you could always use anything past 2 weeks is probably fake filters too. -Thadeus On Mon, Jan 25, 2010 at 10:29 PM, Yannick

Re: [web2py] Re: Alert when email not sent sucessfully !

2010-01-25 Thread Thadeus Burgess
... the failure message from SMTP come later in the process... On Jan 25, 11:32 pm, Thadeus Burgess thade...@thadeusb.com wrote: Check the servers SMTP for mail-delivery failure messages. Beyond that, if they never click your verification link thats a fairly good indication the email is false, you could

Re: [web2py] form.accepts: get id

2010-01-24 Thread Thadeus Burgess
form.vars.id -Thadeus On Sun, Jan 24, 2010 at 2:55 AM, pistacchio pistacc...@gmail.com wrote: Hi, once a record has been inserted with form.accepts, how to know the id of that record? Sure, one can performa a select and get the max id, and in most cases this would work, but it's not safe

[web2py] Blogitizor Open Sourced

2010-01-24 Thread Thadeus Burgess
Ok. So I give it to you, the source of blogitizor. Its not my best work, but I am limited by the quirks of web applications :( http://code.google.com/p/blogitizor/ There is a install notes and dependencies on the wiki. Just some notes to help navigate, I use letters to execute models in the

Re: [web2py] widgets

2010-01-24 Thread Thadeus Burgess
look in gluon/sqlhtml.py -Thadeus On Sun, Jan 24, 2010 at 10:06 AM, leone handja...@gmail.com wrote: Have sameone an example about SQLFORM.widgets.options.widget(...)? I am no able to obtain a select-option widget. Thanks leone -- You received this message because you are subscribed

Re: [web2py] Re: urlify

2010-01-24 Thread Thadeus Burgess
I agree with pistacchio. agree with you massimo on IS_SLUG for filtering only, if you want to validate use IS_ALPHANUMERIC. -Thadeus On Sun, Jan 24, 2010 at 12:39 PM, Jonathan Lundell jlund...@pobox.com wrote: On Jan 24, 2010, at 9:53 AM, mdipierro wrote: I do not know about this. What

Re: [web2py] Re: Blogitizor Open Sourced

2010-01-24 Thread Thadeus Burgess
 pm, Thadeus Burgess thade...@thadeusb.com wrote: Ok. So I give it to you, the source of blogitizor. Its not my best work, but I am limited by the quirks of web applications :( http://code.google.com/p/blogitizor/ There is a install notes and dependencies on the wiki. Just some notes to help

Re: [web2py] Re: Blogitizor Open Sourced

2010-01-24 Thread Thadeus Burgess
And the problem with not adding categories is probably a simple fix in the SQLFORM requires. DO you mind filling out issue tickets on google code for these? -Thadeus On Sun, Jan 24, 2010 at 7:13 PM, Thadeus Burgess thade...@thadeusb.com wrote: thadeusb.com is running blogitizor

Re: [web2py] Re: no pending patches?

2010-01-24 Thread Thadeus Burgess
Actually my bad, its not __init__.py it is actually XML() that needs patched... Just append *args, **kwargs to XML() function definition and it will clear out the error. WIKI would never work if anybody ever passed anything through **attributes since that gets passed

Re: [web2py] Re: Blogitizor Open Sourced

2010-01-24 Thread Thadeus Burgess
), which FrogCMS is a PHP clone of. Richard On Jan 25, 12:15 pm, Thadeus Burgess thade...@thadeusb.com wrote: And the problem with not adding categories is probably a simple fix in the SQLFORM requires. DO you mind filling out issue tickets on google code for these? -Thadeus On Sun, Jan

Re: [web2py] Re: Blogitizor Open Sourced

2010-01-24 Thread Thadeus Burgess
Thanks for making the issues, got to practice using commit to close the tickets :) -Thadeus On Sun, Jan 24, 2010 at 7:48 PM, Thadeus Burgess thade...@thadeusb.com wrote: Interesting, because HazelCMS is the werkzeug clone of frogcms which is the clone of radiantcms. Funny how the wheel

Re: [web2py] wysiwyg editor in form does not work with ajax

2010-01-23 Thread Thadeus Burgess
Have you ever thought of just using markdown/WIKI syntax and using a markdown editor such as WMD or others like it ? -Thadeus On Sat, Jan 23, 2010 at 6:54 AM, selecta gr...@delarue-berlin.de wrote: Hi there, I tried to use http://nicedit.com/ and http://ckeditor.com/demo in my project.

Re: [web2py] Re: Haiti: Spreadsheet importer needed

2010-01-23 Thread Thadeus Burgess
I took a look but I still don't quite understand what you are importing into web2py On Sat, Jan 23, 2010 at 10:55 AM, Fran francisb...@googlemail.com wrote: nisational Contacts it'll be worse since there are many Persons per Office per Organisation, so can't simply do seque -- You

Re: [web2py] Re: Newbie Question: Intellisense for Web2Py?

2010-01-23 Thread Thadeus Burgess
to Wingware soon. Regards Anand On Jan 21, 6:03 am, Thadeus Burgess thade...@thadeusb.com wrote: It is not, it will not pull in the imports of other files. You have to specifically declare all modules that are imported that you want available in the file that you want code completion

Re: [web2py] db.export_to_csv_file error

2010-01-22 Thread Thadeus Burgess
You have to define your tables before you export to csv, web2py will only export the tables it knows about. so db = DAL('...') db.define_table(...) db.export_to_csv_file(open(file)) -Thadeus On Fri, Jan 22, 2010 at 12:51 PM, Alexandre Andrade alexandrema...@gmail.com wrote: I trying to

Re: [web2py] EOFError?

2010-01-22 Thread Thadeus Burgess
looks like a corrupted .table file -Thadeus On Fri, Jan 22, 2010 at 1:18 PM, vince lapcc...@gmail.com wrote: i just look into the error log for some clean up and found several ticket with the following errors. i am using 1.74.6, any ideas? Traceback (most recent call last):  File

Re: [web2py] Search frustration

2010-01-21 Thread Thadeus Burgess
What are you trying to find ? -Thadeus On Thu, Jan 21, 2010 at 3:27 PM, DenesL denes1...@yahoo.ca wrote: Trying to locate older posts in this group using Google, Gmane, Bing, etc. seems like an exercise in futility. Even with the exact subject of the post NONE of the above can locate it.

Re: [web2py] Re: Request/Idea

2010-01-21 Thread Thadeus Burgess
to publish the plug-ins at some point but since nobody seemed to be interested so far I will wait till I see that I get something back On Jan 21, 8:13 pm, Thadeus Burgess thade...@thadeusb.com wrote: +1 and this could easily integrate into plugincentral (of which lately I have had no time since my

Re: [web2py] Re: Request/Idea

2010-01-21 Thread Thadeus Burgess
also do not feel the need to develop something when there is no community push for it (hence the reason I have put plugincentral off for so long). /rant off -Thadeus On Thu, Jan 21, 2010 at 5:08 PM, Thadeus Burgess thade...@thadeusb.com wrote: We're going to have a problem though

Re: [web2py] Re: Newbie Question: Intellisense for Web2Py?

2010-01-20 Thread Thadeus Burgess
To get web2py to work with code completion. This will work with eclipse + pydev, or wing IDE, or netbeans + python. add this to the top of your file (unfortunately it has to be on every file you want code completion). if 0: from gluon.tools import * from gluon.sqlhtml import * from

Re: [web2py] Re: Newbie Question: Intellisense for Web2Py?

2010-01-20 Thread Thadeus Burgess
not tried by perhaps putting if 0:   from gluon.tools import *   from gluon.sqlhtml import *   from gluon.sql import *   #...etc etc for every module you want to import in web2py/w.py and importing   from w import * in very file is a more compact solution. On Jan 20, 2:26 pm, Thadeus Burgess

<    5   6   7   8   9   10   11   12   13   14   >