Kind of a shame only two apps entered.
Being a bit of a newbie to web development (coming from database and
basic native apps programming) I was hoping to see what people have
come up with to get an idea of some possibilities for web apps.
Hope we could do something like this again. Maybe I'll su
never thought of opening the same page, yeah it don't work with me
too. Gives me this error
InvalidURLError: App cannot fetch the same URL as the one used for the
request.
I probably should check for that too.
Also the web2py I'm using stores the tickets to datastore, I wanted to
turn that off
but
It fails too, saying a ticket is generated, when I point it to
http://feedcreator.appspot.com/ :) In case it "works for you", you
can take a look in the tickets (I am not sure tickets are saved on GAE
though).
Nice idea indeed.
As to TAG, I agree with you that TAG does not support malformed htm
I just tried it, and saved the feed, worked for me.
I just checked the logs, if you don't put http:// gives me a no file
found error
Maybe I should check for that to give a proper error message or just
automatically prepend it.
On Aug 6, 7:33 pm, Thadeus Burgess wrote:
> It fails when I point it
It fails when I point it to my website. thadeusb.com.
Cool concept though.
--
Thadeus
On Fri, Aug 6, 2010 at 8:26 PM, Lasiaf wrote:
> I used urllib to get html stuff, then used gluon.html TAG for the
> filtering jQuery style.
> Here are some of problems I encountered while using the TAG fro
I used urllib to get html stuff, then used gluon.html TAG for the
filtering jQuery style.
Here are some of problems I encountered while using the TAG from
though:
1. I needed to reencode the string to utf-8 cause it was throwing
errors if its not proper utf8 - maybe this should be automated?
2. I a
If I understand, he wants to save session values, even the user closes the
browser and returns after.
if you set e.g one week to the cookie time limit, this will keep the
reference to the session ID, but I dont think this will automaticaly keep
the session values. ( what if the server restarts?)
I haven't used this framework, but it seems very complete and even has
a visual composer for forms. They've placed some recent tutorials for
Python (Jython) up here: http://docs.zkoss.org/wiki/Python_With_ZK
Still not very extensive, but interesting.
Mike
You just have to set a time limit to your session/cookie, like a week, month
or year.
I'm sure massimo answer how to set a diferent time limit to a cookie before.
2010/8/5 Cody
> Hello,
>
> I just started using web2py this summer to create a website.
>
> Currently, I am having an issue with
The problem that Session variables have to overcome is that the HTTP
protocol that you use to browse the web is stateless. Each request for a
page is completely independant of earlier requests, so if you want to
"remember" the variables you have to store that information somewhere. This
rememberin
On Fri, Aug 6, 2010 at 6:24 PM, mdipierro wrote:
> My mistake. Not
> form = SQLFORM(db.sugerencias)
> db.sugerencias.texto.widget=lambda
> field,value:SQLFORM.widgets.TextWidget.widget(field,value,cols="35"
> rows="8")
> but
> db.sugerencias.texto.widget=lambda
> field,value:SQLFORM.widget
+1
How does it work?
On Aug 6, 2:46 pm, Lasiaf wrote:
> Hi All,
>
> This is my first web2py application.http://feedcreator.appspot.com
>
> What it does is create rss feeds for sites that don't have rss feeds.
>
> I did this for a whole day, web2py is so easy to learn I did this
> without knowing
If a field is unchecked then it is not submitted in request.vars (that
is how html forms work). You can use
request.vars.get(field,False)
or
form.vars[field]
(as Thadeus suggested)
Massimo
On Aug 6, 4:17 pm, marcelielapointe
wrote:
> Hi,
>
> I want to acces request.vars.name_of_my_field, wit
Try form.vars instead.
--
Thadeus
On Fri, Aug 6, 2010 at 4:17 PM, marcelielapointe
wrote:
> Hi,
>
> I want to acces request.vars.name_of_my_field, with
> request.vars['name_of_my_field'] with boolean field but if the field
> is unchecked (false) I got a KeyError like if field was not existin
My mistake. Not
form = SQLFORM(db.sugerencias)
db.sugerencias.texto.widget=lambda
field,value:SQLFORM.widgets.TextWidget.widget(field,value,cols="35"
rows="8")
but
db.sugerencias.texto.widget=lambda
field,value:SQLFORM.widgets.text.widget(field,value,cols="35"
rows="8")
form = SQLF
Hi,
I want to acces request.vars.name_of_my_field, with
request.vars['name_of_my_field'] with boolean field but if the field
is unchecked (false) I got a KeyError like if field was not existing.
Here is an example controller:
def main():
list_field = ['a','b','c']
form = SQLFORM.factor
thanks.
2010/8/6 mdipierro
> Look into the render function in the gluon/template.py it can take a
> filename or a file stream or template text.
>
> On Aug 6, 1:33 pm, Alexandre Andrade wrote:
> > In the book is a example of sending email using template system.
> >
> > Someone has a example of
Hi All,
This is my first web2py application.
http://feedcreator.appspot.com
What it does is create rss feeds for sites that don't have rss feeds.
I did this for a whole day, web2py is so easy to learn I did this
without knowing much about web2py and python.
Since I finished this project, I decid
I actually just modified gluon/main.py to temporarily do what i
wanted.
So what I did was, in my dispatch.fcgi
import __builtin__
__builtin__.APP_NAME='welcome'
before importing gluon.main
then in gluon/main.py when rewrite.load() happens i check that
variable.
import __builtin__
if __builtin__.A
On Fri, Aug 6, 2010 at 4:13 PM, mdipierro wrote:
> You can put it in the model is it should apply to all form for the
> table or in the controller action that needs it.
I put it in the controller and I get a syntax error:
Traceback (most recent call last):
File "/home/sbassi/Downloads/web2py/g
Look into the render function in the gluon/template.py it can take a
filename or a file stream or template text.
On Aug 6, 1:33 pm, Alexandre Andrade wrote:
> In the book is a example of sending email using template system.
>
> Someone has a example of using it from a database field, instead of a
You can put it in the model is it should apply to all form for the
table or in the controller action that needs it.
On Aug 6, 1:29 pm, Sebastian Bassi wrote:
> On Fri, Aug 6, 2010 at 2:59 PM, mdipierro wrote:
> > StringWidget is the
> > TextWidget is the
> > the name comes from the web2py type
Crowdspring.com
Sent from my iPhone
On 06/08/2010, at 16:02, Albert Abril wrote:
> PS: you might want to hire a top-notch web designer to turn the web2py
> pages into something a bit trendier and sexier. Your web design skills
> are clearly superior to mine, but sometimes you just gotta hand i
*PS: you might want to hire a top-notch web designer to turn the web2py
pages into something a bit trendier and sexier. Your web design skills
are clearly superior to mine, but sometimes you just gotta hand it to
the pros.*
*
*
* *I agree with that.
I'm disposed to make a donation if we could
In the book is a example of sending email using template system.
Someone has a example of using it from a database field, instead of a file
on the system (views) ?
--
Atenciosamente
--
=
Alexandre Andrade
Hipercenter.com
On Fri, Aug 6, 2010 at 2:59 PM, mdipierro wrote:
> StringWidget is the
> TextWidget is the
> the name comes from the web2py type not the html tag.
thank you. Where should I put this and what to put on the view?
db.table.field.widget=lambda field,value:
SQLFORM.widgets.TextWidget.widget(field,v
Web2py is getting more impressive by the day, and it's great that the
documentation is even better now. Unfortunately, the PDF on sale at
Lulu.com is apparently still the old 2nd edition. Is there any way to
get or buy a PDF of the current draft of the 3rd edition?
The tech book industry is increa
StringWidget is the
TextWidget is the
the name comes from the web2py type not the html tag.
On Aug 6, 11:50 am, Sebastian Bassi wrote:
> On Fri, Aug 6, 2010 at 1:36 PM, mdipierro wrote:
> > db.table.field.widget=lambda field,value:
> > SQLFORM.widgets.TextWidget.widget(field,value,cols="35" r
The docs look amazing, and web2py should get many more users as a
result, nice work.
Robin
On Aug 6, 10:17 am, mdipierro wrote:
> yes, thanks to Jonathan, Thadeus, Michele, Bruno, Sriram and all those
> who are helping with revisions.
>
> Massimo
>
> On Aug 6, 10:12 am, Adi wrote:
>
>
>
> > Gre
Not another config file, just another config option. Why have the
overhead and complexity of a routes regex when you could just set it
explicitly in an existing config file? Just seems more straightforward
and user friendly to me.
On Aug 6, 12:26 pm, Albert Abril wrote:
> @mr.freeze You can do i
@mr.freeze You can do it with routes.py . Why another config file?
On Fri, Aug 6, 2010 at 6:40 PM, Phyo Arkar wrote:
> i voted this too.
>
> I just dont like the controller named default and i want it different
> on each apps.
>
> On 8/6/10, mr.freeze wrote:
> > Massimo, why not make the defaul
I like your app a few things bugging it.
- All the text are wayy too light , cannot read at all. Whiet on black
will be most assessible.
- Sometimes Tree view close after expanded
On 8/6/10, selecta wrote:
> fixed both requests :)
> now loads the tree async and the headers are readable
>
> also
On Fri, Aug 6, 2010 at 1:36 PM, mdipierro wrote:
> db.table.field.widget=lambda field,value:
> SQLFORM.widgets.TextWidget.widget(field,value,cols="35" rows="8")
>
> You can add any attribute you need
I don't see how does it realiz that is a textarea instead of input
type="text" and where should I
i voted this too.
I just dont like the controller named default and i want it different
on each apps.
On 8/6/10, mr.freeze wrote:
> Massimo, why not make the default application,controller and function
> configurable in an external file like options.py or
> parameters_.py?
>
> On Aug 6, 9:08
db.table.field.widget=lambda field,value:
SQLFORM.widgets.TextWidget.widget(field,value,cols="35" rows="8")
You can add any attribute you need
On Aug 6, 11:24 am, Sebastian Bassi wrote:
> On Fri, Aug 6, 2010 at 12:46 PM, mdipierro wrote:
> > This is correct. The issue is what is the purpose of
On Fri, Aug 6, 2010 at 12:46 PM, mdipierro wrote:
> This is correct. The issue is what is the purpose of the formname? It
> is a hidden field used to determine whether the form is being
> submitted or not. If you omit formname, web2py cannot determine
> whether the form is not submitted or it is s
This is correct. The issue is what is the purpose of the formname? It
is a hidden field used to determine whether the form is being
submitted or not. If you omit formname, web2py cannot determine
whether the form is not submitted or it is submitted with all fields
empty. It assumes the latter and a
I think this feature doesn't work as described:
" If the page contains a single form, you can set formname=None and
omit the hidden field in the view."
Source: http://www.web2py.com/book/default/chapter/07
Because if I do that (using formname=None and omit the hidden field in
the view), the form
Mind you may want to escape (depending on who can edit it)
MARMIN(text, extra={'space':lambda code: '' %
xmlescape(code)})
``50px``:space
On Aug 6, 10:22 am, Bruno Rocha wrote:
> Cool! tks
>
> replacing right now
>
> 2010/8/6 mdipierro
>
>
>
> > you can extend MARKMIN by passing extra
>
> > MA
Cool! tks
replacing right now
2010/8/6 mdipierro
> you can extend MARKMIN by passing extra
>
> MARMIN(text, extra={'space':lambda code: '' %
> code
>
> and in text
>
> ``50px``:space
>
>
>
> On Aug 6, 9:28 am, Bruno Rocha wrote:
> > In Markmin double spaces between lines or paragraphs breaks t
you can extend MARKMIN by passing extra
MARMIN(text, extra={'space':lambda code: '' %
code
and in text
``50px``:space
On Aug 6, 9:28 am, Bruno Rocha wrote:
> In Markmin double spaces between lines or paragraphs breaks the line, but
> only one break is allowed, sometimes we need more space.
>
yes, thanks to Jonathan, Thadeus, Michele, Bruno, Sriram and all those
who are helping with revisions.
Massimo
On Aug 6, 10:12 am, Adi wrote:
> Great job!
>
> On Aug 6, 5:00 pm, mdipierro wrote:
>
> > and I forgot:
>
> > TAG elements and
> > parsinghttp://web2py.com/book/default/chapter/05#Ser
On Aug 6, 2010, at 7:52 AM, Lasiaf wrote:
> cool.
> is there any date on when it will be added?
I've been promising to write a new route-rewriter for months now, and not
finding the time. Massimo has suggested an interim solution to allow
app-specific routing using the current logic which ought
Great job!
On Aug 6, 5:00 pm, mdipierro wrote:
> and I forgot:
>
> TAG elements and
> parsinghttp://web2py.com/book/default/chapter/05#Server-side-DOM-and-Parsing
>
> {{block ...}}http://web2py.com/book/default/chapter/05#Blocks-in-Views
>
> On Aug 6, 6:55 am, mdipierro wrote:
>
>
>
> > Here ar
Sorry. not yet.
On Aug 6, 9:52 am, Lasiaf wrote:
> cool.
> is there any date on when it will be added?
>
> Thanks
>
> On Aug 4, 3:41 pm, mdipierro wrote:
>
> > this is on our todo list
>
> > On Aug 4, 4:19 pm, Lasiaf wrote:
>
> > > Hi,
>
> > > I'm new to web2py and python.
> > > Here is what I
They can be even if you define them in a model but ok, you can define
them in a view but must come before the extend.
{{
response.title='My Product view'
response.meta.keywords='phones,calls,smartphone'
response.meta.description='This is a phone seller site made with
web2py'
response.meta.author='
cool.
is there any date on when it will be added?
Thanks
On Aug 4, 3:41 pm, mdipierro wrote:
> this is on our todo list
>
> On Aug 4, 4:19 pm, Lasiaf wrote:
>
>
>
> > Hi,
>
> > I'm new to web2py and python.
> > Here is what I wanna accomplish:
> > I want to haveroutes.py in each application, so
Thanks for the offer to donate to the next Web2py Application
Exhibition.
You can let me now what you plan to offer, and I'll list you and your
organization as do donor. If you wish to remain anonymous, let me
know.
As always, you can contact me via gmail
Thanks for the offer.
Mr.NetAdmin
On A
In Markmin double spaces between lines or paragraphs breaks the line, but
only one break is allowed, sometimes we need more space.
I think it's extremely necessary to use sometimes. Markdown and
wikimedia does.
I'm writing a lot and need to convert to PDF, the way I'm doing the css code
is not c
In markdown, you make a new line by ending the current line with two
or more spaces.
On Aug 6, 9:17 am, mdipierro wrote:
> On Aug 6, 8:55 am, David Marko wrote:
>
> > I have a few questions to MARKMIN.
>
> > 1. How to allow user to enter new line? Is there some way, using
> > MARKMIN, how to spe
On Aug 6, 8:55 am, David Marko wrote:
> I have a few questions to MARKMIN.
>
> 1. How to allow user to enter new line? Is there some way, using
> MARKMIN, how to specify new line ('cause common text area new lines
> are not translated to )
You do not. Use CSS for that. That is the point of usin
Massimo, why not make the default application,controller and function
configurable in an external file like options.py or
parameters_.py?
On Aug 6, 9:08 am, mdipierro wrote:
> No. But you can remap into a different controller using routes.py
>
> routes_in = [
> ('/myapp', '/myapp/non_default/
No. But you can remap into a different controller using routes.py
routes_in = [
('/myapp', '/myapp/non_default/index'),
]
On Aug 6, 9:05 am, David Marko wrote:
> Is there a way how to specifiy, which controller act as default? I
> mean specify different controller than with name 'default', which
Is there a way how to specifiy, which controller act as default? I
mean specify different controller than with name 'default', which name
is a bit strange (at least for non-english speaking countries.)
David
2010/8/6 mdipierro
> You should this in a model, before the view is executed:
>
> response.title='My Product view'
> response.meta.keywords='phones,calls,smartphone'
> response.meta.description='This is a phone seller site made with
> web2py'
> response.meta.author='me'
>
> The sitemap cannot be
I have a few questions to MARKMIN.
1. How to allow user to enter new line? Is there some way, using
MARKMIN, how to specify new line ('cause common text area new lines
are not translated to )
2. When using the 'image' MARKMIN command, is there a way how to
display the image 'inline', mean without
You should this in a model, before the view is executed:
response.title='My Product view'
response.meta.keywords='phones,calls,smartphone'
response.meta.description='This is a phone seller site made with
web2py'
response.meta.author='me'
The sitemap cannot be accomplished by a helper. It needs a
List of Best and Worst practices:
http://www.webconfs.com/15-minute-seo.php
2010/8/6 Bruno Rocha
> I believe that a simple helper, to be called in any view or controller is
> enought, imagine:
>
> view:
>
> {{extend 'layout.html'}}
>
> {{SEO(title='My Product view',
>
> keywords='phones,c
On Thu, Aug 5, 2010 at 7:12 PM, Chris S wrote:
> Using a custom form in your view should not change your controller
> any.
>
> Just use the same controller and instead of the view having:
> {{=form}}
I don't have {{=form}} in my view. Here is the view:
http://pastebin.com/npCADyQs
> It should ha
I believe that a simple helper, to be called in any view or controller is
enought, imagine:
view:
{{extend 'layout.html'}}
{{SEO(title='My Product view',
keywords='phones,calls,smartphone',
description='This is a phone seller site made with web2py',
author='me',
sitemap=[
SEO is basically done through:
page title (response.meta.title)
page keywords ( response.meta.keywords)
page description ( response.meta.description)
plus:
the robots.txt file under website root directory,
good practices for creating links and inserting images,
Semantic html markup ( I mean alway
On Thu, Aug 5, 2010 at 7:12 PM, Chris S wrote:
> It should have:
> {{=form.custom.begin}}
> // your custom stuff including submit button
> {{=form.custom.end}}
I will try it.
> don't use it or set it to something known. It might not matter, but
> why explicitly set it to none? I can't think o
I think I understood most of that already. Maybe my explanation of
what I was looking for was lacking. Essentially, I am trying to
implement the concept discussed here:
http://css-tricks.com/pointer-events-current-nav/
but in html instead of css.
On Aug 4, 3:59 am, mdipierro wrote:
> The ... c
and I forgot:
TAG elements and parsing
http://web2py.com/book/default/chapter/05#Server-side-DOM-and-Parsing
{{block ...}}
http://web2py.com/book/default/chapter/05#Blocks-in-Views
On Aug 6, 6:55 am, mdipierro wrote:
> Here are just some of the new features we added to web2py in the last
> yea
Here are just some of the new features we added to web2py in the last
year and are finally discussed in the book:
Shortcuts
http://web2py.com/book/default/chapter/06#Shortcuts
Fetching a record
http://web2py.com/book/default/chapter/06#Fetching-a-Record
Recursive Selects
http://web2py.com/book/d
Yeah, that works fine. It's so odd and frustrating...
On Aug 6, 1:25 pm, mdipierro wrote:
> I have no idea. Can you connect from a pure python shell using the
> driver API?
>
> On Aug 6, 5:55 am, Zhe Li wrote:
>
>
>
> > thanks!
> > I tried to replace localhost with 127.0.0.1, 192.168.0.16 (it's
fixed both requests :)
now loads the tree async and the headers are readable
also improved displaying of doc for objects of type "type"
On Aug 6, 9:29 am, selecta wrote:
> Yes sorry i just tested in opera 10.60 which has a very fast javascrip
> engine.
> The problem is that I expose the whole t
I have no idea. Can you connect from a pure python shell using the
driver API?
On Aug 6, 5:55 am, Zhe Li wrote:
> thanks!
> I tried to replace localhost with 127.0.0.1, 192.168.0.16 (it's
> actually ip). but it doesn't work
>
> Cheers,
> Zhe
>
> On Aug 6, 12:33 pm, mdipierro wrote:
>
> > Try
web2py does not care. I do not think there is any difference between
frameworks about this. The issue how you use them.
web2py provides response.meta that combined with the default layout
allows you to set
response.meta.keywords
response.meta.description
response.meta.author
If you have recommen
Is web2py designed for a good practices about SEO? Are some frameworks
SEO-friends and others no SEO-friends and, if this is true, are web2py
SEO-friend?
Thanks
thanks!
I tried to replace localhost with 127.0.0.1, 192.168.0.16 (it's
actually ip). but it doesn't work
Cheers,
Zhe
On Aug 6, 12:33 pm, mdipierro wrote:
> Try replace
>
> localhost
> with
> 127.0.0.1
> and with the actual IP of the machine. It may not be serving on
> localhost
>
> On Aug 6
Try replace
localhost
with
127.0.0.1
and with the actual IP of the machine. It may not be serving on
localhost
On Aug 6, 5:25 am, Zhe Li wrote:
> Hi,
>
> Thanks! This is the result from trunk.
>
> Error traceback
> Traceback (most recent call last):
> File "gluon/restricted.py", line 186, in r
Hi,
Thanks! This is the result from trunk.
Error traceback
Traceback (most recent call last):
File "gluon/restricted.py", line 186, in restricted
exec ccode in environment
File "/home/www-data/web2py/applications/welcome/models/db.py", line
15, in
db = DAL('postgres://web2py:test...@
Two solutions works !
Thanks!
Try this:
python web2py.py -s yourapp -M -N
>>> mail.settings.server=''
>>> mail.settings.sender=''
>>> mail.settings.login=''
>>> mail.send()
It should print any print you add to the source to the console.
You can also try
>>> mail.settings.server='logging'
and it should log th
Adi,
For some resaon I completely missed your reply until now. I tried your
suggestion and it worked!
Massimo> I'll take it from this that you no longer need me to debug in
any way...
Thanks for all the help guys.
On Jul 27, 4:25 pm, Adi wrote:
> Since you're able to use smtplib my suggestion
or default=request.client
On Aug 6, 3:48 am, David Marko wrote:
> Do you mean this?
> default=request.env.remote_addr
>
> On 6 srp, 10:23, puercoespin wrote:
>
> > Simple question, how to insert the ip visitors in a field, as
>
> > Field('ip_visitor', default=...)
>
> > Thanks
Please check the version in trunk. It should give you a more detailed
error.
On Aug 6, 3:06 am, Zhe Li wrote:
> Hello everyone,
>
> I tried to deploy web2py on my ubuntu server using
> setup_web2py_ubuntu.sh. Everything seemed fine except when I switch
> database from SQLite to PostgreSQL I got:
Do you mean this?
default=request.env.remote_addr
On 6 srp, 10:23, puercoespin wrote:
> Simple question, how to insert the ip visitors in a field, as
>
> Field('ip_visitor', default=...)
>
> Thanks
Simple question, how to insert the ip visitors in a field, as
Field('ip_visitor', default=...)
Thanks
Hello everyone,
I tried to deploy web2py on my ubuntu server using
setup_web2py_ubuntu.sh. Everything seemed fine except when I switch
database from SQLite to PostgreSQL I got:
Error traceback
Traceback (most recent call last):
File "gluon/restricted.py", line 178, in restricted
exec ccode
This is how things are now:
- you can register and you can submit comments
- you can ask me to edit the book and I can make you editor
Massimo
On Aug 5, 11:27 pm, b00m_chef wrote:
> I just wanted to request that the book be opened up to editing if you
> register. However, if you register, and ma
Yes sorry i just tested in opera 10.60 which has a very fast javascrip
engine.
The problem is that I expose the whole tree from modules to instance
methods and variables at once and render it with jquery treeview.
This is most likely too much for other browsers than the latest opera
or chrome.
I ha
83 matches
Mail list logo