Hi Sverre,
I have a cms application in which I use dataTables. In the view I have
something like:
{{=A('update/delete',_onmouseover="this.style.cursor='pointer';",
_href=URL(r=request,f='update_nfa',args=[record.nfa.id]))}}
... and in the corresponding function:
auth.requires_membership('s
maybe was something like that, i've recreate the app and run OK.
I think that was the text editor, it was not correctly configured.
what editor do you use?
thanks!
Pepe.
On Tue, May 18, 2010 at 10:14 PM, mdipierro wrote:
> Do you use a custom layout? make sure it uses the utf8 encoding
>
> O
Are you running web2py from source or the mac binary (the latter comes
with its own python and it would not see the mysqldb driver)
On May 18, 8:42 pm, Avik Basu wrote:
> Hello,
>
> I am having some trouble connecting to a MySQL server running on my
> local machine (Macbook Pro running Snow Leopa
Do you use a custom layout? make sure it uses the utf8 encoding
On May 18, 7:55 pm, Pepe wrote:
> hello,
>
> when i register a new user i got this error:
>
> Traceback (most recent call last):
> File "gluon/restricted.py", line 178, in restricted
> exec ccode in environment
> File "/home/
Hello,
I am having some trouble connecting to a MySQL server running on my
local machine (Macbook Pro running Snow Leopard with My SQL 5.1.46).
I use the following connection string:
db = DAL('mysql://root:passw...@localhost/test', pool_size=10)
and I get the following error:
Traceback (most re
hello,
when i register a new user i got this error:
Traceback (most recent call last):
File "gluon/restricted.py", line 178, in restricted
exec ccode in environment
File "/home/pepearaya/webapps/web2py/web2py/applications/comunidad/
controllers/default.py", line 57, in
File "gluon/glob
I do not know that is the problem. I am making a guess. Autocommit is
not a good idea. Programmers should control when to commit.
On May 18, 7:19 pm, Richard wrote:
> oh really - I didn't realize that would ever be a problem. Is it
> practical to have the DAL auto-commit before too much data is
has a YouTrack issue been created?
On May 18, 12:37 pm, mikech wrote:
> http://www.jetbrains.net/devnet/message/5263114#5263114
agreed - that message is not appropriate after login failure.
On May 19, 12:44 am, Jonathan Lundell wrote:
> On May 18, 2010, at 6:31 AM, Jason Brower wrote:
>
> > tried logging in with the auth system and it's very much way flipping
> > too strong. How to I take such a password picky beast? Th
oh really - I didn't realize that would ever be a problem. Is it
practical to have the DAL auto-commit before too much data is built
up?
On May 19, 1:49 am, mdipierro wrote:
> I think the problem may be with how much can be done in a single
> transaction.
> try db.commit() after each insert.
>
This
message=[None,messagehtml]
whatever it does need some documentation.
On May 18, 3:48 pm, Alexandre Andrade
wrote:
> I have sucess with:
>
> for person in db(db.cme.id==request.args(0)).select():
> context = dict(person=person)
> messagehtml = response.render(
thank you. :-)
On May 18, 4:47 pm, Nico de Groot wrote:
> Massimo,
>
> The error originates from 2115, but you are showing below other
> (correct) lines of code (line 1253 and further). I think I documented
> the error and the solution
> inhttp://groups.google.com/group/web2py/msg/d9d11284a1e83a
We will add API to delete users and groups but it is safe to do it
manually.
You can also block users by putting "blocked" in the user
registration_key
On May 18, 4:35 pm, Magnitus wrote:
> I noticed that a special API via the instance of the Auth class is
> provided to manage groups, user memb
Massimo,
The error originates from 2115, but you are showing below other
(correct) lines of code (line 1253 and further). I think I documented
the error and the solution in
http://groups.google.com/group/web2py/msg/d9d11284a1e83a3e
, wil send you the patch separately.
Nico de Groot
On 18 mei, 0
I noticed that a special API via the instance of the Auth class is
provided to manage groups, user memberships to groups, permissions and
groups access to permissions.
Is that purely a convenience thing or was it put in place to prevent
some weird crashes caused by race conditions if the DAL API i
sory, I've missed previous thread about it
Polls.objects.get(order__lte=5)
No... no their not.
Still a designer based framework, and developer limiting.
--
Thadeus
On Tue, May 18, 2010 at 4:11 PM, Kuba Kucharski
wrote:
> http://docs.djangoproject.com/en/dev/releases/1.2/
>
> "Support for multiple database connections in a single Dj
http://docs.djangoproject.com/en/dev/releases/1.2/
"Support for multiple database connections in a single Django instance."
django is catching up ;)
--
Kuba
I have sucess with:
for person in db(db.cme.id==request.args(0)).select():
context = dict(person=person)
messagehtml = response.render('email.html', context)
status = mail.send(to=[person.email],
subject='My Subject',
Brilliant as everything else in web2py :)
Thanks!
On May 18, 9:19 pm, mdipierro wrote:
> response.view='default/bar1.html'
>
> On May 18, 12:56 pm, Igor Gassko wrote:
>
>
>
> > Hi all.
>
> > I'd like to have multiple views (several different html files) for the
> > same controller action and to
response.view='default/bar1.html'
On May 18, 12:56 pm, Igor Gassko wrote:
> Hi all.
>
> I'd like to have multiple views (several different html files) for the
> same controller action and to be able to specify in the code from
> within controller which view will be used to format the response.
>
python web2py.py -S admin -R applications/admin/cron/
expire_sessions.py
On May 18, 12:55 pm, annet wrote:
> Massimo,
>
> At webfaction I can do:
>
> [myser...@webxxx ~]$ crontab -l
> 11,31,51 * * * * /home/fitwise/webapps/customweb2py/apache2/bin/start
>
> /dev/null 2>&1
> 12,32,52 * * * * /home
nevermind, tried it. it works
On May 18, 2:00 pm, greenpoise wrote:
> does this works with CRUD?
>
> On May 18, 11:48 am, mdipierro wrote:
>
> > or db.table.id.readable=False
>
> > On May 18, 10:10 am, Jose wrote:
>
> > > On 18 mayo, 06:59, Andrew Buchan wrote:
>
> > > > Hello,
>
> > > > Very
Got it. Thanx
On May 18, 1:31 pm, mdipierro wrote:
> db(db.project.id>0).update(number=db.project.id+1000)
>
> db.project.number is a field object, not a field value. that is whay
> you cannot use the syntax below.
>
> On May 18, 12:20 pm, greenpoise wrote:
>
> > How come I cant do this:
>
> > d
does this works with CRUD?
On May 18, 11:48 am, mdipierro wrote:
> or db.table.id.readable=False
>
> On May 18, 10:10 am, Jose wrote:
>
> > On 18 mayo, 06:59, Andrew Buchan wrote:
>
> > > Hello,
>
> > > Very simple one today:
>
> > > SQLFORM(db.CAR_Report, record = CARId , readonly = True, fiel
Hi all.
I'd like to have multiple views (several different html files) for the
same controller action and to be able to specify in the code from
within controller which view will be used to format the response.
To be specific, let's say I have controller 'default.py' with action
'foo' in it and I
Massimo,
At webfaction I can do:
[myser...@webxxx ~]$ crontab -l
11,31,51 * * * * /home/fitwise/webapps/customweb2py/apache2/bin/start
>
/dev/null 2>&1
12,32,52 * * * * /home/fitwise/webapps/customweb2py/apache2/bin/start
>
/dev/null 2>&1
46 * * * * cd ~/webapps/loganalyzer;./update_awstats.sh
[m
Good afternoon everyone:
I hope this serves as something:
With version 1.76.5b everything works fine.
I reviewed the differences in the code of sql.py with versions 1.77_3
and 1.78.3.
I do not find any problem with code.
Anyway, I don't have a lot experience with python.
DenesL you got anothe
db(db.project.id>0).update(number=db.project.id+1000)
db.project.number is a field object, not a field value. that is whay
you cannot use the syntax below.
On May 18, 12:20 pm, greenpoise wrote:
> How come I cant do this:
>
> db.project.number=db.project.id+1000
>
> I want the project number t
How come I cant do this:
db.project.number=db.project.id+1000
I want the project number to be the same as the project id plus 1000
If you only need it in one controller, put it in the controller.
On May 18, 10:36 am, scausten wrote:
> I think I've found the answer in onvalidate, but would like some
> clarification. In the manual, is the followiong code:
>
> db.define_table('numbers',
> Field('a', 'integer'),
> Field(
I think the problem may be with how much can be done in a single
transaction.
try db.commit() after each insert.
On May 18, 10:27 am, Berti wrote:
> The text size that actually causes the error is 1078 characters. I am
> running a loop and inserting the whole mailbox with about 400 messages
> int
Hi,
I found this information about legacy database and the id field name :
http://groups.google.com/group/web2py/browse_thread/thread/eed21229883b5a1a
That seems to work quite well except for one thing... Web2py seems to want a
different sequence name. By default PostgreSQL gives sequence name ba
Can you please email this to me as an attachment?
On May 18, 10:25 am, Nico de Groot wrote:
> I tried out the ldap login using an Active Directory server using the
> directions fromhttp://web2py.com/book/default/section/8/1. I had to
> make some small changes to get it running when using 'usernam
or db.table.id.readable=False
On May 18, 10:10 am, Jose wrote:
> On 18 mayo, 06:59, Andrew Buchan wrote:
>
> > Hello,
>
> > Very simple one today:
>
> > SQLFORM(db.CAR_Report, record = CARId , readonly = True, fields =
> > ['Part_Number'])
>
> > gives me a form showing:
>
> > Id:
It is possible. But do you understand how it is possible that the
exception is raised? I do not see how it can happen.
On May 18, 9:16 am, DenesL wrote:
> I am not sure what 'sequence_number' is used for and I don't recall
> seeing it when I wrote the keyed table support, there is also somebody
>
I think I've found the answer in onvalidate, but would like some
clarification. In the manual, is the followiong code:
db.define_table('numbers',
Field('a', 'integer'),
Field('b', 'integer'),
Field('c', 'integer', readable=False, writable=False))
def my_form_processing(form):
c =
The text size that actually causes the error is 1078 characters. I am
running a loop and inserting the whole mailbox with about 400 messages
into a database. At a specific number, in this case it is 97, the loop
stops by producing the error. I can delete that message from the
mailbox but than it is
I tried out the ldap login using an Active Directory server using the
directions from http://web2py.com/book/default/section/8/1. I had to
make some small changes to get it running when using 'username' for
login.
change 1: if @ is missing (like in the case of using 'username')
username_bare is un
On 18 mayo, 06:59, Andrew Buchan wrote:
> Hello,
>
> Very simple one today:
>
> SQLFORM(db.CAR_Report, record = CARId , readonly = True, fields =
> ['Part_Number'])
>
> gives me a form showing:
>
> Id: 1
> Part Number: U5118
>
> Thing is, I don't want the user to
On May 18, 2010, at 6:31 AM, Jason Brower wrote:
> tried logging in with the auth system and it's very much way flipping
> too strong. How to I take such a password picky beast? There are people
> that don't even know all those symbols on the keyboard.
Well, it's not requiring *all* the symbols;
Nice! Thanks very much.
Jonhy
2010/5/18 DenesL
> decimal has been available since 1.73.1 along with its related
> validators.
>
> The "New features not documented in PDF book (2 ed)" pinned post in
> the group
> currently at http://groups.google.com/group/web2py/msg/5290f650358692ee
> lists tho
You must set the mimetypes of outgoing email, I do not believe the
current mailer supports this...
Checkout the code on the wiki
http://wiki.web2py.com/Sending_Email_with_Plain_Text_HTML_Versions_plus_Attachments
--
Thadeus
On Tue, May 18, 2010 at 4:07 AM, Jon Romero wrote:
> It seems that
Oh, well in that case, we just need someone to do it...go for it!
On 5/18/2010 8:50 AM, blackthorne wrote:
A second step would be to bundle PostgresSQL with web2py + cherokee.
I'm a dreamer...
On May 18, 2:46 pm, blackthorne wrote:
I may no have been as clear as I wanted.
First, this is
How big is the text?
On May 18, 5:34 am, Berti wrote:
> I am trying to insert the body of an email message in a SQLite3
> databse.
>
> But I get the error message:
>
> DataError: String or BLOB exceeded size limit
>
> I have declared the database field as text. If i declare it as string,
> the bo
I am not sure what 'sequence_number' is used for and I don't recall
seeing it when I wrote the keyed table support, there is also somebody
else having a problem with it now:
http://groups.google.com/group/web2py/msg/d9d11284a1e83a3e
Maybe it is not properly integrated with the keyed table part, j
ajax('pageAjax', ['pageId'], ) should be
ajax('{{=URL(r=request,f='pageAjax')}}', ['pageId'], ...
On May 18, 8:47 am, Rohan wrote:
> I am trying to call a function using ajax from a page which has a
> request arg. the api is not getting called. Same api gets called if I
> don't use request.a
By the way, here's a brief tutorial to config it manually.
http://www.web2py.com/AlterEgo/default/show/184
I don't know if it's working now since cherokee released 1.0.0 version.
On Tue, May 18, 2010 at 3:57 PM, Albert Abril wrote:
> Well.. I think that it's more easy integrate a web2py installe
decimal has been available since 1.73.1 along with its related
validators.
The "New features not documented in PDF book (2 ed)" pinned post in
the group
currently at http://groups.google.com/group/web2py/msg/5290f650358692ee
lists those and many other features.
On May 17, 4:51 pm, Jean Guy wrot
Well.. I think that it's more easy integrate a web2py installer in the
cherokee assistant, that at reverse.
Maybe, just programming the assistant in cherokee would be an excellent
point.
I'm not using cherokee in daily production, but I'm a admire the work at
this webserver since two years ago.
Th
A second step would be to bundle PostgresSQL with web2py + cherokee.
I'm a dreamer...
On May 18, 2:46 pm, blackthorne wrote:
> I may no have been as clear as I wanted.
> First, this is not a Python / C / whatever issue. We like web2py and
> being pythonic, nothing changes. This is the applicatio
I am trying to call a function using ajax from a page which has a
request arg. the api is not getting called. Same api gets called if I
don't use request.args
here is my code
{{if request.args:}}
{{=request.args[0]}}
{{else:}}
10
{{pass}}
and default.py
def pageAjax():
"""
Hi, I'm the original poster, but just changed my email...
I did get this to work so will post the solution for others:
Here's the table:
db.define_table('department',
Field('Department_Name', requires = IS_NOT_EMPTY()),
Field('contact_email', length=128, requires = [IS_EMAIL(),
IS_NOT_EMPT
I may no have been as clear as I wanted.
First, this is not a Python / C / whatever issue. We like web2py and
being pythonic, nothing changes. This is the application layer. The
way it's served, wether it is web or telnet or something else it's
another layer. There is absolutely no limitation on ru
I am trying to insert the body of an email message in a SQLite3
databse.
But I get the error message:
DataError: String or BLOB exceeded size limit
I have declared the database field as text. If i declare it as string,
the body of the messsage is going to be inserted, but no in full
length.
How
Hello,
Very simple one today:
SQLFORM(db.CAR_Report, record = CARId , readonly = True, fields =
['Part_Number'])
gives me a form showing:
Id: 1
Part Number: U5118
Thing is, I don't want the user to see the id field (for good reason),
but I can't seem to hide it.
Ich versuche das Body einer Email Nachricht in ein SQLite3 Datenbank
Feld einzufügen.
Jedoch kommt die Meldung
DataError: String or BLOB exceeded size limit
Ich habe den Datentyp im Feld als text deklariert. Wenn ich mit string
deklariere, wird der Text der Nachricht eingefügt, aber abgeschnitte
What we'll do is post a clear link to the nightly build and call it a
release candidate. The change policy that about testing before turning
the release candidate into stable.
On May 18, 6:53 am, Albert Abril wrote:
> Personally, I prefer as we had until now, because add a dev and a stable
> rele
I need something like if I clicking on a row or a button in the row in
the datatable plugin, I'll be redirected to another page to change the
data. Has someone an working example?
Thanks in advance.
Please use 1.78.3
On May 18, 3:43 am, salbefe wrote:
> Hello,
>
> I'm getting this error when I try to star any of the app:
>
> Ticket issued: admin/127.0.0.1.2010-05-18.10-39-45.4c56ac32-
> d0db-4f64-98f0-9e3c1c93518b
>
> Traceback (most recent call last):\n File "C:\\web2py\\gluon\
> \main.py
simply the action has to be a string, not a function or the function
gets serialized with its name.
in
def foo(): pass
foo gets serialized as 'foo'
in
@auth.requires_login()
def foo(): pass
foo gets serialized as 'foo' in 1.78.x but not in previous versions.
On May 18, 2:32 am, Robert Boulang
I am on the case...
On May 18, 1:15 am, Tarun wrote:
> We are also facing same issue forhttp://radbox.me/for this. The code
> used is
>
>
> {{=auth.login()}}
> {{=A('Forgot password?',
> _href=URL(request.application,'account','user/retrieve_password'))}} p>
>
I have a file uploads table and want to have a unique, random code for
each file as it is uploaded, so that my fields are id, file, code,
where 'code' is generated by a given function (say, for sake of
argument, randint(10,99)).
Is this something I can do in the model, or do I need a form
I personally see no problem with forking in that direction. Just as
Ubuntu is a fork of Debian. They can both help each other.
:)
Best Regards,
Jason Brower
On Tue, 2010-05-18 at 05:12 -0700, blackthorne wrote:
> hi
>
> I don't want to fill this groups with ideas, mainly with ideas that
> will
I agree that Cherokee is an impressive server. I think the main reason
for not including it is it's non-Pythonic nature. web2py would have to
incorporate a formal build process (something it does not current have)
for Windows and OSX. It's hard to find a recent Windows build of
Cherokee righ
Hi Denes,
I got the same syntax error (SyntaxError: invalid table "account"
attribute: sequence_name ) when using a legacy database (by specifying
the primarykey in 'define_table'). I tracked it down to the init
method of KeyedTable in sql.py and made an adjustment that worked -
for me at least -
P.S.: I am not saying to stop delivering web2py out of the box, this
would be an extra option...
On May 18, 1:12 pm, blackthorne wrote:
> hi
>
> I don't want to fill this groups with ideas, mainly with ideas that
> will never see light. Anyway, if someone has more free time than me,
> you may con
hi
I don't want to fill this groups with ideas, mainly with ideas that
will never see light. Anyway, if someone has more free time than me,
you may consider it.
I was checking a screencast on the awesome Cherokee web server with
it's great web interface and thinking how cool would it be to have a
Personally, I prefer as we had until now, because add a dev and a stable
release may be a little bit complex and confusing.
Now, we have mercurial and nightly for testing purposes, and the official
version for production.
If we add more branchs, I think it could confuse new people.
(sorry my poor
Maintaining a 2-4 weeks gap between development release and production
release, is certainly a systematic precaution which can earn us some
time for bug finding and fixing. However it only works best when a
significant amount of volunteers who is willing to update to latest
development release quic
I have a similar problem
db.define_table('person',
Field('name'),
format = "%(name)s",
)
db.define_table('contributers',
Field('person', db.person, requires = IS_IN_DB(db,
'person.id', '%(name)s')),
)
def edit_contributer():
db.contributers.person.writabl
It seems that I cannot send emails as html (they are displaying as
text).
mail = Mail()
mail.settings = ...
mail.send(to=user.email, subjest=subject, message=(message_text,
message_html))
Any clues?
Hello,
I'm getting this error when I try to star any of the app:
Ticket issued: admin/127.0.0.1.2010-05-18.10-39-45.4c56ac32-
d0db-4f64-98f0-9e3c1c93518b
Traceback (most recent call last):\n File "C:\\web2py\\gluon\
\main.py", line 381, in wsgibase\nserve_controller(request,
response, sessi
Hi,
that works, thanks.
I still don't understand the behaviour, but I will have a look deeper inside to
find that out.
-Robert
Am 18.05.2010 um 00:13 schrieb mdipierro:
> This
>
> redirect(URL(r=request,f=foo))
>
> should be
>
> redirect(URL(r=request,f='foo'))
>
>
> On May 17, 4:00 pm,
74 matches
Mail list logo