Did you try to change to:
mail.settings.login = "thade...:mypass"
(without @ and server name)
This is because line in gluon/tools.py
(username, password) = self.settings.login.split(':')
On Oct 31, 2:25 am, Thadeus Burgess wrote:
> Would anybody know why I can send mail using SMTP through Evolu
Thanks, Massimo, I didn't know that.
mdipierro wrote:
The pages in T3 are not web2py templates. Things like this where never
allowed.
{{if self.logged_in:}}
{{=self.create(db.student, next='wiki/students')}}
{{pass}}
You can do:
{{=self.create(db.student, next='wiki/students') if self.l
Hi there,
I just implemented the controller file_delete() to delete files, as it
was missing too.
And also fixed the ticket generation error on db.py, it was using
db.ticket, but it should be db.t_ticket.
Is there any way that I could commit this files into a branch?
Thanks alot!
Julio Mont
Could you email me your patch.
Please make sure they apply to the latest version I posted yesterday
night.
Massimo
On Nov 1, 8:35 am, Júlio Monteiro wrote:
> Hi there,
> I just implemented the controller file_delete() to delete files, as it was
> missing too.
> And also fixed the ticket gener
P.S. Ideally T4 delete methods should require confirmation like delete
in applications/admin/controllers/default.py
On Nov 1, 9:05 am, mdipierro wrote:
> Could you email me your patch.
> Please make sure they apply to the latest version I posted yesterday
> night.
>
> Massimo
>
> On Nov 1, 8:3
On Oct 31, 10:18 pm, Thadeus Burgess wrote:
> When dealing with large amounts of data, with mysql you need to do alot of
> tweaking to get it just right (database engines, etc etc...), and postgres
> works great out of the box.
Well then yay Postgres. I'm not the type who does DB configuratio
Hello, Massimo!
I started studying a bit of bzr and learned how to make a branch for
myself, now you can compare the development branch with what I did. I
included you changes of yesterday ans added my modifications, the
branch is in:
https://code.launchpad.net/~monteiro/t4/monteiro
I can c
Hello there,
What is the standard way to add confirmations in this case?
A _javascript_ alert would suffice? Or else we could do it in a more
pretty way with jQuery.confirm?
Monteiro
mdipierro wrote:
P.S. Ideally T4 delete methods should require confirmation like delete
in applications/a
How about something like this?
db=DAL(.)
db.define_table('mytable',)
#in controller:
@auth.requires_login()
def mydalservice(): return db.as_xmlrpc()
and on another app:
db=DAL('https://username:passw...@theabovehost/path/mydalservice')
db.mytable.insert()
Pros/Cons? xmrrpc vs rest
I do not know. Open to suggestions. The "check to delete" in edit
already has js confirmation.
Massimo
On Nov 1, 9:27 am, Júlio Monteiro wrote:
> Hello there,
> What is the standard way to add confirmations in this case?
> A javascript alert would suffice? Or else we could do it in a more prett
the login name includes the @.
This works perfectly on every computer except the one that the DNS is
pointing to, and it even worked on that one before the DNS got switched to
it.
Its not a web2py issue, or a python issue, or a server config, its all in
the DNS, however RDNS, SPF records did not
Well, I got Postgres working locally, thanks to
https://help.ubuntu.com/community/PostgreSQL
Looks I'll be using Postgres now.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this gr
Hello everybody,
first of all I want to say thank you for creating and supporting this
magnificent web2py framework, I really enjoy working with it.
Now I ran into an issue which may be originating from the
gluon.tools.Auth.requires_*() routines, which I found no topic about
in the news group.
Thank you Anton,
the ?_next is required to pass the original url to the login page in
order to generate the hidden field in the login form. It is not used
when the post is submitted.
You are right, there is a bug that causes redirection to the wrong
url. I think I just fixed it in trunk.
Can you
I have also noticed that if you define ~~~def user(): auth() in a controller
other than default, and you decorate a function auth.requires_login. It will
attempt to always redirect you to /init/default/user/login instead of
/init/sandbox/user/login
I can't find the post that mentioned this problem
Hello there,
I added the following to web2py_ajax.html, just before the end of the function web2py_ajax_init() (I am not sure if it
is the correct way to place it):
jQuery('.delete').click(function(){
var answer = confirm('Are you sure?');
return answer
});
Then you just h
you can change this
auth.settings.controller = 'sandbox'
On Nov 1, 10:47 am, Thadeus Burgess wrote:
> I have also noticed that if you define ~~~def user(): auth() in a controller
> other than default, and you decorate a function auth.requires_login. It will
> attempt to always redirect you to /
Hey there,
Another bug that I would love to know how to solve: no pages accept
unicode chars, and if you save a system page with unicode chars, the
system becomes unusable, the only way is to open the sqlite database by
hand and remove the faulty entry.
Is this easy to fix?
Monteiro
--~--~
Thanks!
http://www.web2pyslices.com/main/slices/take_slice/19
On Oct 31, 2:43 pm, Jonathan Lundell wrote:
> On Oct 30, 2009, at 8:33 PM, mr.freeze wrote:
>
> > This is useful. Perhaps worth making aslice?
> >http://www.web2pyslices.com/main/default/user/login?_next=/main/slice...
>
> I can do t
Hello Massimo,
Please check out my branch, I did some bug hunting on T4, perhaps you
can use some of what I coded.
https://code.launchpad.net/~monteiro/t4/monteiro
I would love if you can fix that international character support
problem, thats what is blocking me now :)
Cheers,
Monteiro
Júl
Can you tell me how to reproduce the problem?
On Nov 1, 12:32 pm, Júlio Monteiro wrote:
> Hello Massimo,
>
> Please check out my branch, I did some bug hunting on T4, perhaps you
> can use some of what I coded.
>
> https://code.launchpad.net/~monteiro/t4/monteiro
>
> I would love if you can fix
Sure,
Just install plain t4 with no DB in a folder called "test", create the
admin user, login, then edit the "main" page, and replace it with some
text like: "Júlio"
After you save the page you can never edit it again, unless you go to
the database console and delete that page version. The
Are you using 1.71.0? I thought this was fixed.
Massimo
On Nov 1, 2:01 pm, Júlio Monteiro wrote:
> Sure,
> Just install plain t4 with no DB in a folder called "test", create the admin
> user, login, then edit the "main" page, and replace it with some text like:
> "Júlio"
> After you save the
Thank you Massimo,
after struggling a little bit with bazaar, I finally managed to get
revision 1304 working. It seems that the issue is solved (when
creating a new scaffolding application "sandbox" with revision 1304).
Since in the history also the file "welcome.w2p" seems to have been
changed,
Tested and working. It threw me off because the virtual fields don't
show up in BEAUTIFY(rows) for some reason. Thanks.
On Oct 31, 10:39 pm, mdipierro wrote:
> I have done it. Post it soon. Yet, it is append.
>
> On Oct 31, 3:45 pm, "mr.freeze" wrote:
>
> > virtualfields.append not add, right?
True they do not. That is a complicated matter.
BEAUTIFY tries serialize rows by calling rows.xml() which calls
SQLTABLE(rows) and that only display rows.colnames where colnames are
returned by the DB, not computed.
I am not convinced this behavior should be changed since there is no
way to enab
Hello, Massimo!
Yes, I am using 1.71.0. If you want I can send you a copy of my state
screen so you can debug. Please tell me if you need it.
Thanks!
Monteiro
mdipierro wrote:
Are you using 1.71.0? I thought this was fixed.
Massimo
On Nov 1, 2:01 pm, Júlio Monteiro wrote:
S
That makes sense. Do you think virtual fields should have a represent
attribute?
On Nov 1, 3:25 pm, mdipierro wrote:
> True they do not. That is a complicated matter.
>
> BEAUTIFY tries serialize rows by calling rows.xml() which calls
> SQLTABLE(rows) and that only display rows.colnames where c
The specific problem you mentioned does not require any upgrade of
existing apps. They should not work just fine.
On Nov 1, 2:48 pm, "anton.mue...@gmx.de" wrote:
> Thank you Massimo,
>
> after struggling a little bit with bazaar, I finally managed to get
> revision 1304 working. It seems that th
Look in web2py trunk. I added some code to prevent this error from
happening but I cannot figure out the
proper encoding for Júlio.
> Hello, Massimo!
> Yes, I am using 1.71.0. If you want I can send you a copy of my state screen
> so you can debug. Please tell me if you need it.
> Thanks!
> Mont
I think no. They are their own representation.
On Nov 1, 3:48 pm, "mr.freeze" wrote:
> That makes sense. Do you think virtual fields should have a represent
> attribute?
>
> On Nov 1, 3:25 pm, mdipierro wrote:
>
> > True they do not. That is a complicated matter.
>
> > BEAUTIFY tries serialize
The fix in trunk works with
in the head instead of
Massimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsu
Hello Massimo!
I just changed layout.html to include this meta tag and it WORKS! Even
using 1.71.0. Wonderful!
Thanks!
Monteiro
mdipierro wrote:
> The fix in trunk works with
>
>
>
> in the head instead of
>
>
>
>
> Massimo
> >
>
--~--~-~--~~~---~-
I looked at T4 last weekend and was happy to see more updates and
progress this weekend.
To get the latest code and since 'bzr update' wasn't working to pick
up Massimo's latest changes, I pulled down code from Montiero's
branch. Hopefully, the changes can be incorporated together and I can
get
I am new to web2py. I bought the book yesterday and have been reading
through it but haven't completed it as of yet.
I wanted to know if web2py can be setup to do multisite. I'd like to
write the application once and have the users manage the layouts/
templates.
I want to do something like
These. Yes these need to be addressed except 1). You can create new
pages although the link to do that may be missing.
On Nov 1, 6:24 pm, btj wrote:
> I looked at T4 last weekend and was happy to see more updates and
> progress this weekend.
>
> To get the latest code and since 'bzr update' wasn
Yes. You have to use routes to map the different hostnames into
different web2py applications which served by the same instance.
Almost everybody here does it.
Massimo
On Nov 1, 6:21 pm, David Henry wrote:
> I am new to web2py. I bought the book yesterday and have been reading
> through it bu
I saw Section 4.15 starting on page 118 but it doesn't seem clear how
to do this on a per domain basis.
Would I need symlinks to the virtualhost directory as well?
Is there an example routes.py file I can look at to see how it is done?
Thanks,
David
On Nov 1, 2009, at 6:57 PM, mdipierro wro
In my branch I fixed the "create" link, because it was inside the "if
page:", so I moved it outside the if and it seemed to work.
About (2), it seems that the permission for that is simply leaving the
permission settings blank, it worked for me.
About (4), they only appear if you are logged
I'm just getting started with my first serious auth-based
implementation of social-networking functionality. Here's a dumb
newbie question:
- How do I add an image to the auth_group table?
- What would be the recommended way to segregate my app administrative
groups, like super_user, from groups d
I use virtualhosts on a per domain basis. You are wanting the same app, with
the same data, but different layouts depending on domain, or do you want two
completely separate apps per domain?
-Thadeus
On Sun, Nov 1, 2009 at 7:12 PM, David Henry wrote:
> uld I need symlinks to the virtualhost
Oh, and one other thing ...
Is it reasonable for me to expect that auth is the mechanism by which
I would build a web2.0 social networking capability in web2py, or
should I roll my own from scratch like I've done in the past, before
using web2py?
In particular, I want to make a community where g
Hello,
I want to use a slider widget (http://jqueryui.com/demos/slider) for
integer input in my form.
web2py uses an INPUT text box for integer input but the UI slider
widget expects a DIV and does not work with an INPUT box.
So, how do you recommend I get my FORM working with the slider widget?
Take a look at the appengine bulk loader:
http://code.google.com/appengine/docs/python/tools/uploadingdata.html
Once you have the data locally as csv, you can load it into a sql
database by writing a script to import it into web2py.
Robin
On Oct 31, 10:48 pm, mdipierro wrote:
> It works on GA
Hi everyone,
it seems as I have found a bug (if it is not intended to be that way):
I have a form with checkboxes. All the checkboxes have the same name
(so that you get only 1 var carrying all selected checkboxes)
I a user now selects only 1 checkbox you get back a number, if the
user selects mo
Different domains, single app with layouts based on the domain name.
I basically want to give end users the ability to change the look and
feel of the html/css for their particular domain while retaining
control of the application data.
On Nov 1, 2009, at 7:41 PM, Thadeus Burgess wrote:
> I
I think it is just a quirk of html. Try this:
if not isinstance(request.vars.mycheckbox, list):
request.vars.mycheckbox=[request.vars.mycheckbox]
On Nov 1, 8:19 pm, Sebastian Brandt wrote:
> Hi everyone,
> it seems as I have found a bug (if it is not intended to be that way):
>
> I have a
Thanks mr.freeze, works perfectly
On 2 Nov., 04:06, "mr.freeze" wrote:
> I think it is just a quirk of html. Try this:
>
> if not isinstance(request.vars.mycheckbox, list):
> request.vars.mycheckbox=[request.vars.mycheckbox]
>
> On Nov 1, 8:19 pm, Sebastian Brandt wrote:
>
> > Hi everyone,
I came across the same problem.
I want the user to choose 1 or more items from the set.
If I choose multiple=True it allows 0 or more selected, but if I add
IS_NOT_EMPTY() then the drop down list is not used.
Do I need to handle this use case explicitly in the controller?
On Oct 14, 12:34 am,
I don't ask for user's first and last names, although perhaps I
should? I only ask for email and user handle. So appadmin chokes when
it tries to display a membership form. If I add first_name and
last_name fields to the auth_user table then it works. Why is this a
requirement? Why shouldn't membe
OK, so maybe auth_user.id plus another identifying field of your
choice, like auth_user.uname or auth_user.email.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send emai
You can create a widget that has the slider div ,a hidden input, and a
script that puts the value of the slider in the input during the
slidestop event on the slider.
On Nov 1, 7:44 pm, Richard wrote:
> Hello,
>
> I want to use a slider widget (http://jqueryui.com/demos/slider) for
> integer inp
I would suggest something like this (pseudo code)
$('#table_integer').hide().append('');
$('#myslider').activateslider(return val to $(#table_integer).val );
// or how ever it works...
On Mon, Nov 2, 2009 at 5:41 AM, mr.freeze wrote:
>
> You can create a widget that has the slider div ,a hidden
53 matches
Mail list logo