[web2py:17138] FORM db.update_record clears nicEdit panel

2009-02-28 Thread murray3
I have a test Wiki Controller which now defines a form with the properties I can customise, I have a text area which is edited by nicEdit. On submit saves contents to my db. and can be dispalayed on another page with {{=XML(page.body,sanitize=True)}} while this is OK, when clicking submit, the cod

[web2py:17139] Re: facebook + web2py app

2009-02-28 Thread notabene
Sorry There was no bugs - and no web2py errors. The problem was that the Facebook application configuration: It did not have the correct/full path to the web2py URL. Thanks Again! On 27 Feb., 17:34, mdipierro wrote: > I guess the problem is that the application has a bug and that returns > an e

[web2py:17140] Re: Checkbox validation broken?

2009-02-28 Thread Voltron
Thanks. works again On Feb 27, 10:21 pm, mdipierro wrote: > Now I understand. You should use this > > db.table.checkbox_field.requires=IS_IN_SET(['on']) > > instead because it is not obvious to me that an unchecked checkbox > should be considered empty since it implies that a choice has been > m

[web2py:17141] Re: FORM db.update_record clears nicEdit panel

2009-02-28 Thread mdipierro
I think you need form.accepts(.,keepvalues=True) On Feb 28, 3:42 am, murray3 wrote: > I have a test Wiki Controller which now defines a form with the > properties > I can customise, I have a text area which is edited by nicEdit. On > submit > saves contents to my db. and can be dispalayed o

[web2py:17142] Re: facebook + web2py app

2009-02-28 Thread mdipierro
Thanks for letting us know. If you could send me a not about the customization that was missing I will add the notice to the app. Massimo On Feb 28, 4:50 am, notabene wrote: > Sorry > There was no bugs - and no web2py errors. > The problem was that the Facebook application configuration: It did

[web2py:17143] How to join myself

2009-02-28 Thread 姚国荣
db.define_table('test_dept', SQLField('name'), SQLField('parent',db.test_dept) ) Error log: Traceback (most recent call last): File "F:\Develop\Python\Web2Py\web2py_src\web2py\gluon \restricted.py", line 98, in restricted exec ccode in environment File "

[web2py:17144] Re: How to join myself

2009-02-28 Thread mdipierro
db.define_table('test_dept', SQLField('name'), SQLField('parent','reference test_dept') On Feb 28, 8:26 am, 姚国荣 wrote: > db.define_table('test_dept', >SQLField('name'), >SQLField('parent',db.test_dept) >) > > Error log: > >

[web2py:17145] Re: Ubuntu Apache server setup problem

2009-02-28 Thread cadrentes
Thanks again. I did open a server at webfaction and I think I'm on the right track. This is a bit of a newbie question but I think the answer might help others. How do I change permissions so that the web2py.py script functions properly? I get the following reslults when starting web2py: Trace

[web2py:17146] Re: Ubuntu Apache server setup problem

2009-02-28 Thread mdipierro
Is this a shared host? I think the problem is that somebody else is using the same post. If you are using 8000, try 8001, 8002, until the problem goes away. Massimo On Feb 28, 9:03 am, cadrentes wrote: >  Thanks again.  I did open a server at webfaction and I think I'm on > the right track.  Th

[web2py:17147] Re: DAL mssql DSN connection

2009-02-28 Thread carlo
same for me! and I am not that as400 expert..I think I will try insert in an existing journaled table. Actually I do not need to insert/ update tables for my application just select as my output goes into a mysql db but I am curious.. carlo On 28 Feb, 05:16, DenesL wrote: > I could not start th

[web2py:17148] two dbs in one model or two model files

2009-02-28 Thread carlo
My input data are on db2/400 and my output goes into MySql. What is recommended to get two db connections/models in parallel? Two dbs in one db.py model or two distinct model files? I think the latter.. Another question: as my source db2/400 tables are huge, even 50 fields, can I have in my web2p

[web2py:17149] Re: Critical point in web2py

2009-02-28 Thread vihang
Glad to see a whole lot of discussion on form, structure, etc... My 2 cents: (a summary of discussions above, since I was out of action last couple of days) 1) Yes, a popular wiki like moinmoin is easy to recognize and adopt, but given improvements massimo has made, the web2py wiki is worth cons

[web2py:17150] Re: Ubuntu Apache server setup problem

2009-02-28 Thread Richard Colby
Yes, that's it. Thank you! On Sat, Feb 28, 2009 at 8:12 AM, mdipierro wrote: > > Is this a shared host? > I think the problem is that somebody else is using the same post. If > you are using 8000, try 8001, 8002, until the problem goes away. > > Massimo > > On Feb 28, 9:03 am, cadrentes wrote:

