default/index.html:
--- cut -
{{extend 'layout.html'}}
{{try:}}{{=H2(message)}}{{except:}}{{=BEAUTIFY(response._vars)}}
{{pass}}
{{=T('Changes not in use:')}}
{{changes=db(db.web.modified==True).select(db.web.id,db.web.name,db.web.controller)
if len(c
Hello everyone,
I am trying to send an email (html and txt) but it fails. I tried to
simplify my code in order to test it.
mail.send(to='panos...@gmail.com',subject='test',message='test')
But i am getting:
File "/Users/panosjee/Documents/Work/web2py/gluon/tools.py", line 302,
in send
attachme
Hi all,
If I have a referenced field where I specify which field in the referenced
table to display, like so:
Field('To_Department', requires = IS_IN_DB(db, db.department.id,
'%(Department_Name)s')),
SQLFORM generates a form with a drop-down box showing me the Department_Name of
the departments
well you are right about "reinventing the wheel" but i did this
because of the same problem - i thought this way i could costumize the
login form.
Anyways i saved everything ive done and replaced with the web2py auth
module.
Nowcan u please tell me how can i costumize it ?
I need to incresse th
Hi All,
I am creating a web site with an application in web2py. Also
a CRM application will make its way a little later coded in web2py.
I'll post more details once the site is hosted. Currently busy with my
job with a little less time though for development.
Thanks Rahul
On May 15, 5:06
so i added web2py auth and used this widget tool whatever it is but
worked :)
{{=request.args(0)}}
{{=form.custom.begin}}
username: {{=form.custom.widget.email}}
password: {{=form.custom.widget.password}}
submit: {{=form.custom.submit}}
{{=form.custom.end}}
finally :)
Thanks for the book!
On May
following this way of customize the form. i saw ppl asking about the
submit button - the way with sqlform.factory works but not on every
condition.
another way more easy can be this one:
submit: {{=form.custom.submit}}
css:
.subsub input, textarea {
padding: 2px 5px;
background: #F
Hi, I have a DIV object that has a bunch of children as well as a few
SCRIPT objects inside of it. I would like to recursively traverse the
DIV's children to extract all of the SCRIPT objects contents. How
might I attempt that?
- Rocket upgrade to 1.0.5 (fixes HTTPS connection problem)
On 5/16/2010 12:14 AM, mdipierro wrote:
Please check it
changelog
- new template system allows {{block name}}{{end}}, thanks Thadeus
- fixed mime headers in emails, included PGP in emails, thanks Gyuris
- automatic database retry connec
I see this Rocket error. That error is normal in the course of
operations but should never be detected through web2py. Did you get
that traceback from a ticket or somewhere else? How does this error
relate to the messages you sent before? Do they happen at the same time?
-tim
On 5/17/2010
I think it's related to the new templating engine :-o
Ticket 127.0.0.1.2010-05-17.09-20-49.56d45b51-05f0-49b5-9b10-
cd7e9a3212a6
==> missing "pass" in view
I think there is some shift in the python code logic because the
template got parsed wrong...
On máj. 17, 14:56, Timothy Farrell wrote:
This is one of the ways to do it but it requires web2py cron enabled.
You you have a production server running for example apache you may
need a second web2py process to run cron.
On May 17, 1:37 am, annet wrote:
> To clean up sessions I ran the following command:
>
> me:~ i$ cd /Library/Python/2
db.table.To_Department.represent=lambda v:
db.department[v].Department_Name
or better remove requires = IS_IN_DB(db, db.department.id, '%
(Department_Name)s'
and set
db.define_table('department',,format='%(Department_Name)s')
On May 17, 4:44 am, Andrew Buchan wrote:
> Hi all,
> If I have
Proposing myself for adding functionalities to web2py
Hello everybody,
Just want to express my love for this beautiful tool...
...and propose myself to participate in extending*...
Voilà...
A 1000 thanks to all who have participated in making this tool
available for us all...
a=DIV(DIV(SCRIPT()),DIV(DIV(SCRIPT()),SCRIPT(), etc.)
scripts=a.elements('script')
On May 17, 6:54 am, Ian Reinhart Geiser wrote:
> Hi, I have a DIV object that has a bunch of children as well as a few
> SCRIPT objects inside of it. I would like to recursively traverse the
> DIV's c
Please email me the template that causes a problem. There are some
possible issues:
1) it is possible that lines starting with = are not parsed properly
2) some errors are not reported properly
3) the new template engine checks for un-matched blocks (missing
pass). These are bugs that were not bein
Ticket
127.0.0.1.2010-05-17.09-48-36.ca732008-3e5a-4346-8d65-27ee970109ea
missing "pass" in view
Error traceback
1.
2.None
On May 17, 9:29 am, szimszon wrote:
> I think it's related to the new templating engine :-o
>
> Ticket 127.0.0.1.2010-05-17.09-20-49.56d45b51-05f0-49b5-9b10-
> cd7e9a
Thank you. Feel free to propose new features of work on requests by
other users. We do not have a formal approval process for
contributors. But people who provide a significant contribution are
listed in the http://web2py.com/examples/default/who page and are
asked to sign the contributor agreement
The ticket missing "pass" in view is not a mistake. It is checking for
a bug in your views that was not being detected before. Here is an
example:
{{if True:}}
Hello world
Notice that a {{pass}} is missing. web2py was not checking before
causing potential problems are runtime. It now checks.
O
You cannot have random = signs in your view.
The syntax is
{{python code here}}
{{=python variable here}}
You MUST declare {{= with no space in between. the bracket and equal sign.
--
Thadeus
On Mon, May 17, 2010 at 2:23 AM, szimszon wrote:
> default/index.html:
> --- cut
Is that from javascript or the python? My problem is that IE seems to
be stripping my scripts when i set the return of my form via
innerHTML. So I was going to send them as a separate object and then
add them manually.
On May 17, 9:54 am, mdipierro wrote:
> a=DIV(DIV(SCRIPT()),DIV(DIV(SCRIP
Oh I found the docs at http://www.web2py.com/AlterEgo/default/show/217
Thanks
On May 17, 7:54 am, Ian Reinhart Geiser wrote:
> Hi, I have a DIV object that has a bunch of children as well as a few
> SCRIPT objects inside of it. I would like to recursively traverse the
> DIV's children to extrac
On May 17, 2010, at 7:53 AM, Thadeus Burgess wrote:
> You cannot have random = signs in your view.
>
> The syntax is
>
> {{python code here}}
>
> {{=python variable here}}
>
> You MUST declare {{= with no space in between. the bracket and equal sign.
Alternatively (correct me if I'm wrong), r
Not quite. Before the new template engine we could do
{{for i in range(10):
=i
pass}}
if this is broken. It must be fixed.
On May 17, 10:04 am, Jonathan Lundell wrote:
> On May 17, 2010, at 7:53 AM, Thadeus Burgess wrote:
>
> > You cannot have random = signs in your view.
>
> > The syntax is
Could it be with the template? I changed the template and it worked.
It does not work with Balanced
On May 17, 10:53 am, Thadeus Burgess wrote:
> You cannot have random = signs in your view.
>
> The syntax is
>
> {{python code here}}
>
> {{=python variable here}}
>
> You MUST declare {{= with no
There is odd because I have a lot of code with
{{ =some.var}}
and
{{if something:
=T('something')
pass}}
If it doesn't work with the new engine I have to do a lot of work :(
On máj. 17, 16:53, Thadeus Burgess wrote:
> You cannot have random = signs in your view.
>
> The s
Is there an easy way to generate unique element id properties for a
web2py created DIV? I saw web2py_uuid, but that did not look like a
good fit, or is it?
I've been through the material and it's quite straight forward.
So we could keep the current packaging system like it's now.
But we both now that it ain't suitable for debian packaging system.
So I have a tiny idea.
We start working with a major and a tiny release.
The major release will not be u
Hi,
Is there a way to set the timezone application wide so that datetimes
are displayed correctly where I am and not what the server is set as?
Chris
The fact that it does not work with new engine has to be considered a
bug. I should have caught it before. I am now working to fix it. The
new engine will be 100% backard compatible.
I think I have already fixed this problem in trunk (please check it)
but there are still some issues with multiline
I have used web2py_uuid for this purpose.
On May 17, 10:22 am, Ian Reinhart Geiser wrote:
> Is there an easy way to generate unique element id properties for a
> web2py created DIV? I saw web2py_uuid, but that did not look like a
> good fit, or is it?
You have to create your own logic because there is no reliable way to
know the timezone of the client.
On May 17, 11:12 am, Chris wrote:
> Hi,
> Is there a way to set the timezone application wide so that datetimes
> are displayed correctly where I am and not what the server is set as?
>
> Chris
Not sure. Can't Field(..., writable=False) do the trick?
On May17, 5:44pm, Andrew Buchan wrote:
> Hi all,
> If I have a referenced field where I specify which field in the referenced
> table to display, like so:
> Field('To_Department', requires = IS_IN_DB(db, db.department.id,
> '%(Department_
On May17, 4:55pm, PanosJee wrote:
> Hello everyone,
> I am trying to send an email (html and txt) but it fails. I tried to
> simplify my code in order to test it.
>
> mail.send(to='panos...@gmail.com',subject='test',message='test')
>
> But i am getting:
> File "/Users/panosjee/Documents/Work/web2p
That doesn't seem to work with IE 8 when I try to get the element by
ID. If i use that web2py_uuid there it wont work, but if i use just
plain text it works. Could it be that IE dislikes the - characters in
the ID?
On May 17, 12:13 pm, mdipierro wrote:
> I have used web2py_uuid for this purpose
Well, we only caught the bugs because a new version of web2py is released :)
Honestly, I don't see documentation for the
{{if True:
=i
pass}}
syntax anywhere, nor have I seen an example of this until now.
--
Thadeus
On Mon, May 17, 2010 at 11:13 AM, mdipierro wrote:
> The fact that it
yes. I misread the previous emails so my answer was wrong.
On May 17, 11:22 am, Iceberg wrote:
> Not sure. Can't Field(..., writable=False) do the trick?
>
> On May17, 5:44pm, Andrew Buchan wrote:
>
> > Hi all,
> > If I have a referenced field where I specify which field in the referenced
> > t
could me. try web2py_uuid.replace('-','')
On May 17, 11:42 am, Ian Reinhart Geiser wrote:
> That doesn't seem to work with IE 8 when I try to get the element by
> ID. If i use that web2py_uuid there it wont work, but if i use just
> plain text it works. Could it be that IE dislikes the - charac
You are right. It is possible it is not documented in the book and it
is not your fault that it is not in the new template.py. Yet, this was
discussed some time ago on this list and a lot of people rely on it. I
think I added it to trunk. One problem remains with multiline comments
but I think I ca
I found the problem... I was using the YUI selector to get the
element, and when the uuid started with a number the CSS selector
would fail. I just prepended some known text and now it works.
On May 17, 12:42 pm, Ian Reinhart Geiser wrote:
> That doesn't seem to work with IE 8 when I try to get
I have an app running smoothly on OSX that fails on Windows XP.
I've traced the cause to the use of response.files.append(URL(...)) in views
that extend layout
In OSX this works with web2py 1.74.4:
{{response.files.append(URL(r=request, c='static/biz', f='common.js'))}}
{{response.files.append(UR
Correction and extra data:
Fails on Windows XP with 1.78.2 with SSL enabled,
Works on the same setting with 1.77.3 SSL off.
On Mon, May 17, 2010 at 7:12 PM, Miguel Lopes wrote:
> I have an app running smoothly on OSX that fails on Windows XP.
> I've traced the cause to the use of response.file
How does it fail?
On May 17, 1:29 pm, Miguel Lopes wrote:
> Correction and extra data:
>
> Fails on Windows XP with 1.78.2 with SSL enabled,
> Works on the same setting with 1.77.3 SSL off.
>
> On Mon, May 17, 2010 at 7:12 PM, Miguel Lopes wrote:
> > I have an app running smoothly on OSX that fa
The net effect is that response.files.append seems to be ignored.
The client receives the page but the appended files are missing.
On Mon, May 17, 2010 at 7:38 PM, mdipierro wrote:
> How does it fail?
>
> On May 17, 1:29 pm, Miguel Lopes wrote:
> > Correction and extra data:
> >
> > Fails on W
Summarizing. It always works exept when you run 1.78.x over SSL on XP.
Didd you check if 1.78.x works without SSL and if it works on other
platform (Mac, Linux)? Did you check different browsers (although this
does not look like a browser problem)?
Massimo
On May 17, 1:43 pm, Miguel Lopes wrote:
OK
WinXP (client and server - LAN)
client IE 6, server: web2py 1.78.2 with SSL - fails
client Firefox 3.6.3, server: web2py 1.78.2 with SSL - fails
client IE 6, server: web2py 1.77.3 no SSL - works
client Firefox 3.6.3, server: web2py 1.77.3 no SSL - works
OSX (client and s
I'm using web2py in replacement of an access application I had before.
It aims at providing a simple production record process for a plastic
injection factory (less than 35 employees).
It is binded via csv read to our ERP Produflex (FoxPro database). Now
it supports production performance and quali
That way, the DAL or web2py (I don't know the exact wording to use) will be
able to put data in my table that allready exist in the postgresql schema
where they are?
An other problem that I am facing is that I use numeric(length, nb decimal)
type of postgresql that type not seems to be supported i
Thanks,
it works. I placed it into models directory. Is that right?
Julius
V Pondelok, 26. apríl 2010 o 17:05 -0700, mdipierro napísal(a):
> Something like
>
> def build_menu()::
> root=0 # assumes the root has parent_id=0
> keys={root:UL()}
> items=db(db.category.id>0).select(orderby
Hi,
I would like to know if decimal "built in" field type will be created soon?
What the best practice untill that time?
Jonhy
I suspect the 1.77.3 version you have OSX and the one you have on
Windows are not exactly the same (one may be trunk and one stable).
Anyway there is definitely a problem with 1.78.x. It seems to ignore
code preceding {{extend ''}}.
Massimo
On May 17, 2:16 pm, Miguel Lopes wrote:
> OK
> Wi
Is there any freelance here that use web2py for building "data centric web
form" application user interface for populating postgresql database?
I would like to have primer app (model, view, controler) that will be able
to adapt and spread it at large after...
Jonhy
Tonight.
--
Thadeus
On Mon, May 17, 2010 at 12:25 PM, mdipierro wrote:
> You are right. It is possible it is not documented in the book and it
> is not your fault that it is not in the new template.py. Yet, this was
> discussed some time ago on this list and a lot of people rely on it. I
> t
I have posted 1.78.3 and I have temporarily reverted the new
template.py to the old one.
The new one is the one we want. It is more modular and has support for
blocks, but it causes some incompatibility issues that I should have
tested before. We are working so that we can move on to the new
templ
hi,
I have the following issue:
@auth.requires_membership('admin')
def foo():
form=FORM(blah some code here)
if form.accepts(request.vars, session):
#form method points to method bar below
return dict(form=form)
def bar():
redirect(URL(r=request,f=foo))
Hi, i have this defined as a model:
db.define_table('question',
Field('question', 'string', length=1056, notnull=True, unique=True,
requires=[IS_NOT_EMPTY(),
IS_NOT_IN_DB(db,'question.question')]),
#version info
Field('created_by', db.auth_user, default=auth.user_id
i *think* that it will work with you existing schema. I have postgres
setup with 2 databases ( i think that is the right term - i pass the -
d option to the psql command), and web2py works fine with
them. I do all my database migrations manually as well since there
are certain upgrades web2py a
This
redirect(URL(r=request,f=foo))
should be
redirect(URL(r=request,f='foo'))
On May 17, 4:00 pm, Robert Boulanger
wrote:
> hi,
>
> I have the following issue:
>
> @auth.requires_membership('admin')
> def foo():
> form=FORM(blah some code here)
> if form.accepts(request.vars, sessi
http://docs.djangoproject.com/en/dev/releases/1.2/
My comments below.
* Support for multiple database connections in a single Django
instance.
We always had this
* Model validation inspired by Django’s form validation.
If I understand this:
http://docs.djangoproject.com/en/dev/ref/validators/#ref-validators
now django works like web2py
Hi, I updated my web2py, but I had a problem with web2py 1.78.3, I use
legacy databases. When I try to go to my application I got this
Error traceback
Traceback (most recent call last):
File "/media/RESPALDO/web2py/gluon/restricted.py", line 178, in
restricted
exec ccode in environment
Fi
I am going to need your help in debugging this. In sql.py around lines
2115
for key in args:
if key not in [
'migrate',
'primarykey',
'fake_migrate',
'format',
'trigger_name',
Can you check that there is not a space at the end of key.
Maybe change to :
raise SyntaxError, 'invalid table "%s" attribute: "%s"' % (tablename, key)
and look for garbage in the the result?
--r
On May 17, 2010, at 5:33 PM, mdipierro wrote:
> I am going to need your help in debugging this. In
Ok I figured it out for reference I will post here
to check if a checkbox has been checked do this
if session.the_checkbox_name == "on":
expression
Cheers
Andrew
On Fri, May 14, 2010 at 1:32 PM, Andrew Evans wrote:
> Hello I have been doing research and still trying to figure how to
On May 17, 6:31 pm, drayco wrote:
> Hi, I updated my web2py, but I had a problem with web2py 1.78.3, I use
> legacy databases. When I try to go to my application I got this
>
> Error traceback
>
> Traceback (most recent call last):
> File "/media/RESPALDO/web2py/gluon/restricted.py", line 178, i
Here's the thing I don't get about django...
Polls.objects.filter(order__lte=5)
I don't know about you, but that syntax makes NO sense to me as an
software engineer, (less than or equal to equals 5) Designer based
framework!
db(db.polls.order <= 5).select()
makes so much more sense! =)
<3
still the error he is getting makes no sense to me.
On May 17, 8:54 pm, DenesL wrote:
> On May 17, 6:31 pm, drayco wrote:
>
>
>
> > Hi, I updated my web2py, but I had a problem with web2py 1.78.3, I use
> > legacy databases. When I try to go to my application I got this
>
> > Error traceback
>
>
BTW with minor changes we could support
(Polls.order <= 5).select()
(assuming Polls=db.polls)
just by giving select, update, delete methods to query objects and
mapping them into db(query).blablabla. It would take a second to
implement but I am not sure whether it would be a good idea or not.
http://www.jetbrains.net/devnet/message/5263114#5263114
On May 13, 5:23 pm, Andrew Evans wrote:
> hello I have a form I would like to use multiple check boxes to select
> data to use. I am not using any sql
>
> an example of how I am generating the check boxes
>
> TR(INPUT(_type="checkbox", name="browser"), "Browser"),
> TR(INPUT(_type="chec
On 18 Mayıs, 02:13, mdipierro wrote:
> My comments below.
>
> * Model validation inspired by Django’s form validation.
>
> If I understand
> this:http://docs.djangoproject.com/en/dev/ref/validators/#ref-validators
> now django works like web2py always did. They copied us. Still their
> valida
But it says http://docs.djangoproject.com/en/dev/ref/validators/#ref-validators
"Note that validators will not be run automatically when you save a
model, but if you are using a ModelForm, it will run your validators
on any fields that are included in your form"
On May 17, 9:38 pm, Mengu wrote:
I'm going to take a stab in the dark and venture to say that I'm not
the only one using web2py in a "production" environment (i.e. people
other than me are accessing the app) :-P
It seems that with many recent releases there are rather embarrassing
bugs. The worst was several months ago when auth
You raise an excellent point.
So far the only security bug was the one reported a few months ago.
1) Yet we do need a mechanism for reporting this kind of problems.
2) We also need a team of volunteers committed to check nightly built
the week before release. So far very people check the nightly
(Polls.order <= 5).select() vs db(Polls.order <= 5).select()
I see no difference.
I don't see any reason to give it an __iter__ method >.< Just put .select()
--
Thadeus
On Mon, May 17, 2010 at 9:18 PM, mdipierro wrote:
> e could also give query and set objects and __iter__ method and be
>
I also run web2py in production, but I also don't upgrade my web2py
version with the latest release (unless it is a security release). I
usually stay 2-3 versions behind on my production code... sometimes
even older code unless there is a security release OR I want some new
functionality.
The bigg
I agree that is why it was never done.
On May 17, 10:42 pm, Thadeus Burgess wrote:
> (Polls.order <= 5).select() vs db(Polls.order <= 5).select()
>
> I see no difference.
>
> I don't see any reason to give it an __iter__ method >.< Just put .select()
>
> --
> Thadeus
>
> On Mon, May 17, 2010 at
I know that we ahve the integrated editor. But I have sure been loving
the speed of my own editor. Couldn't we have the web2py server open the
file in our favorite editor? I wonder how hard it would be to have it
so that when I click on the file that an error references to that it
would open in
there is a firefox plugin for that.
On May 17, 6:10 am, Jason Brower wrote:
> I know that we ahve the integrated editor. But I have sure been loving
> the speed of my own editor. Couldn't we have the web2py server open the
> file in our favorite editor? I wonder how hard it would be to have it
This is where web2py fails to earn its enterprise billing. Here's a
simple solution: Call the released version the development version and
promote the development version to the released version after 2-4
weeks.
On May 17, 10:38 pm, mdipierro wrote:
> You raise an excellent point.
>
> So far the
Two weeks seems like an eternity but we will have to do as you say.
Massimo
On May 17, 11:09 pm, "mr.freeze" wrote:
> This is where web2py fails to earn its enterprise billing. Here's a
> simple solution: Call the released version the development version and
> promote the development version to
I don't think we would even need a plugin... you just make a call to the
web2py server and it would open the file for you.
BR,
Jason Brower
On Mon, 2010-05-17 at 20:58 -0700, mdipierro wrote:
> there is a firefox plugin for that.
>
> On May 17, 6:10 am, Jason Brower wrote:
> > I know that we ah
I have the following problem:
I have a app on production, but have to make major changes on them.
So I want to use a development environment, and use a VCS (version control
system- baazar, cvs, subversion) to syncronize to production.
What I want to know is:
How others have done it? Syncronize c
On Tue, May 18, 2010 at 01:14, Alexandre Andrade
wrote:
> I have the following problem:
>
> I have a app on production, but have to make major changes on them.
> So I want to use a development environment, and use a VCS (version control
> system- baazar, cvs, subversion) to syncronize to productio
On May 18, 12:13 am, Jason Brower wrote:
> I don't think we would even need a plugin... you just make a call to the
> web2py server and it would open the file for you.
> BR,
> Jason Brower
>
> On Mon, 2010-05-17 at 20:58 -0700, mdipierro wrote:
> > there is a firefox plugin for that.
FYI - the fi
1.78.3 seems to work correctly TNX.
There is one thing left with web2py and squeeze, the simplejson
thing... :-o
On máj. 17, 19:25, mdipierro wrote:
> You are right. It is possible it is not documented in the book and it
> is not your fault that it is not in the new template.py. Yet, this was
>
http://pycon-au.org/2010/conference/schedule/
On 17 mayo, 17:32, Mark Breedveld wrote:
> I've been through the material and it's quite straight forward.
> So we could keep the current packaging system like it's now.
>
> But we both now that it ain't suitable for debian packaging system.
> So I have a tiny idea.
>
> We start working with a m
We are also facing same issue for http://radbox.me/ for this. The code
used is
{{=auth.login()}}
{{=A('Forgot password?',
_href=URL(request.application,'account','user/retrieve_password'))}}
{{=auth.register()}}
By registe
89 matches
Mail list logo