[web2py] Re: EOFError?

2010-01-25 Thread vince
i finally sorted out the problem. it is the file locking issue on the .table file. i run the application under mod_wsgi with multiple process. this error can be reproduce by loading a page with lots of images and those images are handle by the "download function". migrate=false will fix this for s

[web2py] globalposttasks

2010-01-25 Thread mdipierro
I am planning to eliminate the wsgihooks.py file from web2py including ExecuteOnCompletion2, globalposttasks and localposttasks I will move softcron to inside wsgibase. To most of the people here this does not mean anything. If this means something to you and you are using any of these functions

[web2py] Re: [web2py:36899] Creating a CSV file from data

2010-01-25 Thread Johann Spies
2009/12/9 Thadeus Burgess : > Is there something wrong with the following? > > results = db(db.table.field == searchvar)(db.table.field2 == > searchvar2).select() > > results.export_to_csv(outputfile, delimiter=',', quotechar='"', > qouting=csv.QOUTE_MINIMAL, represent=False) > I would like to giv

[web2py] cron anybody

2010-01-25 Thread mdipierro
I made some changes to cron.py in trunk. If you use cron, could you please hep me test it? Massimo -- 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, sen

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

2010-01-25 Thread Thadeus Burgess
nope, not that I know of. -Thadeus On Mon, Jan 25, 2010 at 10:39 PM, Yannick wrote: > Thanks for the note... Yes that's why I was asking because I don't > have a verification link on my appl... I was wondering if there are a > way to know about the failure ASAP... the failure message from SM

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

2010-01-25 Thread Yannick
Thanks for the note... Yes that's why I was asking because I don't have a verification link on my appl... I was wondering if there are a way to know about the failure ASAP... the failure message from SMTP come later in the process... On Jan 25, 11:32 pm, Thadeus Burgess wrote: > Check the servers

[web2py] Re: Cron Problem

2010-01-25 Thread mdipierro
Turns out @reboot only worked with extcron. I modified the cron.py so that now it should work with hardcron (the default) and softcron too. The fix is in trunk. Would you please test it and see if I did not break anything? Massimo On Jan 25, 5:48 pm, Auden RovelleQuartz wrote: > Hello, > > The

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 w

[web2py] Alert when email not sent sucessfully !

2010-01-25 Thread Yannick
Hello mate, This may be a stupid question... I wonder if there is way to know if an email has been successfully send or not... Like for example someone can register to a website using a fake (valid format email) email and the application will send an email but I wonder how to track these cases...

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

2010-01-25 Thread weheh
I have to wiat 'til my server is less busy before I can try Thadeus' and Alex's suggestions. That'll probably be tomorrow morning. On Jan 25, 10:04 pm, Thadeus Burgess wrote: > Insight: I put this in the same category as "printer trouble" > > -Thadeus > > > > On Mon, Jan 25, 2010 at 8:55 PM, mdip

[web2py] Re: Innapropriate field name

2010-01-25 Thread mdipierro
Currently the dal does not rename field and table names and transparently passes them to the db. "order" is a reserved keyword in SQL because used for "ORDER BY", so it cannot be a table or field name. On Jan 25, 9:44 pm, rama wrote: > I tried to create a field name called 'order'. This threw an

[web2py] Innapropriate field name

2010-01-25 Thread rama
I tried to create a field name called 'order'. This threw an exception. Changing to another name called 'item_order' solved this. I just wanted to share this. Correct me if I am wrong. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to

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 wrote: > I have no clue. Please share any insight on this matter. > > On Jan 25, 6:45 pm, Thadeus Burgess wrote: >> I also have noticed an inability to upgrade web2py from an ol

[web2py] Re: Cron Problem

2010-01-25 Thread mdipierro
I will try check this asap. On Jan 25, 5:48 pm, Auden RovelleQuartz wrote: > Hello, > > The cron feature does not seem to work for me.  Any insights? > > Here is some information: > > at this > URL,http://127.0.0.1:8000/admin/default/edit/oves_beta_001x2auden/cron/cr..., > this is what I have >

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

