[web2py:27395] Re: interesting :)

2009-07-25 Thread Horst Herb
On Fri, Jul 24, 2009 at 7:20 PM, Oleg wrote: > > http://visitmix.com/labs/gestalt/ nice concept, but utterly useless for real world web apps 1) requires MS Silverlight on the *end user* side - which already excludes a large number of platforms 2) designed to run poorly or not at all in Firfefox

[web2py:24343] Re: Web2Py Virtual Machine

2009-06-17 Thread Horst Herb
On Wed, Jun 17, 2009 at 4:50 PM, Fran wrote: > > On Jun 17, 2:40 am, JohnMc wrote: >> 'apache with mod_wsgi preconfigured'. Ok. A clarification on your last >> sentence -- 'and perhaps a nice user interface in web2py to add new >> virtual hosts.' Do you mean -- > > I think he means a Web2Py app w

[web2py:24341] Re: Web2Py Virtual Machine

2009-06-16 Thread Horst Herb
On Wed, Jun 17, 2009 at 11:40 AM, JohnMc wrote: > 'apache with mod_wsgi preconfigured'. Ok. A clarification on your last > sentence -- 'and perhaps a nice user interface in web2py to add new > virtual hosts.' Do you mean -- > > A) That a new instance of a unused web2py VM is spawned? Or, > B) Tha

[web2py:24314] Re: Web2Py Virtual Machine

2009-06-16 Thread Horst Herb
On Wed, Jun 17, 2009 at 10:06 AM, mdipierro wrote: > > Very Useful. Can you make it with python 2.5 instead? People have > reported one problem with authentication and 2.6. "Officially" only > 2.5 is supported. > It would also be useful to have one that only user ubuntu server with > mailman, post

[web2py:23870] Re: Custom Display Values

2009-06-10 Thread Horst Herb
On Thu, Jun 11, 2009 at 3:12 PM, mdipierro wrote: > > done but it is now > > {{=form.custom.form.begin}} > {{=form.custom.widget.field1}} > {{=form.custom.widget.field2}} > {{=form.custom.widget.field3}} > > {{=form.custom.form.end}} includes hidden fields! Fantastic! That's easy and intuitive a

[web2py:23239] Re: click click clik

2009-06-03 Thread Horst Herb
On Thu, Jun 4, 2009 at 10:19 AM, mdipierro wrote: > > because those people are influential people in the Django community, > the same people posting negative comments about web2py everywhere. I am not sure whether such comments matter. People seriously using such development tools will have a go

[web2py:23098] Re: distinct with a field name

2009-06-02 Thread Horst Herb
On Tue, Jun 2, 2009 at 4:48 PM, SergeyPo wrote: > > This works for sure in sqlite, mysql and oracle: > > db().select(db.tablename.fieldname, distinct=True) > > and this is correct approach because I can not imagine biz logic when > you want to select distinct values AND their ID's etc. fields. Yo

[web2py:23095] Re: distinct with a field name

2009-06-01 Thread Horst Herb
On Tue, Jun 2, 2009 at 2:03 PM, mdipierro wrote: > > db().select(...,distinct=True) > > I think it does what you ask. if you give it a try, please let us > know. I don't think it does - I have the same problem as jcorbett. As soon as you include the "id" in the query, "distinct=True" will re

[web2py:23071] Re: Does web2py run on the Iphone

2009-06-01 Thread Horst Herb
On Tue, Jun 2, 2009 at 7:31 AM, Pystar wrote: > > How do i jailbreak the iTouch? I should google that but i want a heads > up first > thanks http://www.theiphoneblog.com/2008/09/25/tipbs-jailbreaking-101-mac-edition/ I have been jailbreaking my 1st generation iPhone for every version since 1.0.

[web2py:22728] Re: Behavior of Enter key in an "ajaxified" input field

2009-05-27 Thread Horst Herb
On Wed, May 27, 2009 at 9:46 PM, Vincent Borghi wrote: > Thanks for the prompt suggestion, but it does not work. > With this code, both Enter key and submit button have the same bad > behavior: they just run a GET of the same current URL ("searchform"), > without passing parameters... > > Other i

