Unfortunately I'm no python coder. :P
in Reddish, no<> pagination too. and one user can
vote more than once, needs to be fixed.
Massimo (below) says latest Reddish version is the one on
http://web2py.appspot.com/
and he lost that code
There must be a way to read that code from appengin
works with the following in controller:
def edit():
try: thispage=db(db.page.id==request.args[0]).select()
[0]
except: redirect(URL(r=request,f='index'))
form=FORM(DIV(TEXTAREA(_style="width: 98%;",
_name="wikibody1",
_id="wikibody1",_value=thispage.
hi Massimo!
I haven't tried, but this http://enter.appspot.com/ claims you can
retrieve files from appengine!! please get that latest Reddish code
you lost for us :)
Efe
On Feb 27, 12:17 pm, mdipierro wrote:
> I had a hd crash some time and I lost the image that I uploaded to the
> app engine
Might be very usefull.
I get this error:
FBML Error (line 88): illegal tag "body" under "fb:canvas"
Using /facebook/default/index
controller/default:
from applications.facebook.modules.facebook import *
facebook_settings.FACEBOOK_API_KEY = 'da74af75965cb6cxxx'
facebook_settings.FACEBO
There is a 4th w/web2py only thing here - platform
independent asynchronously executed tasks (=cron and
postconnectiontasks). Arguably not fully mature yet in all usage
scenarios, but AFAIK it's a web2py exclusive, best others can do is a
blocking soft-cron or external invocation.
On Feb 27, 1:33
If you agree it would be good to think about structure before we start
(e.g even http://mdp.cti.depaul.edu/examples/default/docs is a bit
overwhelming) I made a "documentation organisation" page on the test
wiki. Please edit/delete what I put there already and / or comment.
https://mdp.cti.depaul
I've been mostly lurking, but would like to offer a few comments...
reST to HTML is very straightforward, the docutils pacage has an
rst2Html script to do exactly that (and it is just a few lines of
code). Sphinx, as Yarko has pointed out, is a tool chain using reST
that adds better facilities f
I use to use IS_EMPTY() to validate checkboxes a while back, is it
broken? Nothing happesn and the form is accpted if the checkbox is
checked or not
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framewor
You've made some very good points.
Would the following make sense?
Use the wiki for the initial gathering of doc pages, then after the
first sphinx-based documentation is produced, just clean the wiki of
those pages. After that, just use the wiki for contributed recipes
and other pages, some
That looks great! It's too bad my company's training budget is already
exhausted for this year (mostly due to pycon ;-) ).
Paul
On Thu, Feb 26, 2009 at 9:09 PM, mdipierro wrote:
>
> http://ipdweb.cs.depaul.edu/wdp/Prog_WDP.htm
> >
>
--
Best Regards,
Paul Eden
"...and a little looking out
On Fri, Feb 27, 2009 at 5:53 AM, chris p wrote:
>
> I think if you treat the documentation as a built deliverable with
> reST source files, and handle contributions, revisions, etc through
> source control. This makes it dead-simple to couple doc revisions with
> the web2py source itself, somethi
> Use the wiki for the initial gathering of doc pages, then after the
> first sphinx-based documentation is produced, just clean the wiki of
> those pages. After that, just use the wiki for contributed recipes
> and other pages, some of which are selectively migrated to sphinx.
> Keep the change
for your second problem
> else:
> response.flash="form is invalid!"
should be
> elif form.errors:
> response.flash="form is invalid!"
About your first problem:
replace
_value=thispage.body
with
_value=XML(thipa
That's not doing much. It is more or less as if I were running a
readonly web2py admin on appspot. I would be able to read my own file.
The problem is, I have not uploaded anything to do it.
Massimo
On Feb 27, 2:30 am, Efe wrote:
> hi Massimo!
>
> I haven't tried, but thishttp://enter.appspot.c
Make sure you extend a layout that says ONLY
{{include}}
Massimo
On Feb 27, 4:14 am, notabene wrote:
> Might be very usefull.
>
> I get this error:
>
> FBML Error (line 88): illegal tag "body" under "fb:canvas"
>
> Using /facebook/default/index
>
> controller/default:
> from applications.faceb
I do not know... I did not write IS_EMPTY(), can you show us the
source code?
why would you such a thing anyway?
On Feb 27, 8:22 am, voltron wrote:
> I use to use IS_EMPTY() to validate checkboxes a while back, is it
> broken? Nothing happesn and the form is accpted if the checkbox is
> checked
You have to: "--port 8003 -a password". Or recycle password. The "-a" option
is vital.
--
Kuba
On Fri, Feb 27, 2009 at 6:21 AM, Jim wrote:
>
> Hello,
>
> Thanks for the response. I'm running Ubuntu 9.04.
>
> It looks like the server ignores the --port=8001 but I can enter it by
> hand in t
Ok, how would I validate if a checkbox is checked in a form?
Thanks
--~--~-~--~~~---~--~~
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 unsubs
the checkbox is in a fairly large form, it suggests that users should
accept the terms and coditions of a contract. IS_EMPTY() used to work
On Feb 27, 4:42 pm, Voltron wrote:
> Ok, how would I validate if a checkbox is checked in a form?
>
> Thanks
--~--~-~--~~~---~-
Ok, more tests.
If I change sql.py around line 790
# self._execute = lambda *a, **b: self._cursor.execute(*a,
**b)
self._execute = lambda *a: self._cursor.execute(a[:-1])
I get
Traceback (most recent call last):
File "C:\web2py\trunk\gluon\restricted.py", line 98, in re
I use Your facebook application:
views/layout.html:
{{if response.flash:}}{{=response.flash}}{{pass}}
{{include}}
powered by http://www.web2py.com";>web2py!
On 27 Feb., 16:32, mdipierro wrote:
> Make sure you extend a layout that says ONLY
>
> {{include}}
>
> Massimo
>
> On Feb 27, 4:14 a
Can you show me the code of IS_EMPTY ? To valicate acceptance of a
contract you need IS_NOT_EMPTY? Am I wrong?
On Feb 27, 9:50 am, Voltron wrote:
> the checkbox is in a fairly large form, it suggests that users should
> accept the terms and coditions of a contract. IS_EMPTY() used to work
>
> O
I guess the problem is that the application has a bug and that returns
an error ticket which facebook ineterprets as invalid format. use
admin and browse for recent errors.
On Feb 27, 10:29 am, notabene wrote:
> I use Your facebook application:
>
> views/layout.html:
>
>
> {{if response.flash:}
Sorry my fault
self._execute = lambda a: self._cursor.execute(a[:-1])
not
self._execute = lambda *a: self._cursor.execute(a[:-1])
On Feb 27, 10:06 am, DenesL wrote:
> Ok, more tests.
>
> If I change sql.py around line 790
> # self._execute = lambda *a, **b: self._cursor.execute(*a
On Feb 27, 10:42 am, Voltron wrote:
> Ok, how would I validate if a checkbox is checked in a form?
How about:
db.table.checkbox_field.requires=IS_IN_SET(['on'})
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2
On Feb 27, 11:36 am, mdipierro wrote:
> Sorry my fault
>
> self._execute = lambda a: self._cursor.execute(a[:-1])
>
> not
>
> self._execute = lambda *a: self._cursor.execute(a[:-1])
Traceback (most recent call last):
File "C:\web2py\trunk\gluon\restricted.py", line 98, in restricted
exec
Just finished:
Using web2py with IIS, MSSQL and Helicon ISAP_Rewrite 3 on Windows
Server 2003/2008
=> http://mdp.cti.depaul.edu/AlterEgo/default/show/207
_p_
On 26 Feb., 22:09, mdipierro wrote:
> ... and you kept this powerful secret to yourself until now? Just
> kidding... could you post som
Thanks!
On Fri, Feb 27, 2009 at 10:19 AM, phecker wrote:
>
> Just finished:
>
> Using web2py with IIS, MSSQL and Helicon ISAP_Rewrite 3 on Windows
> Server 2003/2008
>
> => http://mdp.cti.depaul.edu/AlterEgo/default/show/207
>
> _p_
>
> On 26 Feb., 22:09, mdipierro wrote:
> > ... and you kept t
db.table.checkbox_field.requires=IS_IN_SET(['on'])
yes
On Feb 27, 10:44 am, DenesL wrote:
> On Feb 27, 10:42 am, Voltron wrote:
>
> > Ok, how would I validate if a checkbox is checked in a form?
>
> How about:
>
> db.table.checkbox_field.requires=IS_IN_SET(['on'})
--~--~-~--~~
I can only confirm your "huh"!
Can you show me a typical console session? Are missing some
initialization statement?
On Feb 27, 11:02 am, DenesL wrote:
> On Feb 27, 11:36 am, mdipierro wrote:
>
> > Sorry my fault
>
> > self._execute = lambda a: self._cursor.execute(a[:-1])
>
> > not
>
> > self
I haven't fully thought about this yet, but in general -
Wiki == freeform idea collection; I agree that some structure to begin and
guide is good;
Good place for transient information;
I would think once content is in a sphinx doc (and I agree completely w/
source control - much like what the Py
Is this something there should be a message about? Would some feedback help
from the startup?
On Fri, Feb 27, 2009 at 4:34 AM, Kuba Kucharski wrote:
> You have to: "--port 8003 -a password". Or recycle password. The "-a"
> option is vital.
>
> --
> Kuba
>
>
>
>
> On Fri, Feb 27, 2009 at 6:21 AM,
On Fri, Feb 27, 2009 at 3:29 PM, Greg Fuller wrote:
>
> You've made some very good points.
>
> Would the following make sense?
>
> Use the wiki for the initial gathering of doc pages, then after the
> first sphinx-based documentation is produced, just clean the wiki of
> those pages. After tha
I often post this - perhaps time again: here is a handly table of reserved
words for Postgres, as well as the various SQL standards - you might find
this a useful guide (it's not just for Postgres):
http://www.postgresql.org/docs/8.3/static/sql-keywords-appendix.html
On Fri, Feb 27, 2009 at 12:03
+1 I like these ideas.
One thing I would add.
If we do have a wiki and sphinx in source control then we should have one
place where users can search through *both* places.
That way they don't have to look through one and then look through the other
to find answers.
Paul
On Fri, Feb 27, 2009 a
>From the server job log (edited):
Message ID . . . . . . : SQL7008 Severity . . . . . . . :
30
Message . . . . : PERSON in QGPL not valid for
operation.
Cause . . . . . : The reason code is 3. Reason codes and their
meanings
are:
3 -- PERSON not journaled, or no authority to t
Massimo, which setting would you recommend in the ODBC DSN?
Commit modes
These are default commit modes that will be used if the application
does not specifically set them.
Commit immediate (*NONE)
Specifies that commitment control is not used. COMMIT and ROLLBACK
statements are not allowed. U
You can use anything in AlterEgo and you can use examples from the
book.
If you want to use more than examples from the book please email me
personally.
Massimo
On Feb 27, 12:13 pm, Markus Gritsch wrote:
> On Fri, Feb 27, 2009 at 3:29 PM, Greg Fuller wrote:
>
> > You've made some very good po
This
https://mdp.cti.depaul.edu/wiki
now uses reST.
How can we integrate it with Sphinx? Should we? Or should we just use
bzr?
Masssimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
Probably read committed.
On Feb 27, 2:01 pm, DenesL wrote:
> Massimo, which setting would you recommend in the ODBC DSN?
>
> Commit modes
>
> These are default commit modes that will be used if the application
> does not specifically set them.
>
> Commit immediate (*NONE)
>
> Specifies that comm
Thanks Massimo,
I did try using _value=XML(thipage.body,sanitize=True) previouslyand
although it saves the value in correct format, when the input button
clicked / activated the nicedit textarea clears?
If you click it again the updated record data shows but is a mixture
of the correct format
d
apologize, I meant IS_NOT_RMPTY()
On Feb 27, 6:31 pm, mdipierro wrote:
> db.table.checkbox_field.requires=IS_IN_SET(['on'])
>
> yes
>
> On Feb 27, 10:44 am, DenesL wrote:
>
> > On Feb 27, 10:42 am, Voltron wrote:
>
> > > Ok, how would I validate if a checkbox is checked in a form?
>
> > How a
Executive summary:
1. web2py needs to focus on appealing to newbies As we get more
experienced, we hopefully can
make contributions to make web2py better and better. If
I'm in charge of maintaining a site
that's already written, it's unlikely that I'll want to
throw out PH
Forgot to mention, I used f...@galleria.org for the inital email
address and foto for the password.
(the email is fake)
or you can just register and add your own of course.
-wj
On Feb 27, 1:58 pm, Wes James wrote:
> T3 Foto Galleria
>
> Photo Gallery built on T3 (plus some mods)
>
> 1. When a
On Fri, Feb 27, 2009 at 9:56 PM, Jim wrote:
>
> 2. web2py really needs to work without the application name - /
> default/index would be fine for now
> with a goal of having / as "home".
> www.mydomain.com/myapp/default/index
> is huge and is
> bad from an SEO standpoint
I just noticed the title field should probably be:
db.Field('title', requires=[IS_NOT_EMPTY()]),
-wj
On Fri, Feb 27, 2009 at 2:08 PM, compte...@gmail.com
wrote:
>
> Forgot to mention, I used f...@galleria.org for the inital email
> address and foto for the password.
>
> (the email is fake)
>
>
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
made.
It is possible that revision 1.55 broke IS_NOT_EMPTY for checkboxes
Hi Jim,
you raise many issues and I am not sure I am answering them all.
about the path in URL you have four ways to change that:
1) call your app init
2) create an empty app init that redirects to your app
3) rename and edit routes.example.py as routes.py and remap URLs (like
Django does)
4) us
thanks.
Massimo
On Feb 27, 2:58 pm, Wes James wrote:
> T3 Foto Galleria
>
> Photo Gallery built on T3 (plus some mods)
>
> 1. When a failed login occurs you get the username back with the
> password field active
> 2. itemize modified to display 4x3 grid of images - includes new
> navigation and
Hi,
any plans to implement the 'prefix' argument mentioned below? It
could be used to prevent from accidentally using the same tables by
different applications on GAE?
Markus
On 7 Feb., 23:56, mdipierro wrote:
> This is an un-necessary complication.
>
> I think all we need (eventually) is
>
>
Thanks, problem solved.The steps take for vista since vista showed
access denied when I tried to run install, (1) create a short cut of
the command line prompt,i.e. C>, (2) high light it, then right click
on it, (3) select run as admin (4) run install, start and stop-
it works
On Feb 26,
UAC, it'll getcha every time!
dbb wrote:
> Thanks, problem solved.The steps take for vista since vista showed
> access denied when I tried to run install, (1) create a short cut of
> the command line prompt,i.e. C>, (2) high light it, then right click
> on it, (3) select run as admin (4) run inst
That's fantastic news about the different ways. I've been trying
routes.py and it wasn't working for me. I noted your suggestion that
it not be used in a production environment. And I'm pretty sure that
GAE doesn't allow for Apache-style rewriting. But I will definitely
try #1.
With GAE allo
Massimo, how would you feel about extending routes to take into
account domains as well ? Basically, with routes.py you can do away
with the application name only if you use one application, but it
would be nice to be able to use a single web2py install for multiple
apps.
On Feb 27, 10:29 pm, mdi
unfortunately my server is even older. I had exactly the same error
with my insert (my select was ok) but I thought the fault was the
table was not journaled (it is not by default) and you can not update
tables not journaled.
Why do you think this is a bug? Did you try to journal your table and
s
On Feb 27, 5:22 pm, carlo wrote:
> Did you try to journal your table and see if you still have the 7008 error?
working on it...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post
On Fri, Feb 27, 2009 at 1:31 PM, Paul Eden wrote:
> +1 I like these ideas.
>
> One thing I would add.
>
> If we do have a wiki and sphinx in source control then we should have one
> place where users can search through *both* places.
>
> That way they don't have to look through one and then look
After pycon. ;-)
On Feb 27, 4:04 pm, Markus Gritsch wrote:
> Hi,
>
> any plans to implement the 'prefix' argument mentioned below? It
> could be used to prevent from accidentally using the same tables by
> different applications on GAE?
>
> Markus
>
> On 7 Feb., 23:56, mdipierro wrote:
>
> > T
can you propose a syntax to do that is backward compatible?
If we agree on that it should be easy to patch it.
On Feb 27, 4:19 pm, AchipA wrote:
> Massimo, how would you feel about extending routes to take into
> account domains as well ? Basically, with routes.py you can do away
> with the app
I do not like the idea of things moving out of the wiki and never
coming back. Things will always need small updates and that it
critical.
We can start with that but then we need to build a web interface
directly to the sphinx docs.
Massimo
On Feb 27, 6:36 pm, Yarko Tymciurak wrote:
> On Fri,
I think that would work, but I was wondering if it might be easier to just
have some type of google custom search that included both the sphinx site
and the wiki as sources.
Is that feasible? desired?
Paul
On Fri, Feb 27, 2009 at 5:36 PM, Yarko Tymciurak wrote:
>
> Having said that - Massimo c
Well, two simple ideas to begin with:
a) extend the tuples with a third parameter which would be the domain
(also regex), use an exception to make it backwards compatible.
b) introduce a routes_domain = { 'mydomain.com' : (routes_in,
routes_out, routes_onerror) } style hash and use the global/c
Sphinx is cool, but looking at the new wiki, I think it is pretty far
already (now with reST, revisions, etc). Adding export to latex or pdf
would be relatively simple to do from reST sources since docutils already
converts from reST to these formats.
We definitely need a wiki (or some other type
Massimo is there really a need for "restore" button in "ajax" mode editing
or i should just hide it?
As editor (Editarea) is perfectly capable of "reverting" or restoring last
good state with simple clicking on button undo/redo.
Current code is usefull and there should be no visible bugs :)
Boris
Nice to see some enthusiasm and attitude towards solid documentation.
I was one of those around when the current wiki was put up. The fact
that it was a bit buggy did interfere with its function. Also the fact
that it has a different look and feel from what most users are used
to, and some lack of
What might cause the following error message to be displayed:
InternalError: current transaction is aborted, commands ignored until
end of transaction block
The two files involved are my default.py controller and the sql.py
file in gluon. I am at a lost because everything had been previously
wor
I agree with Massimo. Wiki concept is proven and everyone understands
howto update (and navigate) wiki content. Small updates "made easy" is
critical.
Keep it simple, keep the docs in a central wiki that is put up onto
appengine (so we all have fast access), and that wiki software itself
will imp
I'll have to apologize, I didn't realize this discussion had 3 pages
and therefore missed the last two.
Looks like we're going with a homegrown wiki. Not necessarly my first
choice, but cool indeed.
Here's a couple of things I use regularly in other wikis that I kind
of miss in web2py wiki:
-a pag
I could not start the file journaling in either system.
Something always fails, no matter how I change the setup.
Grrr...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this g
This is a database error, not a web2py error.
Do you get it all the time after migration? Did you get it once?
Which database? If it is portgresql or myssql, did you try restarting
the database?
On Feb 27, 9:14 pm, morningovermidnight
wrote:
> What might cause the following error message to be d
and how did you reload data into the db? if you used the shell,
did you db.commit()? If not, is the shell still open?
On Feb 27, 10:48 pm, mdipierro wrote:
> This is a database error, not a web2py error.
> Do you get it all the time after migration? Did you get it once?
> Which database? If
What about some change in gluon/widget.py?
224a225,228
>
> (options, args) = console()
> port_number=int(options.port)
>
232c236
< self.port_number.insert(Tkinter.END, '8000')
> self.port_number.insert(Tkinter.END, port_number)
My solution is probably wrong but whe
ls -ald /usr/bin/python
lrwxrwxrwx 1 root root 9 2009-02-27 11:25 /usr/bin/python -> python2.6
Noticed this:
:13: DeprecationWarning: the md5 module is deprecated; use
hashlib instead
9.04 should be released in about 2 months, meaning that 2.6 will then
be standard on Ubuntu.
--~--~-
Pedro,
the current web2py wiki has
-a page tree
-a public link to revision history and diffs (*)
-recent changes page and rss will be added soon.
(*) is not quite public. requires login and membership in the
developer. Almost anybody who asks will get it.
Massimo
On Feb 27, 9:59 pm, Pedro wr
I do not think web2py 1.56 is using md5 if hashlib is present.
web2py should also run in Python 2.6 although people have reported one
problem that seems to be due to a bug in the Python cgi module.
Try use it and let us know if you encouter any problem.
Massimo
On Feb 27, 10:52 pm, Jim wrote:
Fixed, more or less as you suggested (in trunk)
Massimo
On Feb 27, 7:53 pm, Kuba Kucharski wrote:
> What about some change in gluon/widget.py?
>
> 224a225,228
>
> > (options, args) = console()
> > port_number=int(options.port)
>
> 232c236
> < self.port_number.insert(Tkin
Thanks, Yarko, I'll check it out. I'm now certain that at least some
of my problems has been from using an older version of web2py. I'm now
up to date, but this is the 2nd time that's happened to me in the
couple weeks, which is about how long I've been learning web2py.
I'm still running into tro
Let's say I have
db.define_table('test',SQLField('a','integer'))
How do I get the id of the last record with field 'a' that I inserted
into the db?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framewo
You are passing a wrong parameter to auth somwhere (perhaps the
constructor). Please post your db.py
On Feb 27, 11:21 pm, weheh wrote:
> Thanks, Yarko, I'll check it out. I'm now certain that at least some
> of my problems has been from using an older version of web2py. I'm now
> up to date, but
id=db.test.insert(a=3)
or uring forms
form=SQLFORM(db.test)
if form.accepts(request.vars):
response.flash='last id is %s' % form.vars.id
Massimo
On Feb 27, 11:42 pm, weheh wrote:
> Let's say I have
>
> db.define_table('test',SQLField('a','integer'))
>
> How do I get the id of the last reco
On Fri, Feb 27, 2009 at 6:48 PM, mdipierro wrote:
>
> I do not like the idea of things moving out of the wiki and never
> coming back. Things will always need small updates and that it
> critical.
Small updates can happen in Wiki; when stable, they can happen in Sphinx I
think this is no probl
db.define_table('x',SQLField('name','string'))
db.define_table('y',SQLField('x',db.x),SQLField('name','string'))
I want a create() controller that that displays tables x and y on the
same form and makes sure that y correctly links to x. Can SQLFORM do
the job, or do I have to resort to FORMs and
Got it! OK, now I see it in the doc.
--~--~-~--~~~---~--~~
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
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.
Yarko -- the advantage of a wiki is that _anyone_ may contribute to
it. Yes, it lacks s
84 matches
Mail list logo