2010-01-25 Thread mdipierro
I have no clue. Please share any insight on this matter. On Jan 25, 6:45 pm, Thadeus Burgess wrote: > 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 int

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 happens

Re: [web2py] Re: Blogitizor Open Sourced

2010-01-25 Thread Thadeus Burgess
I do use joins. I know I have a left join in there somewhere :) So no, I don't have support for GAE out of box. I actually designed blogitizor to be more CMS oriented, hence I use the name Pages instead of Posts. However my first and foremost goal was to deprecate my wordpress blog, now that that

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

2010-01-25 Thread Alex Fanjul
This issue happend to me several times, I ended reinstalling all again. alex f El 25/01/2010 23:13, weheh escribió: I want to test out my new website under development on my server production area. Problem is, the server is running web2py 1.64.3 and won't let me install my new website. So I dow

[web2py] Cron Problem

2010-01-25 Thread Auden RovelleQuartz
Hello, The cron feature does not seem to work for me. Any insights? Here is some information: at this URL, http://127.0.0.1:8000/admin/default/edit/oves_beta_001x2auden/cron/crontab, this is what I have #crontab -1 * * * * root *cron_operations/ labor

[web2py] Re: Blogitizor Open Sourced

2010-01-25 Thread Richard
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 wrote: > And because of this I have been looking and designing in my head how > to make blogitizor not just a

[web2py] Re: Web2py for PHP

2010-01-25 Thread pistacchio
hi, this is certainly not the place to start a php vs python debate, but unless you have very valid reasons to use php, i'd suggest to stick with python. python is a very elegant and mature language. php has gained a huge popularity more for the moment when it came out that for the goodness of the

[web2py] Re: Web2py for PHP

2010-01-25 Thread mdipierro
I feel ashamed of myself. Honestly. I should have just suggested look into http://web2py.appspot.com/t3 until we complete all the plugins we need to make https://launchpad.net/t4 a production system. On Jan 25, 11:02 am, Timothy Farrell wrote: > Gahh! > > Python Server Pages > > Gahh! > > Do

Re: [web2py] Re: Web2py for PHP

2010-01-25 Thread Timothy Farrell
Gahh! Python Server Pages Gahh! Don't ever suggest that again! On 1/25/2010 10:50 AM, mdipierro wrote: Not that this is a good idea in general BUT you can do the following create a web2py app called, for example, "php" with a single controller called default.py that contains def ind

[web2py] Re: Web2py for PHP

2010-01-25 Thread mdipierro
Not that this is a good idea in general BUT you can do the following create a web2py app called, for example, "php" with a single controller called default.py that contains def index(): redirect(URL(r=request,f='public/index')) def public(): response.view='default/public/%s.html' % reque

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 fram

Re: [web2py] Web2py for PHP

2010-01-25 Thread tiago almeida
Hi, Why don't you take the time to learn Python? As a programmer experienced in Java/C/C++/Lisp etc. I can only say good things about my decision to learn python a while back. It is a great language. Just my 2cent. I'm afraid I can't help you with php frameworks. See ya. -- On Mon, Jan

[web2py] Re: Web2py for PHP

2010-01-25 Thread villas
Web2py has it all -- but if you must insist on PHP: See Cakephp.org (and try the new fork, http://li3.rad-dev.org/) After another 3 months of frustration, you'll be back! ;-) D -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this g

[web2py] Web2py for PHP

2010-01-25 Thread Pynthon Pynthon
Hello Maybe it sounds strange but I need something like Web2py for PHP. Most PHP frameworks are too complicated. I know Codeigniter but IMO web2py has a great job, too for newbies that don´t know any OOP. Do you think something with the simplicity of web2py exists in PHP? Thanks and sorry for th

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

2010-01-25 Thread mdipierro
On a related topic. The html wysiwyg editor that comes with admin has a major problem. It escapes URLS. This is a probem since URL may include code like {{=URL(...)}} that should not be escaped. It would be great if somebody could look into this. On Jan 25, 9:18 am, selecta wrote: > i wrote it do

[web2py] Re: Custom form doesn't submit

2010-01-25 Thread Adi
Sorry I was posting the other reply so missed this: Responses inline. > You are appending to form1 so check: > 1) An INPUT named 'name', is it the only 'name' field in form1? Yes. names of all fields are different. > 2) Same for the SELECT, is there another 'gender' field? No. All fields are diff

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