[web2py:17151] Re: How to join myself

2009-02-28 Thread 姚国荣
Thanks.it's do! I did not find the information in the document, so the document is the lack of. 2009/2/28 mdipierro : > > db.define_table('test_dept', >SQLField('name'), >SQLField('parent','reference test_dept') > > > On Feb 28, 8:26 am, 姚国荣 wrote: >> db.define_t

[web2py:17152] Error connecting to Mysql DB !

2009-02-28 Thread Yannick
Hello mate, Did someone already had this error message below before ? I'm using MySQL server but with Sqlite I don't have this error everything seems to be alright... Error traceback Traceback (most recent call last): File "/opt/web2py/gluon/main.py", line 365, in wsgibase SQLDB.close_all_

[web2py:17153] Re: Authentication Problem !

2009-02-28 Thread Yannick
Thanks Massimo, it work fine but for some reason I can't make it work with MySql Server DB... Here is the error message I get, please look this thread: http://groups.google.com/group/web2py/browse_thread/thread/f24f80e9e299aa88 Thanks, Yannick P. On Feb 26, 9:10 pm, Yannick wrote: > Hello Massi

[web2py:17154] Re: Critical point in web2py

2009-02-28 Thread Paul Eden
I do like the idea of the Sphinx site as well. - it looks great and is easy to setup. - It is not hard to update, just check out the source and update the reST source. After reading what Yarko said, in my mind, the only missing feature Sphinx would be user-contributed comments. - The reason I say

[web2py:17155] Does DAL support IN operator? How?

2009-02-28 Thread pedro
That is m question. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsu

[web2py:17156] Re: mail.settings.server (aka: setting up email on localhost)

2009-02-28 Thread Yannick
Hi Massimo, I'm having the same problem here I use postfix with this setting mail = Mail() mail.settings.server='127.0.0.1:25' # your SMTP server mail.settings.sender='mygmailacco...@gmail.com' # your email mail.settings.login =None But I can't send any email during the registration proc

[web2py:17157] Re: mail.settings.server (aka: setting up email on localhost)

2009-02-28 Thread David Marko
Hello, here is a very short code snippet that works as a simple smtp server . It waits on localhost:25 and each message is saved as a file. I think the code is very self-describing ... (not sure how code indentation will look like, but I havent found the way how to upload the file here) David f

[web2py:17158] Re: two dbs in one model or two model files

2009-02-28 Thread mdipierro
I would probably do that but this an aesthetic issue On Feb 28, 9:27 am, carlo wrote: > My input data are on db2/400 and my output goes into MySql. What is > recommended to get two db connections/models in parallel? Two dbs in > one db.py model or two distinct model files? I think the latter.. >

[web2py:17159] Re: Error connecting to Mysql DB !

2009-02-28 Thread mdipierro
Which action cases this? On Feb 28, 10:37 am, Yannick wrote: > Hello mate, > Did someone already had this error message below before ? I'm using > MySQL server but with Sqlite I don't have this error everything seems > to be alright... > > Error traceback > > Traceback (most recent call last): >

[web2py:17160] Re: Does DAL support IN operator? How?

2009-02-28 Thread mdipierro
s=(1,2,3) db(db.table.field.belongs(s)).select() or s=db(db.othertable.otherfield=somevalue)._select(db.othertable.field) db(db.table.field.belongs(s)).select() Massimo On Feb 28, 10:54 am, pedro wrote: > That is m question. --~--~-~--~~~---~--~~ You received

[web2py:17161] Re: Critical point in web2py

2009-02-28 Thread Skylar Saveland
https://mdp.cti.depaul.edu/wiki/default/page/d85bc799-7fdc-4d00-ada4-460ebe49d222 I made a page for people to comment on improvements that need to be made to the wiki itself. I like it. Still moving through to the end of this thread but I think using the web2py wiki for the organic building of

[web2py:17162] Re: Critical point in web2py

2009-02-28 Thread mdipierro
That is what Yarko suggested to. We'll proceed that way. I will automatically transfer content from AlterEgo to the new wiki asap. Massimo On Feb 28, 11:41 am, Skylar Saveland wrote: > https://mdp.cti.depaul.edu/wiki/default/page/d85bc799-7fdc-4d00-ada4-... > > I made a page for people to comm

[web2py:17163] Re: Ubuntu Apache server setup problem

2009-02-28 Thread Yarko Tymciurak
on webfaction, you should be using the port webfaction assigned to your wsgi server for the wsgi setup... On Sat, Feb 28, 2009 at 9:55 AM, Richard Colby wrote: > Yes, that's it. Thank you! > > > On Sat, Feb 28, 2009 at 8:12 AM, mdipierro wrote: > >> >> Is this a shared host? >> I think the probl