[web2py:22710] Re: Auto_complete widget.

2009-05-27 Thread Horst Herb
On Wed, May 27, 2009 at 4:57 PM, annet wrote: > > In db.py I defined an auto complete widget: > > db.adres.plaats.requires=[IS_NOT_EMPTY(),widget=lambda self, > value:INPUT > (_id='place',_name='plaats',_class='ac_input',_type='text')] > > To me it is syntactically correct, however, web2py tells

[web2py:22595] Re: small paid project with web2py and nicEditor

2009-05-24 Thread Horst Herb
On Mon, May 25, 2009 at 11:28 AM, Richard wrote: > > hi Horst, > > I have emailed an example that implements image upload from nicEdit. > > Notes: >* nicEdit.js 1368: set nicURI to: '/nicedit_upload/default/ > upload', >* nicEdit.js 1391: removed ImageShack string >* The image data fr

[web2py:22549] auth redirection problem

2009-05-24 Thread Horst Herb
In controller "default", I have defined def user(): return dict(form=auth()) and the usual /myapp/default/user/login etc works just fine In another controller"patient" I have functions like @auth.requires_membership('staff') def somecontroller() do something In the model, I have se

[web2py:22486] Re: small paid project with web2py and nicEditor

2009-05-23 Thread Horst Herb
On Sat, May 23, 2009 at 11:46 PM, mdipierro wrote: > var nicUploadButton=nicEditorAdvancedButton.extend({nicURI:"http:// > YOURUPLOADURL", > > I have not tried but it should do the trick. The documentation suggests that they require a specific upload protocol Horst --~--~-~--~~

[web2py:22477] Re: small paid project with web2py and nicEditor

2009-05-23 Thread Horst Herb
On Sat, May 23, 2009 at 10:37 PM, desfrenes wrote: > > this plugin works but uses image schack to host the pictures. I know. I want to host the images locally. That site shows an example in PHP how to implement the feature on your local server Looks easy and straightforward enough, but I have no

[web2py:22461] Re: allow NULL in date field in SQLFORM

2009-05-23 Thread Horst Herb
On Sat, May 23, 2009 at 4:47 PM, wrote: > T.force('en-de')  ## en-de is a language file you'll create below > > > In the table definition: > > SQLField('fieldname', type='date') > > > ... a validator on this field which reads like: > > db.tablename.fieldname.requires=IS_NULL_OR(IS_DATE(str(T('%Y

[web2py:22458] small paid project with web2py and nicEditor

2009-05-22 Thread Horst Herb
I need *urgently* either a plugin or web2py "image server" implemented that does allow image upload from within nicEditor I basically use nicEditor within web2py and want to allow users to upload images locally and display them in the editor text details see: http://wiki.nicedit.com/Configuration-

[web2py:22383] Re: How to create an application from Web2Py shell and DAL

2009-05-22 Thread Horst Herb
On Fri, May 22, 2009 at 11:47 PM, cesmiga wrote: > I'm looking for documentation about how to create a web2py application > from the shell.  Does anyone have information on this?  Also, does > anyone have information about the Web2Py shell and/or DAL. python web2py.py -S -M -> gets you a shell

[web2py:22369] Re: new changes since book was published

2009-05-22 Thread Horst Herb
On Fri, May 22, 2009 at 10:44 PM, NikG wrote: > from the manual > Hello {{=session.visitor_name or "anonymous"}} > > current form > {{=H1('Hello ', session.visitor_name or 'anonynous')}} > > Is there any (newbie friendly) guide I can read about these kind of > changes? No changes there, I guess

[web2py:22353] Re: allow NULL in date field in SQLFORM

2009-05-22 Thread Horst Herb
On Fri, May 22, 2009 at 7:20 PM, wrote: > db.tablename.fieldname.requires=IS_NULL_OR(IS_DATE(str(T('%Y-%m- > %d' Thanks, that was what I was looking for! Another question: how / where can I (application wide) change the date format string so that all date entry and display conforms to it i

[web2py:22350] allow NULL in date field in SQLFORM

2009-05-22 Thread Horst Herb
given a table with a 'date' field and the crud generated or SQLFORM generated forms, how can I tell the form to accept *empty* values for a date? Thanks, Horst --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py

[web2py:22342] Re: weirdest database error

2009-05-21 Thread Horst Herb
On Fri, May 22, 2009 at 3:32 PM, mdipierro wrote: > > I need to go sleep now but email your code a better description of the > problem. I still do not understand what the symptoms are. I will look > at it tomorrow. GAH! I am so stupid!!! I found the error by pruning it down to what I wanted

[web2py:22338] Re: weirdest database error

2009-05-21 Thread Horst Herb
On Fri, May 22, 2009 at 2:16 PM, mdipierro wrote: > > I am confused. Can you tell me once more what code/operation causes > the wrong behavior and how to reproduce it step by step? Ah, if I only could! I created a new database and just copied a few controllers/views and the model into it - repro

[web2py:22333] Re: weirdest database error

2009-05-21 Thread Horst Herb
On Fri, May 22, 2009 at 12:55 PM, mdipierro wrote: > > Relax.. > > This > admin.update({"first_name":"System"})  ### wrong Yup, you are right of course. Sadly, makes no difference to the app misbehaviour. If I use the form in .../appadmin/update/db/auth_user/1 and update the user, it ignor

[web2py:22331] weirdest database error

2009-05-21 Thread Horst Herb
For the second time, a web2py app has gone berserk. All of a sudden, database writes do not happen any more, no errors, nothing in the logs. Regardless whether I use the appadmin interface or my own controllers/views or even in the shell. Example (web2py -S pb -M, no other web2py processes runnin

[web2py:22320] Re: Most complex app in Web2Py yet?

2009-05-21 Thread Horst Herb
On Fri, May 22, 2009 at 9:42 AM, JorgeRpo wrote: > > Hello > > I'd like to know about really complex apps made with web2py so far.. > > Anyone care to share experiences? > > Could web2py be used to built major apps like gmail, youtube, remember > the milk, facebook, etc?? I am in the process of

[web2py:22248] auth & MVC???

2009-05-20 Thread Horst Herb
I want to create my own login forms and need to create users programmatically. I expected some function such as login(username, cleartextpassword) in the auth class, and also something like cryptpwd(cleartextpassword) Auth however seems to break the MVC paradigm completely. Questions: 1) what do

[web2py:22180] Re: jPolite solved (almost) all our problems

2009-05-19 Thread Horst Herb
On Wed, May 20, 2009 at 5:06 AM, mdipierro wrote: > > I turned jpolite into a web2py app. > > https://www.web2py.com/jpolite Jaw dropping - just what I needed for my web app. Just when I was in the process of integrating http://www.dhtmlgoodies.com/index.html?page=dhtml-suite Horst --~--~-

[web2py:21991] Re: db query question

2009-05-16 Thread Horst Herb
On Sun, May 17, 2009 at 8:07 AM, JohnMc wrote: > rows = db(db.notes.id==request.args[0]).select() > > where args[0] equals 1, but fails returning an empty rows. Even tried > converting to int, same result. Works for me. Have you checked what request.args[0] is? eg by simply "print int(request.a

[web2py:17857] Re: firebird support not working?

2009-03-10 Thread Horst Herb
On Wed, Mar 11, 2009 at 3:31 PM, mdipierro wrote: > > The error below is due to the fact that > > ma=SQLDB('firebird://dbuser:dbpass/127.0.0.1:3050//drugref.fdb') > > should probably be > > ma=SQLDB('firebird://dbuser:dbpass/127.0.0.1:3050/drugref.fdb') No. If I omit the second "/" it searches f

[web2py:17849] Re: firebird support not working?

2009-03-10 Thread Horst Herb
On Wed, Mar 11, 2009 at 12:43 PM, mdipierro wrote: > > I am not a Firbeird expert but I can help you debug this. > Can you execute that line from a normal sql shell? >>     self._execute('SET NAMES UTF8;') Funny thing - in an SQL shell (isql-fb) I can. Going into python shell, importing the dri