2010-01-25 Thread selecta
i wrote it down http://www.web2pyslices.com/main/slices/take_slice/54 however some elements are not coverted to markdown or back eg. underline and strikethrough is converted to markdown but not from markdown to html here is another converter that I dismissed for some reason i do not remember http:

[web2py] Re: Custom form doesn't submit

2010-01-25 Thread Adi
In db.py: db.define_table('job', Field('filename', 'string', label='File Name', requires = IS_NOT_EMPTY()), Field('total_duration_minutes', 'integer', label ='Total Duration (minutes)', requires = IS_NOT_EMPTY())) db.define_table('worker', Field('fi

[web2py] Re: Custom form doesn't submit

2010-01-25 Thread DenesL
On Jan 25, 6:35 am, Adi wrote: > Hi all, > > I'm trying to build a custom form in this fashion: > > There's a parent table and a child table (many one relationship). I've > created a read-only SQLFORM for a record of the parent, and then I'm > trying this: > > form1 = SQLFORM(db.parent, readonly=T

[web2py] Re: Calling a SQLFORM through AJAX

2010-01-25 Thread DenesL
Is the form submitting to same controller perhaps? Then it would just return another form which is what you are experiencing. On Jan 25, 10:00 am, Khaled ElAdawy wrote: > I created a controller function that could be called through ajax and > returns a SQLFORM. > I've got the form to appear on

[web2py] Re: Calling a SQLFORM through AJAX

2010-01-25 Thread mdipierro
Hard to say without looking at the code. I assume there is an accepts in the controller. Try call it with accepts(request.vars,formname=None) instead of accepts(request.vars,session) On Jan 25, 9:00 am, Khaled ElAdawy wrote: > I created a controller function that could be called through ajax and

[web2py] Calling a SQLFORM through AJAX

2010-01-25 Thread Khaled ElAdawy
I created a controller function that could be called through ajax and returns a SQLFORM. I've got the form to appear on the page, but the SQLFORM doesn't work as it should. When I submit information from the view that the generated content has been placed into, the page refreshes and nothing is ins

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

2010-01-25 Thread Thadeus Burgess
so you convert your markdown back into html to feed to the WYSIWYG editor? -Thadeus On Mon, Jan 25, 2010 at 7:54 AM, mdipierro wrote: > html2text is interesting... opens many possibilities. > > On Jan 25, 6:16 am, selecta wrote: >> success >> >> I >> usedhttp://www.aaronsw.com/2002/html2te

Re: [web2py] Re: Blogitizor Open Sourced

2010-01-25 Thread Thadeus Burgess
And because of this I have been looking and designing in my head how to make blogitizor not just a blog engine, but a pluggable system. -Thadeus On Mon, Jan 25, 2010 at 8:54 AM, Thadeus Burgess wrote: > Well I have been looking at a bunch of them, because a CMS can be a > blog and a blog is

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 im

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

2010-01-25 Thread mdipierro
html2text is interesting... opens many possibilities. On Jan 25, 6:16 am, selecta wrote: > success > > I > usedhttp://www.aaronsw.com/2002/html2text/andhttp://code.google.com/p/jwysiwyg/ > > in the view I write > form part: >

[web2py] Re: Custom form doesn't submit

2010-01-25 Thread mdipierro
I need to try this. Can you post the entire action and a sample (one field) child and parent tables? On Jan 25, 5:36 am, Adi wrote: > Corrections: form1 = SQLFORM(db.parent, record, readonly=True) > > On Jan 25, 4:35 pm, Adi wrote: > > > Hi all, > > > I'm trying to build a custom form in this fa

[web2py] Re: AJAX with custom widget

2010-01-25 Thread mdipierro
There is no special place for this. You can put them in a module and import, in a controller or in a model where you need them. For example: def mywidgetfield, value): return INPUT(_type='text', value=value, _id = '%s_%s' % (field._tablename, field.name),

[web2py] Re: How to set default value based on query [RESOLVED]

2010-01-25 Thread mdipierro
LOL On Jan 24, 11:15 pm, weheh wrote: > Yup, of course, you are right as usual Mr. MDP. Which is why I want to > fatten you up so you'll slow down a little and let ordinary mortals > like me catch up. My mistake was in the IS_IN_DP syntax. I lied in my > earlier note where I said that I did exact

[web2py] Re: validation problems

2010-01-25 Thread hamdy.a.farag
We always use the latest version in trunk bash-3.1# hg tip changeset: 122:9d8683b8dc0f tag: tip user:mdipie...@massimo-di-pierros-macbook.local date:Sat Jan 23 18:28:38 2010 -0600 summary: gluon/contrib/urlify.py, thanks Gustavo Di Pietro I reproduces the error usin

[web2py] Re: OperationalError: no such table: auth_user

2010-01-25 Thread Cliff Brake
On Jan 18, 8:38 pm, mdipierro wrote: > SVN is no longer updated. Please try the tarball form web2py.com Sorry I did not make myself clear. I was using web2py from a tarball, but checking my application in/out of SVN. I did figure out the problem -- I had checked some of the databases/*.table fi

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

2010-01-25 Thread selecta
success I used http://www.aaronsw.com/2002/html2text/ and http://code.google.com/p/jwysiwyg/ in the view I write form part: $('#no_table_body').wysiwyg(); this replaces the textarea on every ajax reload of the plugin the the jquery editor display part: {{import gluon.contrib.markdown}} {{=glu

[web2py] web2py help & resources

2010-01-25 Thread DenesL
Primary source of help: web2py groups - http://groups.google.com/group/web2py/topics http://groups.google.com/group/web2py-developers/topics http://groups.google.com/group/web2py-users-brazil/topics Tips on searching the users group -

[web2py] Re: Custom form doesn't submit

2010-01-25 Thread Adi
Corrections: form1 = SQLFORM(db.parent, record, readonly=True) On Jan 25, 4:35 pm, Adi wrote: > Hi all, > > I'm trying to build a custom form in this fashion: > > There's a parent table and a child table (many one relationship). I've > created a read-only SQLFORM for a record of the parent, and t

[web2py] Custom form doesn't submit

2010-01-25 Thread Adi
Hi all, I'm trying to build a custom form in this fashion: There's a parent table and a child table (many one relationship). I've created a read-only SQLFORM for a record of the parent, and then I'm trying this: form1 = SQLFORM(db.parent, readonly=True) form2 = SQLFORM(db.child, keepopts=['gend

[web2py] New features not documented in Book (2nd ed.)

2010-01-25 Thread DenesL
New features not documented in Book (2nd edition) 1.74.8 1) IS_SLUG() 2) web2py.py -nogui 3) solved a problem with jython 4) login has "remember me option" 5) fixed problem with keepvalues in update forms http://groups.google.com/group/web2py/browse_thread/thread/4075ac6578a5197e# 1.74.7 1) reque

[web2py] Re: web2py 1.74.8 is OUT

2010-01-25 Thread selecta
just updated and restarted without reading release notes and i was very happy and surprised to see the remember me option! Awesome, wanted to have that, now I do :) soo cool On Jan 24, 11:53 pm, mdipierro wrote: > #1.74.8 > IS_SLUG, thanks Gustavo and Jonathan > web2py.py -nogui, thanks Jeff Baue

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

2010-01-25 Thread selecta
thanks "searialize" was the keyword that was missing in my queries for an answer here is I guess the missing puzzle peace http://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 Burg