[web2py:17164] Re: two dbs in one model or two model files

2009-02-28 Thread Yarko Tymciurak
On Sat, Feb 28, 2009 at 2:22 PM, mdipierro wrote: > > I would probably do that but this an aesthetic issue > > On Feb 28, 9:27 am, carlo wrote: > > My input data are on db2/400 and my output goes into MySql. What is > > recommended to get two db connections/models in parallel? Two dbs in > > one

[web2py:17165] Re: Critical point in web2py

2009-02-28 Thread Yarko Tymciurak
On Sat, Feb 28, 2009 at 1:54 AM, Joe Barnhart wrote: > > One feature I do not see is the generation of stubs for new pages and > the automatic links to existing pages. This is kind of an important > aspect of a wiki -- the extensive cross-linking of ideas and content. I agree 100%, Joe - In fac

[web2py:17166] Re: Critical point in web2py

2009-02-28 Thread Yarko Tymciurak
On Sat, Feb 28, 2009 at 10:47 AM, Paul Eden wrote: > I do like the idea of the Sphinx site as well. > - it looks great and is easy to setup. > - It is not hard to update, just check out the source and update the reST > source. > > After reading what Yarko said, in my mind, the only missing featur

[web2py:17167] Re: Critical point in web2py

2009-02-28 Thread Yarko Tymciurak
On Sat, Feb 28, 2009 at 2:31 PM, mdipierro wrote: > > That is what Yarko suggested to. We'll proceed that way. > > I will automatically transfer content from AlterEgo to the new wiki > asap. > > Massimo Great - Thanks Massimo; I'll try generating a test sphinx from the alterego asap also... th

[web2py:17168] Re: Critical point in web2py

2009-02-28 Thread Tokyo Dan
Goo point and you are 100% correct. The lack of documentation and examples is the very (and only) reason I chose Django over web2py. And I just hate reading source code. Especially if I didn't write it. On Feb 24, 6:15 pm, Joe Barnhart wrote: > It seems to me that we have reached a critical poi

[web2py:17169] web2py wiki notes & comments

2009-02-28 Thread Yarko Tymciurak
- on history page, can we have following "selections' for each revision: - [diff] (currently there; - would be nice to do side-by-side, I bet that using a bzr or git or hg interface would be better than generating this ourselves) - [view this] to see this revis

[web2py:17170] Re: Error connecting to Mysql DB !

2009-02-28 Thread Yannick
Hello Massimo, Basically I'm just trying to access the login page through a link like this: http://127.0.0.1:8000/AppName/default/login Cheers, On Feb 28, 3:23 pm, mdipierro wrote: > Which action cases this? > > On Feb 28, 10:37 am, Yannick wrote: > > > Hello mate, > > Did someone already had

[web2py:17171] Re: FORM db.update_record clears nicEdit panel

2009-02-28 Thread murray3
Massimo, that fixes 50% of problem, I can now edit in nicedit: do text, add images etc. When I submit to db, the content stays visible in the textarea, you then go to the main view to show the content without nicedit and it looks just as you want. cool... Then when you go to the edit page again,

[web2py:17173] Custom Template Tags

2009-02-28 Thread Greg Fuller
How can custom template tags be implemented in Web2py. There are times when it is good to let the template designer "pull" information into a template without having the model anticipate everything in advance the template might need. I've used this pattern a lot with php-smarty, django, expressi

[web2py:17172] Custom Template Tags

2009-02-28 Thread Greg Fuller
How can custom template tags be implemented in Web2py. There are times when it is good to let the template designer "pull" information into a template without having the model anticipate everything in advance the template might need. I've used this pattern a lot with php-smarty, django, expressi

[web2py:17174] Re: Does DAL support IN operator? How?

2009-02-28 Thread Pedro
thank you massimo, this was not documented in the book. I added it to the new test wiki. On Feb 28, 9:29 pm, mdipierro wrote: > s=(1,2,3) > db(db.table.field.belongs(s)).select() > > or > > s=db(db.othertable.otherfield=somevalue)._select(db.othertable.field) > db(db.table.field.belongs(s)).sele

[web2py:17175] Re: Custom Template Tags

2009-02-28 Thread Greg Fuller
Oh my, I see you can put any python code in a template. I'm not used to this flexibility (except for a little time with mako). Now I just need to figure out scoping for the external functions I want to call. On Feb 28, 6:26 pm, Greg Fuller wrote: > How can custom template tags be implemented in

[web2py:17176] Can SQLFORM create two records at the same time?

2009-02-28 Thread weheh
I have 2 tables that are linked: db.define_table('x',SQLField('name','string')) db.define_table('y',SQLField('x',db.x),SQLField('name','string')) I want my create() controller to display both tables, x and y, on the same form and makes sure that y correctly links to x. Can SQLFORM implement th

