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
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
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
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
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
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 "
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:
>
>
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
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
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
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
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
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:
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
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_
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
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
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
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
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
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..
>
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):
>
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
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
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
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
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
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
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
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
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
- 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
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
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,
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
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
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
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
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
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
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
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
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
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'}}
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
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
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
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
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,
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
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?
--~--~-~--~~
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
52 matches
Mail list logo