[web2py:17177] Re: web2py wiki notes & comments

2009-02-28 Thread mdipierro
OK. ASAP On Feb 28, 4:51 pm, Yarko Tymciurak wrote: >    - on history page, can we have following "selections' for each revision: >       - [diff] (currently there; >          - would be nice to do side-by-side, I bet that using a bzr or git >          or hg interface would be better than genera

[web2py:17178] Re: Error connecting to Mysql DB !

2009-02-28 Thread mdipierro
Please email me your app and I'll take a look On Feb 28, 5:22 pm, Yannick wrote: > Hello Massimo, > Basically I'm just trying to access the login page through a link like > this: > > http://127.0.0.1:8000/AppName/default/login > > Cheers, > > On Feb 28, 3:23 pm, mdipierro wrote: > > > Which act

[web2py:17179] Re: FORM db.update_record clears nicEdit panel

2009-02-28 Thread mdipierro
Please send me you app and instructions to reproduce the problem. On Feb 28, 6:17 pm, murray3 wrote: > Massimo, > that fixes 50% of problem, I can now edit in nicedit: do text, add > images etc. > When I submit to db, the content stays visible in the textarea, you > then go to the > main view to

[web2py:17180] Re: Does DAL support IN operator? How?

2009-02-28 Thread mdipierro
Thank you Lots of functions of the DAL are not in the book because implemented in the last two months. You can find examples of new functionalities in http://mdp.cti.depaul.edu/examples/default/dal On Feb 28, 7:18 pm, Pedro wrote: > thank you massimo, this was not documented in the book. I adde

[web2py:17181] Re: Custom Template Tags

2009-02-28 Thread mdipierro
Mind that you can also define functions in templates. For example {{def link(url):}}{{=url}}{{return}} you can put your funcitons in the template that needs them or in a new template (say aux.html) and include it {{include 'aux.html'}} You would then use it with {{link('http://www.web2py.com'}}

[web2py:17182] Re: Can SQLFORM create two records at the same time?

2009-02-28 Thread mdipierro
You cannnot with SQLFORM, You can with FORM or with form_factory. On Feb 28, 9:58 pm, weheh wrote: > I have 2 tables that are linked: > > db.define_table('x',SQLField('name','string')) > > db.define_table('y',SQLField('x',db.x),SQLField('name','string')) > > I want my create() controller to dis

[web2py:17183] Re: Custom Template Tags

2009-02-28 Thread Greg Fuller
Nice; thanks! On Feb 28, 10:44 pm, mdipierro wrote: > Mind that you can also define functions in templates. For example > > {{def link(url):}}{{=url}}{{return}} > > you can put your funcitons in the template that needs them or in a new > template (say aux.html) and include it {{include 'aux.html

[web2py:17184] Re: Can SQLFORM create two records at the same time?

2009-02-28 Thread weheh
Actually, it seems like the correct question is can SQLFORM join 2 or more tables with data. My intuition tells me that it might be possible to enhance SQLFORM to do this trick with the right syntax, but that being said, I wouldn't have a clue how to do it. I haven't had a chance to look at the gl

[web2py:17185] Re: Really irritating loss of code

2009-02-28 Thread Francisco Gama
Session Keeper for Mozilla Firefox: https://addons.mozilla.org/en-US/firefox/addon/2643 (not tested) On Feb 16, 1:13 am, Joe Barnhart wrote: > This keeps happening to me > > I'll be working on a controller, taking my time and getting it just > right.  When I hit the save button, I discover

[web2py:17186] Alternate View

2009-02-28 Thread Greg Fuller
How can I render a different view than the view with the matching controller name? def index(): if condition: # use default/index.html return dict(message=T('Hello World')) else: # use default/alternate.html ??? return dict(message=T('Hello World')) Thanks,

[web2py:17188] Re: Documentation - Scaffold application

2009-02-28 Thread Greg Fuller
I installed it and gave it a quick look. Nice. This could be a really productive way to start apps. Thanks for sharing this. What needs to be done still? --greg-- On Mar 1, 1:32 am, Alexandre Miguel de Andrade Souza wrote: > To easy of use and help in documentation, I start a kind of scaffol

[web2py:17189] Need help with model validator clause

2009-02-28 Thread weheh
I have a cross-reference table "xref" that has 2 fields, "a" and "b", that both link to another table "x". "a" requires=IS_IN_DB(db,x.id). "b" also requires that it IS_IN_DB(db,x.id), except that but "b" can not equal "a". What's the syntax to do this in the model? --~--~-~--~~

[web2py:17190] Re: Alternate View

2009-02-28 Thread weheh
I suppose you could always redirect. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send emai