Re: [web2py] Re: Yet an improved conference management system

2010-09-18 Thread Jason Brower
The first time I tried installing it my version of web2py was too low.  
We should have a feature to check version if they are there.

BR,
Jason

On 09/18/2010 11:04 PM, mdipierro wrote:

never do that because apps always come with the plugins they need and
sometimes I modify them. I will post this one latest one as the
official one. I allows embedding wiky pages into other pages.


On Sep 18, 3:00 pm, Jason Brower  wrote:
   

Hehe... yeah I did install the plugin wiki over the old one... I just
assumed it was needed and installed it.  Sorry, I will try again
tomorrow and get it working them.
BR,
Jason Brower

On 09/18/2010 10:47 PM, mdipierro wrote:

 

This is strange. It as if you have an old plugin_wiki installed
instead of the one that cones with conf2py (a new and modified one).
   
 

Did you re-install plugin_wiki on top of conf2py?
   
 

Massimo
   
 

On Sep 18, 2:20 pm, Jason Browerwrote:
   
 

I am sorry, I couldn't get it running.
New web2py install.
Installed the app..
Installed the plugin...
Now it gives me the error:
AttributeError: PluginWiki instance has no attribute 'embed'
Any ideas?
---
Best Regards,
Jason Brower
On 09/18/2010 07:43 PM, mr.freeze wrote:
 
 

Very nice!
   
 

On Sep 18, 1:33 am, mdipierro  wrote:
   
 

Conf2py is an Open Source Conference Management Software written in
Python
 
 

License is GPL2
Developed by Massimo Di Pierro
Support provided by MetaCryption LLC
 
 

A slideshow presentation:
 
 

  http://www.slideshare.net/mdipierro/conf2py
 
 

Download as a web2py app (includes source):
 
 

  http://conf2py.googlecode.com/files/web2py.app.conf2py.w2p
 
 

Source only from google code:
 
 

 hg clonehttps://conf2py.googlecode.com/hg/conf2py
 
 

BACKGROUND
==
 
 

This software is a complete rewrite of the web2conf software developed
for PyCon US 2009 and used for registration at PyCon 2009, PyCon 2010
and Flisol 2010. The reason for the rewrite include source code
simplification, added features, shift focus to more traditional
academic conferences.
 
 

Conf2py is in production since August 2010 for the 6th High End
Visualization Workshop in Austria:
 
 

http://vizworkshop.cct.lsu.edu/viz2010/
 
 

FEATURES

 
 

- Single Sign-On using Open ID (Google) or OAuth (Facebook, MySpace,
etc.) via Janrain.com, or Local registration/login process.
- Conference Fee Payment with Credit Card via Authorize.Net (no need
for secondary login)
- Default registration fields include: first name, last name, email,
web page, address, company, profile text, image, type of registration,
optional tutorial registration (multiple tutorials supported), food
preferences, arrival date and departure date, accompanying family
members (for optional hotel pre-registration). The list of fields is
easily extensible.
- Configurable billing policy based on time dependent conferences rate
for different roles and variable number of tutorials/sessions.
- Configurable coupon discounts and coupon cancellation
- Users can register other users and pay for them.
 
 

- First page displays a slideshow
- Arbitrary number of wiki pages using the markmin syntax
- Wiki pages allow embedding of widgets such as "comments" or "videos"
or "tagging" or "latex".
- Automatic computation of geographical latitude and longitude and
display of attendees on map.
 
 

- Paper submission and review management with roles: author, editor,
review. Author submits an abstract (talk or paper proposal). The
editor may ask for a paper submission and assign a review of the paper
or abstract to one ore more reviewers. The communication between
editor and reviewer is invisible to the author. The identity of the
reviewer is invisible to the author. The editor, based on reviewer
recommendation can accept/reject a paper. Accepted papers are
automatically published (a paper can be in any format and can include
slides).
- Paper publishing with bibtex support
- Management interface with roles: manager, editor, reviewer, author
(same person can have multiple roles depending on the paper).
 
 

We hope it will be useful. Let us know how we can improve it even
more.
 
 

Massimo
 


 




Re: [web2py] another web2py job

2010-09-18 Thread Jason Brower
We really need to get our own job networking system.  Those sites are 
garbage.  I got so sick of the PAGES of forms that I gave up and 
canceled the account just after starting it.  There are simpler and 
better ways. He could have just posted here too. :D

---
BR,
Jason Brower
On 09/18/2010 11:10 PM, mdipierro wrote:

http://www.i-freelancer.org/php/ad-hoc-scripting-tasks-odesk/

(I do not know who posted)
   




[web2py] link to plugin_wiki on web2py.com is down?

2010-09-18 Thread mart
Hi,

Just checking to see if maybe the plugin location has changed?
anyways, the link doesn't bring down the the plug-in.

Thanks
Mart :)


[web2py] Re: Expando and Polymodel on GAE?

2010-09-18 Thread mdipierro
Looks the same. We could add support for it but I think it is a
PostgreSQL specific feature.

Massimo

On Sep 18, 7:38 pm, Alvin SW  wrote:
> Hi Pierro,
>
> About the polymodel, I think that it may have an equivalence in SQL. I
> know pgsql has inheritance feature for its 
> tables.http://www.postgresql.org/docs/8.1/static/ddl-inherit.html
> Would it be similar to polymodel?
>
> On Sep 3, 2:07 am, mdipierro  wrote:
>
> > I agree thatpolymodelwould be trivial. We would only need to decide
> > how to pass parameters to db.define_table to determine if a table is 
> > apolymodelor extends an existing one. This would not have an
> > equivalent in SQL.
>
>


[web2py] Re: StackExchange for web2py community

2010-09-18 Thread mdipierro
This group I can manage and there are lots of skilled people here. I
can definitively use more support outside this group. I would be happy
to use something custom made instead of the group but I would need
some assurance that it is maintained professionally, long term, and
disaster recovery plan in place. It can be expensive.

On Sep 18, 9:10 pm, Michael Wolfe 
wrote:
> Even as I was writing my last reply, I was steadily coming up with
> more reasons for sticking with Google Groups and not moving to Stack
> Overflow.  It seems I find my own previous arguments a bit
> underwhelming.
>
> I'd still like to see something similar to SO written in web2py.  I'd
> like to get around to doing that myself, but if someone wants to try
> to beat me to it I'll give you a BIG head start ;).
>
> My final thought on this subject is that I think it would be good if
> more than just Massimo were to monitor the web2py tag on SO and answer
> questions.  As it stands now, everywhere you look on the web outside
> of the Google Group, web2py questions are answered almost exclusively
> by Massimo.  To an outsider or newbie it gives the _impression_ that
> web2py requires the desperate self promotion of its creator to
> succeed.  I've since learned that is certainly not the case, but only
> after I joined this mailing list.  Massimo deserves better support
> outside the gated walls of this group.
>
> That is all.
>
> -Mike
>
> On Sat, Sep 18, 2010 at 12:59 AM, bally boy  wrote:
> > And yeah on second thoughts about what Michael said, while it can be argued
> > that  sheer exclusivity, might stunt the growth of web2py(which even I was
> > thinking), I guess there are other ways to spread the word too...
>
> > On Sat, Sep 18, 2010 at 10:24 AM, bally boy  wrote:
>
> >> I am with Massimo on one thing, not to scatter information all around.As a
> >> platform although both Stack Overflow and Stack exchange are great and
> >> better than google mailing lists but it does invite a lot of uninvited
> >> guests who actually know nothing.
> >> For eg: - let us say someone puts up a post asking how to do this and some
> >> troll replies that it can never be done on web2py or no web2py is not for
> >> this etc, the signals that it sends to people who are newbies wont be 
> >> right,
> >> and you might find yourself arguing most of the time rather than solving
> >> issues which is what is currently happening on forums like reddit.
> >> On the other hand one might argue that it would give a strong platform for
> >> the entire community to come forward and spread the word, which as of now 
> >> is
> >> restricted to only the mailing lists.
> >> Although I am not in favour of moving out from mailing lists , I would be
> >> wherever people like Massimo and other core contributors are around.
> >>  >> one... what the hell!.. you use web2py .. dont you!.. I read some post
> >> wherein someone was actually working on something like it.. >
> >> One more thing, let us leave the decision to Massimo, ultimately he is the
> >> one who is going to address most of the issues ...lol!.. let him decide
> >> where he wants to be!
>
> >> On Sat, Sep 18, 2010 at 12:43 AM, Michael Wolfe
> >>  wrote:
>
> >>> I understand your concern, Massimo.  However, I think the solution is
> >>> not to ignore SO, but to try to get more knowledgeable web2py users
> >>> answering questions there.  You will still have general knowledge
> >>> folks answering web2py questions, but the voting system should leave
> >>> their answers at the bottom of the page, while the focused answers get
> >>> voted up.
>
> >>> The biggest problem I currently see with a web2py-centric Stack
> >>> Exchange site is I don't think it has even a tiny chance of getting
> >>> through the ridiculous "Area-51" approval process.  I remember seeing
> >>> some posts about somebody working on a web2py-based SO clone.  That
> >>> might be a better option.
>
> >>> The other issue I have with a separate site just for web2py, whether
> >>> it is Google Groups or web2py.stackexchange, is that some problems may
> >>> not necessarily be web2py specific.  Especially for people new to
> >>> programming and/or python and/or web frameworks it may not be clear
> >>> what their problem really relates to.
>
> >>> You should know that as I'm writing this I'm having quite a lively
> >>> debate in my own head.  So I apologize if this post is disjointed or
> >>> contradictory.  I guess I can't convince myself strongly one way or
> >>> another of what the best solution is.  I'd hate to lose the community
> >>> and focused knowledge of the Google Group, but I think the very
> >>> exclusiveness of the group may be stunting the growth of web2py.
>
> >>> On Fri, Sep 17, 2010 at 1:48 PM, spiffytech  wrote:
> >>> > StackExchange is designed such that people who don't know what they're
> >>> > talking about get voted down, while those who have quality answers get
> >>> > voted up to the top. When I'm reading StackOverflow, the reading the

[web2py] Re: autodelete question

2010-09-18 Thread mdipierro
Can you show us the table in question and the queue table?

On Sep 18, 10:59 pm, weheh  wrote:
> I have a table with an upload field declared with autodelete=True. The
> upload file is not really uploaded, it's created on the fly. The table
> id is referenced by a queue, which is polled to determine whether or
> not the upload file needs to be created. Once created, the queue entry
> is deleted. This is where the problem is -- deleting the queue entry
> also deletes the uploaded file. I only want the uploaded file deleted
> when it's parent record is deleted, not when the queue record is
> deleted. I've tried a db.mytable.fieldname.autodelete=False just
> before deleting the queue entry, but this doesn't work. What should I
> be doing?


[web2py] Re: Expando and Polymodel on GAE?

2010-09-18 Thread Alvin SW
Hi Pierro,

About the polymodel, I think that it may have an equivalence in SQL. I
know pgsql has inheritance feature for its tables.
http://www.postgresql.org/docs/8.1/static/ddl-inherit.html
Would it be similar to polymodel?

On Sep 3, 2:07 am, mdipierro  wrote:
> I agree thatpolymodelwould be trivial. We would only need to decide
> how to pass parameters to db.define_table to determine if a table is 
> apolymodelor extends an existing one. This would not have an
> equivalent in SQL.
>


Re: [web2py] Re: StackExchange for web2py community

2010-09-18 Thread bally boy
I agree!

On Sun, Sep 19, 2010 at 7:40 AM, Michael Wolfe <
michael.joseph.wo...@gmail.com> wrote:

> Even as I was writing my last reply, I was steadily coming up with
> more reasons for sticking with Google Groups and not moving to Stack
> Overflow.  It seems I find my own previous arguments a bit
> underwhelming.
>
> I'd still like to see something similar to SO written in web2py.  I'd
> like to get around to doing that myself, but if someone wants to try
> to beat me to it I'll give you a BIG head start ;).
>
> My final thought on this subject is that I think it would be good if
> more than just Massimo were to monitor the web2py tag on SO and answer
> questions.  As it stands now, everywhere you look on the web outside
> of the Google Group, web2py questions are answered almost exclusively
> by Massimo.  To an outsider or newbie it gives the _impression_ that
> web2py requires the desperate self promotion of its creator to
> succeed.  I've since learned that is certainly not the case, but only
> after I joined this mailing list.  Massimo deserves better support
> outside the gated walls of this group.
>
> That is all.
>
> -Mike
>
> On Sat, Sep 18, 2010 at 12:59 AM, bally boy  wrote:
> > And yeah on second thoughts about what Michael said, while it can be
> argued
> > that  sheer exclusivity, might stunt the growth of web2py(which even I
> was
> > thinking), I guess there are other ways to spread the word too...
> >
> > On Sat, Sep 18, 2010 at 10:24 AM, bally boy 
> wrote:
> >>
> >> I am with Massimo on one thing, not to scatter information all around.As
> a
> >> platform although both Stack Overflow and Stack exchange are great and
> >> better than google mailing lists but it does invite a lot of uninvited
> >> guests who actually know nothing.
> >> For eg: - let us say someone puts up a post asking how to do this and
> some
> >> troll replies that it can never be done on web2py or no web2py is not
> for
> >> this etc, the signals that it sends to people who are newbies wont be
> right,
> >> and you might find yourself arguing most of the time rather than solving
> >> issues which is what is currently happening on forums like reddit.
> >> On the other hand one might argue that it would give a strong platform
> for
> >> the entire community to come forward and spread the word, which as of
> now is
> >> restricted to only the mailing lists.
> >> Although I am not in favour of moving out from mailing lists , I would
> be
> >> wherever people like Massimo and other core contributors are around.
> >>  >> one... what the hell!.. you use web2py .. dont you!.. I read some post
> >> wherein someone was actually working on something like it.. >
> >> One more thing, let us leave the decision to Massimo, ultimately he is
> the
> >> one who is going to address most of the issues ...lol!.. let him decide
> >> where he wants to be!
> >>
> >>
> >> On Sat, Sep 18, 2010 at 12:43 AM, Michael Wolfe
> >>  wrote:
> >>>
> >>> I understand your concern, Massimo.  However, I think the solution is
> >>> not to ignore SO, but to try to get more knowledgeable web2py users
> >>> answering questions there.  You will still have general knowledge
> >>> folks answering web2py questions, but the voting system should leave
> >>> their answers at the bottom of the page, while the focused answers get
> >>> voted up.
> >>>
> >>> The biggest problem I currently see with a web2py-centric Stack
> >>> Exchange site is I don't think it has even a tiny chance of getting
> >>> through the ridiculous "Area-51" approval process.  I remember seeing
> >>> some posts about somebody working on a web2py-based SO clone.  That
> >>> might be a better option.
> >>>
> >>> The other issue I have with a separate site just for web2py, whether
> >>> it is Google Groups or web2py.stackexchange, is that some problems may
> >>> not necessarily be web2py specific.  Especially for people new to
> >>> programming and/or python and/or web frameworks it may not be clear
> >>> what their problem really relates to.
> >>>
> >>> You should know that as I'm writing this I'm having quite a lively
> >>> debate in my own head.  So I apologize if this post is disjointed or
> >>> contradictory.  I guess I can't convince myself strongly one way or
> >>> another of what the best solution is.  I'd hate to lose the community
> >>> and focused knowledge of the Google Group, but I think the very
> >>> exclusiveness of the group may be stunting the growth of web2py.
> >>>
> >>>
> >>>
> >>> On Fri, Sep 17, 2010 at 1:48 PM, spiffytech 
> wrote:
> >>> > StackExchange is designed such that people who don't know what
> they're
> >>> > talking about get voted down, while those who have quality answers
> get
> >>> > voted up to the top. When I'm reading StackOverflow, the reading the
> >>> > highest-voted questions first makes the poor quality of the lower-
> >>> > voted questions very apparent to me, and I distrust them.
> >>> >
> >>> > Also, a web2py-centric StackExchange should only attrac

[web2py] Re: OpenID supported with login method

2010-09-18 Thread RipRyness
I had issues with extended_login_form

Line 89, "request = self.auth.environment.request", was throwing an
exception.  Since the example was passing in request it seemed weird
it wasn't being used.  So I changed init

def __init__(self,
 request,
 auth,
 alt_login_form,
 signals=[],
 login_arg = 'login'
 ):
self.request = request
...

Then I changed line 89 (now 91) to this:

request = self.request

This seems to have fixed the problem.

-Rip

On Jul 28, 8:17 pm, keitheis  wrote:
> Okay, if you have any question or suggestion please tell me. :)
>
> On Jul 29, 4:46 am, mdipierro  wrote:
>
>
>
> > No. like inclusion in web2py_src.zip as it is.
>
> > On Jul 28, 11:42 am, keitheis  wrote:
>
> > > like inclusion_login_form.py ?
>
> > > On Jul 28, 12:50 am, mdipierro  wrote:
>
> > > > +1. I am thinking about inclusion
>
> > > > On Jul 27, 11:37 am, keitheis  wrote:
>
> > > > > No problem.
>
> > > > > It extends the built-in login form with external login form.
>
> > > > > Like the bottom of the 
> > > > > slicehttp://www.web2pyslices.com/main/slices/take_slice/28
>
> > > > > Pichttp://www.web2pyslices.com/main/static/share/images/rpxembedlocal.JPG
>
> > > > > Maybe I should name it embedded_auth_form or something else.
>
> > > > > Hope it's not too confusing.
>
> > > > > On Jul 27, 8:59 pm, mdipierro  wrote:
>
> > > > > > Sorry for my late replay.
>
> > > > > > Can you explain whatextended_login_formdoes?
>
> > > > > > On Jul 25, 12:52 am, keitheis  wrote:> Hi,
>
> > > > > > > I made theOpenIDsupport for sahana eden. And thanks to Fran Boon, 
> > > > > > > I
> > > > > > > did it most on web2py/gluon/contrib/login_methods . Here is the 
> > > > > > > code:
>
> > > > > > >https://code.launchpad.net/~keitheis/web2py/openid
>
> > > > > > > Fran said that in the long run it's better to have it maintained 
> > > > > > > up
> > > > > > > here.
> > > > > > > So I send it here for the feedback.
>
> > > > > > > Kind Regards,
> > > > > > > Keith Yang


[web2py] autodelete question

2010-09-18 Thread weheh
I have a table with an upload field declared with autodelete=True. The
upload file is not really uploaded, it's created on the fly. The table
id is referenced by a queue, which is polled to determine whether or
not the upload file needs to be created. Once created, the queue entry
is deleted. This is where the problem is -- deleting the queue entry
also deletes the uploaded file. I only want the uploaded file deleted
when it's parent record is deleted, not when the queue record is
deleted. I've tried a db.mytable.fieldname.autodelete=False just
before deleting the queue entry, but this doesn't work. What should I
be doing?


[web2py] Re: tables/selects caching in Storage (for GAE)

2010-09-18 Thread mdipierro
I think we need a cache.request that works per perquest. I will
implement it in a couple of days.



On Sep 18, 9:06 pm, Jurgis Pralgauskis 
wrote:
> at first I thought, I need this "caching" **per request**,
> but maybe this would not be the problem to set it for several seconds
> or even minutes
>
> A)
> if I want to use **dict[key]** notation (for clear'er code),
> I could do like this:
>
> for row in db(...).select(...,cache=(cache.ram,expiration))::
>     data.MyTable[row.id] = row
>
> B) or I could inherit Storage and overload like this?
>
> def __getitem__ (self, key):
>    self.rows.find(lambda r: r.id==key)
>
> Question: which variant woud be better?
> I am not sure, but seems to me - A ?
>
> On 19 Rugs, 01:32, mdipierro  wrote:
>
> > Something like that is there:
>
> > expiration=3600 # seconds
> > rows=db(...).select(...,cache=(cache.ram,expiration))
>
> > reset with
>
> > rows=db(...).select(...,cache=(cache.ram,0))
>
> > On Sep 18, 5:27 pm, Jurgis Pralgauskis 
> > wrote:
>
> > > Hello,
>
> > > I think I got a bit trapped by DAL in GAE :)
> > > maybe because of often used  db.MyTable[i].somefield
>
> > > /default/topic_examples/27001/view 200 2721ms 5145cpu_ms
> > > 2906api_cpu_ms
>
> > > service.call    #RPCs   real time       api time
> > > datastore_v3.Get        62      712ms   516ms
> > > datastore_v3.RunQuery   35      706ms   2390ms
> > > memcache.Get    3       27ms    0ms
> > > memcache.Set    2       12ms    0ms
>
> > > Though my tables are still quite small: ~ 5 main tables with ~ 100
> > > records in each.
>
> > > in order to decrease db requests, I think to make some singleton like
> > > interface, so I could ask
> > > data.MyTable[i].somefield
>
> > > instead of
> > > db.MyTable[i].somefield
>
> > > data would hold  storage copies of Tables which I need to access often
> > > by index
>
> > > and if data doesn't have particular table or its record, it could
> > > call db.MyTable.. then (and optionaly cache the result the Singleton
> > > way)
>
> > > maybe this could be called  select_cache.
> > > by the way, find() probably could also be more appropriate than
> > > separate select in such cases?
>
> > > this is just a plan now, am I on a sound way?
> > > how big the tables should grow (approximatelly) for my mechanizm to
> > > become useless??
>
>


Re: [web2py] Re: StackExchange for web2py community

2010-09-18 Thread Michael Wolfe
Even as I was writing my last reply, I was steadily coming up with
more reasons for sticking with Google Groups and not moving to Stack
Overflow.  It seems I find my own previous arguments a bit
underwhelming.

I'd still like to see something similar to SO written in web2py.  I'd
like to get around to doing that myself, but if someone wants to try
to beat me to it I'll give you a BIG head start ;).

My final thought on this subject is that I think it would be good if
more than just Massimo were to monitor the web2py tag on SO and answer
questions.  As it stands now, everywhere you look on the web outside
of the Google Group, web2py questions are answered almost exclusively
by Massimo.  To an outsider or newbie it gives the _impression_ that
web2py requires the desperate self promotion of its creator to
succeed.  I've since learned that is certainly not the case, but only
after I joined this mailing list.  Massimo deserves better support
outside the gated walls of this group.

That is all.

-Mike

On Sat, Sep 18, 2010 at 12:59 AM, bally boy  wrote:
> And yeah on second thoughts about what Michael said, while it can be argued
> that  sheer exclusivity, might stunt the growth of web2py(which even I was
> thinking), I guess there are other ways to spread the word too...
>
> On Sat, Sep 18, 2010 at 10:24 AM, bally boy  wrote:
>>
>> I am with Massimo on one thing, not to scatter information all around.As a
>> platform although both Stack Overflow and Stack exchange are great and
>> better than google mailing lists but it does invite a lot of uninvited
>> guests who actually know nothing.
>> For eg: - let us say someone puts up a post asking how to do this and some
>> troll replies that it can never be done on web2py or no web2py is not for
>> this etc, the signals that it sends to people who are newbies wont be right,
>> and you might find yourself arguing most of the time rather than solving
>> issues which is what is currently happening on forums like reddit.
>> On the other hand one might argue that it would give a strong platform for
>> the entire community to come forward and spread the word, which as of now is
>> restricted to only the mailing lists.
>> Although I am not in favour of moving out from mailing lists , I would be
>> wherever people like Massimo and other core contributors are around.
>> > one... what the hell!.. you use web2py .. dont you!.. I read some post
>> wherein someone was actually working on something like it.. >
>> One more thing, let us leave the decision to Massimo, ultimately he is the
>> one who is going to address most of the issues ...lol!.. let him decide
>> where he wants to be!
>>
>>
>> On Sat, Sep 18, 2010 at 12:43 AM, Michael Wolfe
>>  wrote:
>>>
>>> I understand your concern, Massimo.  However, I think the solution is
>>> not to ignore SO, but to try to get more knowledgeable web2py users
>>> answering questions there.  You will still have general knowledge
>>> folks answering web2py questions, but the voting system should leave
>>> their answers at the bottom of the page, while the focused answers get
>>> voted up.
>>>
>>> The biggest problem I currently see with a web2py-centric Stack
>>> Exchange site is I don't think it has even a tiny chance of getting
>>> through the ridiculous "Area-51" approval process.  I remember seeing
>>> some posts about somebody working on a web2py-based SO clone.  That
>>> might be a better option.
>>>
>>> The other issue I have with a separate site just for web2py, whether
>>> it is Google Groups or web2py.stackexchange, is that some problems may
>>> not necessarily be web2py specific.  Especially for people new to
>>> programming and/or python and/or web frameworks it may not be clear
>>> what their problem really relates to.
>>>
>>> You should know that as I'm writing this I'm having quite a lively
>>> debate in my own head.  So I apologize if this post is disjointed or
>>> contradictory.  I guess I can't convince myself strongly one way or
>>> another of what the best solution is.  I'd hate to lose the community
>>> and focused knowledge of the Google Group, but I think the very
>>> exclusiveness of the group may be stunting the growth of web2py.
>>>
>>>
>>>
>>> On Fri, Sep 17, 2010 at 1:48 PM, spiffytech  wrote:
>>> > StackExchange is designed such that people who don't know what they're
>>> > talking about get voted down, while those who have quality answers get
>>> > voted up to the top. When I'm reading StackOverflow, the reading the
>>> > highest-voted questions first makes the poor quality of the lower-
>>> > voted questions very apparent to me, and I distrust them.
>>> >
>>> > Also, a web2py-centric StackExchange should only attract people who
>>> > know about web2py. This is unlike StackOverflow, which caters to a
>>> > general audience and thus gets many people with only general knowledge
>>> > and general answers.
>>> >
>>> > The checks, balances, and filters seem sufficient to me. Do you
>>> > disagree?
>>> >
>>> >
>>> > On S

[web2py] Re: tables/selects caching in Storage (for GAE)

2010-09-18 Thread Jurgis Pralgauskis
at first I thought, I need this "caching" **per request**,
but maybe this would not be the problem to set it for several seconds
or even minutes

A)
if I want to use **dict[key]** notation (for clear'er code),
I could do like this:

for row in db(...).select(...,cache=(cache.ram,expiration))::
data.MyTable[row.id] = row


B) or I could inherit Storage and overload like this?

def __getitem__ (self, key):
   self.rows.find(lambda r: r.id==key)


Question: which variant woud be better?
I am not sure, but seems to me - A ?



On 19 Rugs, 01:32, mdipierro  wrote:
> Something like that is there:
>
> expiration=3600 # seconds
> rows=db(...).select(...,cache=(cache.ram,expiration))
>
> reset with
>
> rows=db(...).select(...,cache=(cache.ram,0))
>
> On Sep 18, 5:27 pm, Jurgis Pralgauskis 
> wrote:
>
> > Hello,
>
> > I think I got a bit trapped by DAL in GAE :)
> > maybe because of often used  db.MyTable[i].somefield
>
> > /default/topic_examples/27001/view 200 2721ms 5145cpu_ms
> > 2906api_cpu_ms
>
> > service.call    #RPCs   real time       api time
> > datastore_v3.Get        62      712ms   516ms
> > datastore_v3.RunQuery   35      706ms   2390ms
> > memcache.Get    3       27ms    0ms
> > memcache.Set    2       12ms    0ms
>
> > Though my tables are still quite small: ~ 5 main tables with ~ 100
> > records in each.
>
> > in order to decrease db requests, I think to make some singleton like
> > interface, so I could ask
> > data.MyTable[i].somefield
>
> > instead of
> > db.MyTable[i].somefield
>
> > data would hold  storage copies of Tables which I need to access often
> > by index
>
> > and if data doesn't have particular table or its record, it could
> > call db.MyTable.. then (and optionaly cache the result the Singleton
> > way)
>
> > maybe this could be called  select_cache.
> > by the way, find() probably could also be more appropriate than
> > separate select in such cases?
>
> > this is just a plan now, am I on a sound way?
> > how big the tables should grow (approximatelly) for my mechanizm to
> > become useless??
>
>


[web2py] Re: tooltips with custom forms

2010-09-18 Thread Brian M
{{=form.custom.comment.field_name}} will have the comment that you
defined in the table definition.

Perhaps check out qTip (http://craigsworks.com/projects/qtip/) for a
way to create & trigger the tooltips.

In your view you can do:


{{=form.custom.label.field_name}}:
{{=form.custom.widget.field_name}} 



$(document).ready(function()
{

//enable a qTip on the desired field (see qTip docs for how you
could globally enable)
$('#table_fieldname').qtip({
   content: '{{=form.custom.comment.field_name}}',
   position: {
  corner: {
 tooltip: 'leftMiddle', // <-Arrow will be in in
the middle of the tip's left side
 target: 'rightMiddle' // ...pointing at the
middle of the field's right side
  }
   },
   style: {
  border: {
 width: 5,
 radius: 10
  },
  padding: 10,
  textAlign: 'center',
  tip: true, // Give it a speech bubble tip with
automatic corner detection
  name: 'dark' // Style it according to the preset
'dark' style
   },
   show: {when: { event: 'focus' }},
   hide: 'blur'
});

})



--Brian

On Sep 18, 2:35 am, "david.waldrop"  wrote:
> Does anyone have a suggestion for how to implement a tooltip/rollover
> capability when using custom forms like below:
>
> 
> 
> Meeting Name:
> {{form.element('input',_name='name')['_size']=50}}
> {{=form.custom.widget.name}}
> 
> 
> Password:
> {{=form.custom.widget.password}}
> {{=form.custom.label['password']}}
> 
> 
> Status:
> {{=form.custom.widget.status}}
> {{=form.custom.label['status']}}
> 
>
> Ideally I would like to use the comment attribute specified in the
> table definition as the test to display.  I did see a couple of
> examples but they seemed to work with non-custom forms and I could not
> figure out how to invoke the tooltip/mouseover.


Re: [web2py] Re: URL error in appadmin

2010-09-18 Thread Jonathan Lundell
On Sep 18, 2010, at 4:58 PM, Avik Basu wrote:
> 
> I tried your suggestion and tracked the error to the following line
> which was in my db.py:
> 
> from gluon.sqlhtml import *

Ah, that's good to put to rest.

sqlhtml does from html import *

I guess they must all end up in the namespace. It doesn't hurt sqlhtml, because 
the only place it calls URL it explicitly includes request: self.url = 
URL(r=request,args=request.args)

There are other reasons to avoid import *, so the fix is to be more selective. 
I'll look at getting rid of import * in sqlhtml, too.

> 
> I guess this import overrided the URL function.  When I took it out,
> everything works.  Thanks so much for your patience and helping me get
> through this issue so methodically!  The web2py community is quite
> exceptional.
> 
> Avik
> 
> 
> 
> On Sep 18, 7:07 pm, Jonathan Lundell  wrote:
>> I should also mention that if I were able to reproduce the problem here, I'd 
>> look at it with a debugger, watching URL in the global namespace of a 
>> request. So if that's a possibility




[web2py] Re: URL error in appadmin

2010-09-18 Thread Avik Basu
I tried your suggestion and tracked the error to the following line
which was in my db.py:

from gluon.sqlhtml import *

I guess this import overrided the URL function.  When I took it out,
everything works.  Thanks so much for your patience and helping me get
through this issue so methodically!  The web2py community is quite
exceptional.

Avik



On Sep 18, 7:07 pm, Jonathan Lundell  wrote:
> I should also mention that if I were able to reproduce the problem here, I'd 
> look at it with a debugger, watching URL in the global namespace of a 
> request. So if that's a possibility


Re: [web2py] Re: URL error in appadmin

2010-09-18 Thread Jonathan Lundell
I should also mention that if I were able to reproduce the problem here, I'd 
look at it with a debugger, watching URL in the global namespace of a request. 
So if that's a possibility

Re: [web2py] Re: URL error in appadmin

2010-09-18 Thread Jonathan Lundell
On Sep 18, 2010, at 3:46 PM, Avik Basu wrote:
> 
> I tried the following command in both my app (where URL) and the
> welcome app (where URL does not fail):
> 
> {{=gluon.html._gURL(request).__name__}}
> 
> and the result for both apps was:
> 
> _URL
> 
> Does that provide any clues?

It verifies that both apps are really running with the right code. But for some 
reason, it seems to be messed up at the time that you run any controller in 
your app. That's a puzzle to me.

I appreciate your patience...

So, here's something we can try. In your first (alphabetically) model, create a 
dict: 

urldebug = dict()
urldebug['model1name'] = URL.__name__

The idea will be to trace URL.__name__ as we progress through a request. So at 
the beginning of each model file:

urldebug['model2name'] = URL.__name__

...and one more at the end of your last model.

Then one more in one of your failing controllers (that is, failing if you try 
to call URL with one argument; not actually failing, because we want to get to 
the view).

Then pass urldebug to your view, and dump it there. {{=BEAUTIFY(urldebug)}} 
will do the trick.

Hopefully we'll see the name change from _URL to URL at some point in the 
sequence, and then we can go lion hunting.

> 
> On Sep 18, 5:03 pm, Jonathan Lundell  wrote:
>> Massimo, any ideas?
>> 
>> On Sep 18, 2010, at 1:24 PM, Avik Basu wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> I put this:
>>> {{=URL.__name__}}
>> 
>>> in the view of my index page and it showed
>>> URL
>> 
>>> (not _URL as you said)
>> 
>>> Also, I don't know if its helpful to mention that the latest format
>>> for the URL function is not working anywhere in my app, not just in
>>> appadmin.  So, if I put:
>> 
>>> {{=URL('index')}}
>> 
>>> in my index page, I get the same syntax error that I had in appadmin.
>> 
>> That's good to know.
>> 
>> You could try this (you'll need to import gluon.html):
>> 
>> {{=gluon.html._gURL(request).__name__}}
>> 
>> That's what the global URL should be.
>> 
>> I think you were saying that this works OK in the other apps, right? You 
>> could stick similar logic into welcome, for comparison purposes, good vs 
>> bad. You might have to delete the welcome/compiled directory.
>> 
>> By way of background, the URL logic was updated not all that long ago. Have 
>> a look at html._gURL, and then compileapp.build_environment() to see how 
>> it's being used. URL is being replaced by the closure (I think it's a 
>> closure) _gURL(request), so the value of request gets bound to the URL call, 
>> without having to supply it all the time.
>> 
>> Also, a single argument to the original URL is treated as the application, 
>> whereas the closure treats it as the function. We see the former in the 
>> syntax error print below, more evidence that we're not invoking the closure.
>> 
>> 
>> 
>> 
>> 
>>> On Sep 18, 4:10 pm, Jonathan Lundell  wrote:
 On Sep 18, 2010, at 12:52 PM, Avik Basu wrote:
>> 
> Line 219 of gluon/compileapp.py is as you described it. I also deleted
> the whole gluon directory and downloaded the latest source of web2py
> before restarting the server.  Also, as far as I can tell, I am not
> doing anything tricky with Globals or the URL symbol in my models.
>> 
> I now get the following syntax error:
>> 
> SyntaxError: URL: a=index c=None f=None r=None u=URL
>> 
 Thanks.
>> 
 I realized after I sent that last request that the __name__ of URL might 
 not be significant at this point, because we're inside the URL() function.
>> 
 This might be worth a try. In appadmin.py, near the beginning (after the 
 imports, but before response.menu is set):
>> 
 logger = logging.getLogger('web2py')
 logger.warning('appadmin url.name=%s' % URL.__name__)
>> 
 What you *should* see is _URL. That's what I see if I stick it in my own 
 appadmin.
>> 
> On Sep 18, 3:33 pm, Jonathan Lundell  wrote:
>> On Sep 18, 2010, at 11:52 AM, Avik Basu wrote:
>> 
>>> After restarting the server, I get the following error:
>> 
>>> SyntaxError: URL: a=index c=None f=None r=None
>> 
>> I was afraid of that, and I can't explain it.
>> 
>> Please check that line 219 of gluon/compileapp.py is:
>> 
>> environment['URL'] = html._gURL(request)
>> 
>> And you might want to quit your server, delete all the .pyc files in 
>> gluon, and restart.
>> 
>> Do you do anything tricky with globals() or the URL symbol in your 
>> models?
>> 
>> And let's try one more printing attempt:
>> 
>>if not (application and controller and function):
>>if r:
>>msg = 'URL: a=%s c=%s f=%s r.a=%s r.c=%s r.f=%s' % 
>> (application,controller,function,r.application,r.controller,r.function)
>>else:
>>msg = 'URL: a=%s c=%s f=%s r=%s u=%s' % 
>> (application,controller,function,r,URL.__name__)
>>raise SyntaxError, msg
>> 
>>> On Sep 18, 2:46 pm, Jonathan Lundell  wrote:

Re: [web2py] Re: failed import of a module

2010-09-18 Thread Michele Comitini
is there  a __init__.py in modules?

2010/9/19 Jonathan Lundell :
> On Sep 18, 2010, at 2:46 PM, mdipierro wrote:
>>
>> Not all modules can go in the modules folder. Some of them exepect to
>> be in sys.path
>
> There's a variety of sys.path editing in web2py, but I think it's not 
> entirely consistent.


Re: [web2py] Re: failed import of a module

2010-09-18 Thread Jonathan Lundell
On Sep 18, 2010, at 2:46 PM, mdipierro wrote:
> 
> Not all modules can go in the modules folder. Some of them exepect to
> be in sys.path

There's a variety of sys.path editing in web2py, but I think it's not entirely 
consistent.

[web2py] Re: URL error in appadmin

2010-09-18 Thread Avik Basu
I tried the following command in both my app (where URL) and the
welcome app (where URL does not fail):

{{=gluon.html._gURL(request).__name__}}

and the result for both apps was:

_URL

Does that provide any clues?

On Sep 18, 5:03 pm, Jonathan Lundell  wrote:
> Massimo, any ideas?
>
> On Sep 18, 2010, at 1:24 PM, Avik Basu wrote:
>
>
>
>
>
>
>
> > I put this:
> > {{=URL.__name__}}
>
> > in the view of my index page and it showed
> > URL
>
> > (not _URL as you said)
>
> > Also, I don't know if its helpful to mention that the latest format
> > for the URL function is not working anywhere in my app, not just in
> > appadmin.  So, if I put:
>
> > {{=URL('index')}}
>
> > in my index page, I get the same syntax error that I had in appadmin.
>
> That's good to know.
>
> You could try this (you'll need to import gluon.html):
>
> {{=gluon.html._gURL(request).__name__}}
>
> That's what the global URL should be.
>
> I think you were saying that this works OK in the other apps, right? You 
> could stick similar logic into welcome, for comparison purposes, good vs bad. 
> You might have to delete the welcome/compiled directory.
>
> By way of background, the URL logic was updated not all that long ago. Have a 
> look at html._gURL, and then compileapp.build_environment() to see how it's 
> being used. URL is being replaced by the closure (I think it's a closure) 
> _gURL(request), so the value of request gets bound to the URL call, without 
> having to supply it all the time.
>
> Also, a single argument to the original URL is treated as the application, 
> whereas the closure treats it as the function. We see the former in the 
> syntax error print below, more evidence that we're not invoking the closure.
>
>
>
>
>
> > On Sep 18, 4:10 pm, Jonathan Lundell  wrote:
> >> On Sep 18, 2010, at 12:52 PM, Avik Basu wrote:
>
> >>> Line 219 of gluon/compileapp.py is as you described it. I also deleted
> >>> the whole gluon directory and downloaded the latest source of web2py
> >>> before restarting the server.  Also, as far as I can tell, I am not
> >>> doing anything tricky with Globals or the URL symbol in my models.
>
> >>> I now get the following syntax error:
>
> >>> SyntaxError: URL: a=index c=None f=None r=None u=URL
>
> >> Thanks.
>
> >> I realized after I sent that last request that the __name__ of URL might 
> >> not be significant at this point, because we're inside the URL() function.
>
> >> This might be worth a try. In appadmin.py, near the beginning (after the 
> >> imports, but before response.menu is set):
>
> >> logger = logging.getLogger('web2py')
> >> logger.warning('appadmin url.name=%s' % URL.__name__)
>
> >> What you *should* see is _URL. That's what I see if I stick it in my own 
> >> appadmin.
>
> >>> On Sep 18, 3:33 pm, Jonathan Lundell  wrote:
>  On Sep 18, 2010, at 11:52 AM, Avik Basu wrote:
>
> > After restarting the server, I get the following error:
>
> > SyntaxError: URL: a=index c=None f=None r=None
>
>  I was afraid of that, and I can't explain it.
>
>  Please check that line 219 of gluon/compileapp.py is:
>
>      environment['URL'] = html._gURL(request)
>
>  And you might want to quit your server, delete all the .pyc files in 
>  gluon, and restart.
>
>  Do you do anything tricky with globals() or the URL symbol in your 
>  models?
>
>  And let's try one more printing attempt:
>
>     if not (application and controller and function):
>         if r:
>             msg = 'URL: a=%s c=%s f=%s r.a=%s r.c=%s r.f=%s' % 
>  (application,controller,function,r.application,r.controller,r.function)
>         else:
>             msg = 'URL: a=%s c=%s f=%s r=%s u=%s' % 
>  (application,controller,function,r,URL.__name__)
>         raise SyntaxError, msg
>
> > On Sep 18, 2:46 pm, Jonathan Lundell  wrote:
> >> On Sep 18, 2010, at 11:40 AM, Avik Basu wrote:
>
> >>> When I replace the code in gluon/html.py, I still keep getting the
> >>> same SyntaxError ('not enough information to build the url') which
> >>> seems strange since that is not even in the code anymore.
>
> >>> I am sort of new to debugging the gluon code so I maybe making some
> >>> simple mistake.   I did delete the html.pyc file. Do I need to restart
> >>> the server?
>
> >> I would assume so, given the message, and especially if you're not 
> >> seeing html.pyc getting recreated.
>
> >>> On Sep 18, 2:31 pm, Jonathan Lundell  wrote:
>  On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
>
> > Sure, I'm happy to help debug.  Send me the print statements when 
> > you
> > get a chance.
>
>  FWIW, I just did the same thing (move the current appadmin into my 
>  own app) and it seems to work OK; at least I can access 
>  appadmin/index OK.


[web2py] Re: gae memcace clear?

2010-09-18 Thread Jurgis Pralgauskis
would it be sound to use some cache_db instead of memcache in GAE
then?
For example if I render a CPU requiring view I want to cache,
but  I could clear it anytime I like.

hm, or could there be a recipy to abandon current memcached object.
this would need extra hash table:

as if now probably is sth like
stuff_key <---cached---> stuff_value

would become
stuff_key <---extra_hash---> stuff_key_timestamp <---cached--->
stuff_value
and on clear just delete the stuff_key from extra_hash


On 2 Rugs, 00:25, mdipierro  wrote:
> no. sorry
>
> On Sep 1, 3:49 pm,JurgisPralgauskis 
> wrote:
>
> > Hello,
>
> > inhttp://www.web2py.com/book/default/chapter/04booksays
>
> > The time_expire can be set to 0 to force a cache refresh and to None
> > to prevent the content from ever expiring.
> > You can clear one or more cache variables with
> > cache.ram.clear(regex='...')
>
> > does this apply to gaememcache?
>
> > ifmemcachedecorates some controller,
> > and I know its key, how can I force recache its new result?
>
>


[web2py] Re: tables/selects caching in Storage (for GAE)

2010-09-18 Thread mdipierro
Something like that is there:

expiration=3600 # seconds
rows=db(...).select(...,cache=(cache.ram,expiration))

reset with

rows=db(...).select(...,cache=(cache.ram,0))


On Sep 18, 5:27 pm, Jurgis Pralgauskis 
wrote:
> Hello,
>
> I think I got a bit trapped by DAL in GAE :)
> maybe because of often used  db.MyTable[i].somefield
>
> /default/topic_examples/27001/view 200 2721ms 5145cpu_ms
> 2906api_cpu_ms
>
> service.call    #RPCs   real time       api time
> datastore_v3.Get        62      712ms   516ms
> datastore_v3.RunQuery   35      706ms   2390ms
> memcache.Get    3       27ms    0ms
> memcache.Set    2       12ms    0ms
>
> Though my tables are still quite small: ~ 5 main tables with ~ 100
> records in each.
>
> in order to decrease db requests, I think to make some singleton like
> interface, so I could ask
> data.MyTable[i].somefield
>
> instead of
> db.MyTable[i].somefield
>
> data would hold  storage copies of Tables which I need to access often
> by index
>
> and if data doesn't have particular table or its record, it could
> call db.MyTable.. then (and optionaly cache the result the Singleton
> way)
>
> maybe this could be called  select_cache.
> by the way, find() probably could also be more appropriate than
> separate select in such cases?
>
> this is just a plan now, am I on a sound way?
> how big the tables should grow (approximatelly) for my mechanizm to
> become useless??


[web2py] tables/selects caching in Storage (for GAE)

2010-09-18 Thread Jurgis Pralgauskis
Hello,

I think I got a bit trapped by DAL in GAE :)
maybe because of often used  db.MyTable[i].somefield

/default/topic_examples/27001/view 200 2721ms 5145cpu_ms
2906api_cpu_ms

service.call#RPCs   real time   api time
datastore_v3.Get62  712ms   516ms
datastore_v3.RunQuery   35  706ms   2390ms
memcache.Get3   27ms0ms
memcache.Set2   12ms0ms

Though my tables are still quite small: ~ 5 main tables with ~ 100
records in each.

in order to decrease db requests, I think to make some singleton like
interface, so I could ask
data.MyTable[i].somefield

instead of
db.MyTable[i].somefield

data would hold  storage copies of Tables which I need to access often
by index

and if data doesn't have particular table or its record, it could
call db.MyTable.. then (and optionaly cache the result the Singleton
way)

maybe this could be called  select_cache.
by the way, find() probably could also be more appropriate than
separate select in such cases?

this is just a plan now, am I on a sound way?
how big the tables should grow (approximatelly) for my mechanizm to
become useless??


Re: [web2py] Re: failed import of a module

2010-09-18 Thread Julius Minka
It works locally, the error occurs only on the server.

V Sobota, 18. september 2010 o 14:46 -0700, mdipierro napísal(a):
> I do not know but ...
> Not all modules can go in the modules folder. Some of them exepect to
> be in sys.path
> 
> On Sep 18, 3:18 pm, Julius Minka  wrote:
> > Trying to deploy web2py app in the Virtual Server with Debian installed
> > usinghttp://bazaar.launchpad.net/~mdipierro/web2py/devel/download/head:/se...
> >
> > results in this error:
> >
> > Error traceback
> > 1.
> > 2.
> > 3.
> > 4.
> > 5.
> > 6.
> > 7.
> > 8.
> > 9.
> > 10.
> > 11.
> > Traceback (most recent call last):
> >   File "gluon/restricted.py", line 186, in restricted
> > exec ccode in environment
> >   File "/home/www-data/web2py/applications/real/models/db.py", line 140, in 
> > 
> > webgrid = local_import('webgrid')
> >   File "gluon/compileapp.py", line 243, in 
> > local_import_aux(name,reload,app)
> >   File "gluon/compileapp.py", line 174, in local_import_aux
> > module = __import__(name)
> > ImportError: No module named applications.real.modules.webgrid
> > Error snapshot
> > Detailed traceback description
> >   * Exception: (No module named
> > applications.real.modules.webgrid)
> >   * Python 2.5.2: /usr/bin/python
> >   *
> >
> > the webgrid.py is available in the modules directory
> > Why the import has failed?
> > Julius




[web2py] Re: failed import of a module

2010-09-18 Thread mdipierro
I do not know but ...
Not all modules can go in the modules folder. Some of them exepect to
be in sys.path

On Sep 18, 3:18 pm, Julius Minka  wrote:
> Trying to deploy web2py app in the Virtual Server with Debian installed
> usinghttp://bazaar.launchpad.net/~mdipierro/web2py/devel/download/head:/se...
>
> results in this error:
>
> Error traceback
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
> 9.
> 10.
> 11.
> Traceback (most recent call last):
>   File "gluon/restricted.py", line 186, in restricted
>     exec ccode in environment
>   File "/home/www-data/web2py/applications/real/models/db.py", line 140, in 
> 
>     webgrid = local_import('webgrid')
>   File "gluon/compileapp.py", line 243, in 
>     local_import_aux(name,reload,app)
>   File "gluon/compileapp.py", line 174, in local_import_aux
>     module = __import__(name)
> ImportError: No module named applications.real.modules.webgrid
> Error snapshot
> Detailed traceback description
>       * Exception: (No module named
>         applications.real.modules.webgrid)
>       * Python 2.5.2: /usr/bin/python
>       *
>
> the webgrid.py is available in the modules directory
> Why the import has failed?
> Julius


Re: [web2py] Re: URL error in appadmin

2010-09-18 Thread Jonathan Lundell
Massimo, any ideas?

On Sep 18, 2010, at 1:24 PM, Avik Basu wrote:
> 
> I put this:
> {{=URL.__name__}}
> 
> in the view of my index page and it showed
> URL
> 
> (not _URL as you said)
> 
> 
> Also, I don't know if its helpful to mention that the latest format
> for the URL function is not working anywhere in my app, not just in
> appadmin.  So, if I put:
> 
> {{=URL('index')}}
> 
> in my index page, I get the same syntax error that I had in appadmin.


That's good to know. 

You could try this (you'll need to import gluon.html):

{{=gluon.html._gURL(request).__name__}}

That's what the global URL should be.

I think you were saying that this works OK in the other apps, right? You could 
stick similar logic into welcome, for comparison purposes, good vs bad. You 
might have to delete the welcome/compiled directory.

By way of background, the URL logic was updated not all that long ago. Have a 
look at html._gURL, and then compileapp.build_environment() to see how it's 
being used. URL is being replaced by the closure (I think it's a closure) 
_gURL(request), so the value of request gets bound to the URL call, without 
having to supply it all the time.

Also, a single argument to the original URL is treated as the application, 
whereas the closure treats it as the function. We see the former in the syntax 
error print below, more evidence that we're not invoking the closure.

> 
> On Sep 18, 4:10 pm, Jonathan Lundell  wrote:
>> On Sep 18, 2010, at 12:52 PM, Avik Basu wrote:
>> 
>> 
>> 
>>> Line 219 of gluon/compileapp.py is as you described it. I also deleted
>>> the whole gluon directory and downloaded the latest source of web2py
>>> before restarting the server.  Also, as far as I can tell, I am not
>>> doing anything tricky with Globals or the URL symbol in my models.
>> 
>>> I now get the following syntax error:
>> 
>>> SyntaxError: URL: a=index c=None f=None r=None u=URL
>> 
>> Thanks.
>> 
>> I realized after I sent that last request that the __name__ of URL might not 
>> be significant at this point, because we're inside the URL() function.
>> 
>> This might be worth a try. In appadmin.py, near the beginning (after the 
>> imports, but before response.menu is set):
>> 
>> logger = logging.getLogger('web2py')
>> logger.warning('appadmin url.name=%s' % URL.__name__)
>> 
>> What you *should* see is _URL. That's what I see if I stick it in my own 
>> appadmin.
>> 
>> 
>> 
>> 
>> 
>>> On Sep 18, 3:33 pm, Jonathan Lundell  wrote:
 On Sep 18, 2010, at 11:52 AM, Avik Basu wrote:
>> 
> After restarting the server, I get the following error:
>> 
> SyntaxError: URL: a=index c=None f=None r=None
>> 
 I was afraid of that, and I can't explain it.
>> 
 Please check that line 219 of gluon/compileapp.py is:
>> 
 environment['URL'] = html._gURL(request)
>> 
 And you might want to quit your server, delete all the .pyc files in 
 gluon, and restart.
>> 
 Do you do anything tricky with globals() or the URL symbol in your models?
>> 
 And let's try one more printing attempt:
>> 
if not (application and controller and function):
if r:
msg = 'URL: a=%s c=%s f=%s r.a=%s r.c=%s r.f=%s' % 
 (application,controller,function,r.application,r.controller,r.function)
else:
msg = 'URL: a=%s c=%s f=%s r=%s u=%s' % 
 (application,controller,function,r,URL.__name__)
raise SyntaxError, msg
>> 
> On Sep 18, 2:46 pm, Jonathan Lundell  wrote:
>> On Sep 18, 2010, at 11:40 AM, Avik Basu wrote:
>> 
>>> When I replace the code in gluon/html.py, I still keep getting the
>>> same SyntaxError ('not enough information to build the url') which
>>> seems strange since that is not even in the code anymore.
>> 
>>> I am sort of new to debugging the gluon code so I maybe making some
>>> simple mistake.   I did delete the html.pyc file. Do I need to restart
>>> the server?
>> 
>> I would assume so, given the message, and especially if you're not 
>> seeing html.pyc getting recreated.
>> 
>>> On Sep 18, 2:31 pm, Jonathan Lundell  wrote:
 On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
>> 
> Sure, I'm happy to help debug.  Send me the print statements when you
> get a chance.
>> 
 FWIW, I just did the same thing (move the current appadmin into my own 
 app) and it seems to work OK; at least I can access appadmin/index OK.




Re: [web2py] Re: URL error in appadmin

2010-09-18 Thread Jonathan Lundell
On Sep 18, 2010, at 1:12 PM, Avik Basu wrote:
> 
> do i need to import logging?

Yes. But sticking it in your view is fine, I think.

> 
> On Sep 18, 4:10 pm, Jonathan Lundell  wrote:
>> On Sep 18, 2010, at 12:52 PM, Avik Basu wrote:
>> 
>> 
>> 
>>> Line 219 of gluon/compileapp.py is as you described it. I also deleted
>>> the whole gluon directory and downloaded the latest source of web2py
>>> before restarting the server.  Also, as far as I can tell, I am not
>>> doing anything tricky with Globals or the URL symbol in my models.
>> 
>>> I now get the following syntax error:
>> 
>>> SyntaxError: URL: a=index c=None f=None r=None u=URL
>> 
>> Thanks.
>> 
>> I realized after I sent that last request that the __name__ of URL might not 
>> be significant at this point, because we're inside the URL() function.
>> 
>> This might be worth a try. In appadmin.py, near the beginning (after the 
>> imports, but before response.menu is set):
>> 
>> logger = logging.getLogger('web2py')
>> logger.warning('appadmin url.name=%s' % URL.__name__)
>> 
>> What you *should* see is _URL. That's what I see if I stick it in my own 
>> appadmin.
>> 
>> 
>> 
>> 
>> 
>>> On Sep 18, 3:33 pm, Jonathan Lundell  wrote:
 On Sep 18, 2010, at 11:52 AM, Avik Basu wrote:
>> 
> After restarting the server, I get the following error:
>> 
> SyntaxError: URL: a=index c=None f=None r=None
>> 
 I was afraid of that, and I can't explain it.
>> 
 Please check that line 219 of gluon/compileapp.py is:
>> 
 environment['URL'] = html._gURL(request)
>> 
 And you might want to quit your server, delete all the .pyc files in 
 gluon, and restart.
>> 
 Do you do anything tricky with globals() or the URL symbol in your models?
>> 
 And let's try one more printing attempt:
>> 
if not (application and controller and function):
if r:
msg = 'URL: a=%s c=%s f=%s r.a=%s r.c=%s r.f=%s' % 
 (application,controller,function,r.application,r.controller,r.function)
else:
msg = 'URL: a=%s c=%s f=%s r=%s u=%s' % 
 (application,controller,function,r,URL.__name__)
raise SyntaxError, msg
>> 
> On Sep 18, 2:46 pm, Jonathan Lundell  wrote:
>> On Sep 18, 2010, at 11:40 AM, Avik Basu wrote:
>> 
>>> When I replace the code in gluon/html.py, I still keep getting the
>>> same SyntaxError ('not enough information to build the url') which
>>> seems strange since that is not even in the code anymore.
>> 
>>> I am sort of new to debugging the gluon code so I maybe making some
>>> simple mistake.   I did delete the html.pyc file. Do I need to restart
>>> the server?
>> 
>> I would assume so, given the message, and especially if you're not 
>> seeing html.pyc getting recreated.
>> 
>>> On Sep 18, 2:31 pm, Jonathan Lundell  wrote:
 On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
>> 
> Sure, I'm happy to help debug.  Send me the print statements when you
> get a chance.
>> 
 FWIW, I just did the same thing (move the current appadmin into my own 
 app) and it seems to work OK; at least I can access appadmin/index OK.




[web2py] Re: URL error in appadmin

2010-09-18 Thread Avik Basu
I put this:
{{=URL.__name__}}

in the view of my index page and it showed
URL

(not _URL as you said)


Also, I don't know if its helpful to mention that the latest format
for the URL function is not working anywhere in my app, not just in
appadmin.  So, if I put:

{{=URL('index')}}

in my index page, I get the same syntax error that I had in appadmin.

On Sep 18, 4:10 pm, Jonathan Lundell  wrote:
> On Sep 18, 2010, at 12:52 PM, Avik Basu wrote:
>
>
>
> > Line 219 of gluon/compileapp.py is as you described it. I also deleted
> > the whole gluon directory and downloaded the latest source of web2py
> > before restarting the server.  Also, as far as I can tell, I am not
> > doing anything tricky with Globals or the URL symbol in my models.
>
> > I now get the following syntax error:
>
> > SyntaxError: URL: a=index c=None f=None r=None u=URL
>
> Thanks.
>
> I realized after I sent that last request that the __name__ of URL might not 
> be significant at this point, because we're inside the URL() function.
>
> This might be worth a try. In appadmin.py, near the beginning (after the 
> imports, but before response.menu is set):
>
> logger = logging.getLogger('web2py')
> logger.warning('appadmin url.name=%s' % URL.__name__)
>
> What you *should* see is _URL. That's what I see if I stick it in my own 
> appadmin.
>
>
>
>
>
> > On Sep 18, 3:33 pm, Jonathan Lundell  wrote:
> >> On Sep 18, 2010, at 11:52 AM, Avik Basu wrote:
>
> >>> After restarting the server, I get the following error:
>
> >>> SyntaxError: URL: a=index c=None f=None r=None
>
> >> I was afraid of that, and I can't explain it.
>
> >> Please check that line 219 of gluon/compileapp.py is:
>
> >>     environment['URL'] = html._gURL(request)
>
> >> And you might want to quit your server, delete all the .pyc files in 
> >> gluon, and restart.
>
> >> Do you do anything tricky with globals() or the URL symbol in your models?
>
> >> And let's try one more printing attempt:
>
> >>    if not (application and controller and function):
> >>        if r:
> >>            msg = 'URL: a=%s c=%s f=%s r.a=%s r.c=%s r.f=%s' % 
> >> (application,controller,function,r.application,r.controller,r.function)
> >>        else:
> >>            msg = 'URL: a=%s c=%s f=%s r=%s u=%s' % 
> >> (application,controller,function,r,URL.__name__)
> >>        raise SyntaxError, msg
>
> >>> On Sep 18, 2:46 pm, Jonathan Lundell  wrote:
>  On Sep 18, 2010, at 11:40 AM, Avik Basu wrote:
>
> > When I replace the code in gluon/html.py, I still keep getting the
> > same SyntaxError ('not enough information to build the url') which
> > seems strange since that is not even in the code anymore.
>
> > I am sort of new to debugging the gluon code so I maybe making some
> > simple mistake.   I did delete the html.pyc file. Do I need to restart
> > the server?
>
>  I would assume so, given the message, and especially if you're not 
>  seeing html.pyc getting recreated.
>
> > On Sep 18, 2:31 pm, Jonathan Lundell  wrote:
> >> On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
>
> >>> Sure, I'm happy to help debug.  Send me the print statements when you
> >>> get a chance.
>
> >> FWIW, I just did the same thing (move the current appadmin into my own 
> >> app) and it seems to work OK; at least I can access appadmin/index OK.


[web2py] failed import of a module

2010-09-18 Thread Julius Minka
Trying to deploy web2py app in the Virtual Server with Debian installed
using
http://bazaar.launchpad.net/~mdipierro/web2py/devel/download/head:/setupweb2pyubuntu.sh-20091113071543-nuyvk7g9cfu086wk-1/setup-web2py-ubuntu.sh

results in this error:

Error traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
Traceback (most recent call last):
  File "gluon/restricted.py", line 186, in restricted
exec ccode in environment
  File "/home/www-data/web2py/applications/real/models/db.py", line 140, in 

webgrid = local_import('webgrid')
  File "gluon/compileapp.py", line 243, in 
local_import_aux(name,reload,app)
  File "gluon/compileapp.py", line 174, in local_import_aux
module = __import__(name)
ImportError: No module named applications.real.modules.webgrid
Error snapshot
Detailed traceback description
  * Exception: (No module named
applications.real.modules.webgrid)
  * Python 2.5.2: /usr/bin/python
  * 

the webgrid.py is available in the modules directory 
Why the import has failed?
Julius



[web2py] Re: URL error in appadmin

2010-09-18 Thread Avik Basu
do i need to import logging?

On Sep 18, 4:10 pm, Jonathan Lundell  wrote:
> On Sep 18, 2010, at 12:52 PM, Avik Basu wrote:
>
>
>
> > Line 219 of gluon/compileapp.py is as you described it. I also deleted
> > the whole gluon directory and downloaded the latest source of web2py
> > before restarting the server.  Also, as far as I can tell, I am not
> > doing anything tricky with Globals or the URL symbol in my models.
>
> > I now get the following syntax error:
>
> > SyntaxError: URL: a=index c=None f=None r=None u=URL
>
> Thanks.
>
> I realized after I sent that last request that the __name__ of URL might not 
> be significant at this point, because we're inside the URL() function.
>
> This might be worth a try. In appadmin.py, near the beginning (after the 
> imports, but before response.menu is set):
>
> logger = logging.getLogger('web2py')
> logger.warning('appadmin url.name=%s' % URL.__name__)
>
> What you *should* see is _URL. That's what I see if I stick it in my own 
> appadmin.
>
>
>
>
>
> > On Sep 18, 3:33 pm, Jonathan Lundell  wrote:
> >> On Sep 18, 2010, at 11:52 AM, Avik Basu wrote:
>
> >>> After restarting the server, I get the following error:
>
> >>> SyntaxError: URL: a=index c=None f=None r=None
>
> >> I was afraid of that, and I can't explain it.
>
> >> Please check that line 219 of gluon/compileapp.py is:
>
> >>     environment['URL'] = html._gURL(request)
>
> >> And you might want to quit your server, delete all the .pyc files in 
> >> gluon, and restart.
>
> >> Do you do anything tricky with globals() or the URL symbol in your models?
>
> >> And let's try one more printing attempt:
>
> >>    if not (application and controller and function):
> >>        if r:
> >>            msg = 'URL: a=%s c=%s f=%s r.a=%s r.c=%s r.f=%s' % 
> >> (application,controller,function,r.application,r.controller,r.function)
> >>        else:
> >>            msg = 'URL: a=%s c=%s f=%s r=%s u=%s' % 
> >> (application,controller,function,r,URL.__name__)
> >>        raise SyntaxError, msg
>
> >>> On Sep 18, 2:46 pm, Jonathan Lundell  wrote:
>  On Sep 18, 2010, at 11:40 AM, Avik Basu wrote:
>
> > When I replace the code in gluon/html.py, I still keep getting the
> > same SyntaxError ('not enough information to build the url') which
> > seems strange since that is not even in the code anymore.
>
> > I am sort of new to debugging the gluon code so I maybe making some
> > simple mistake.   I did delete the html.pyc file. Do I need to restart
> > the server?
>
>  I would assume so, given the message, and especially if you're not 
>  seeing html.pyc getting recreated.
>
> > On Sep 18, 2:31 pm, Jonathan Lundell  wrote:
> >> On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
>
> >>> Sure, I'm happy to help debug.  Send me the print statements when you
> >>> get a chance.
>
> >> FWIW, I just did the same thing (move the current appadmin into my own 
> >> app) and it seems to work OK; at least I can access appadmin/index OK.


Re: [web2py] Re: URL error in appadmin

2010-09-18 Thread Jonathan Lundell
On Sep 18, 2010, at 12:52 PM, Avik Basu wrote:
> 
> Line 219 of gluon/compileapp.py is as you described it. I also deleted
> the whole gluon directory and downloaded the latest source of web2py
> before restarting the server.  Also, as far as I can tell, I am not
> doing anything tricky with Globals or the URL symbol in my models.
> 
> I now get the following syntax error:
> 
> SyntaxError: URL: a=index c=None f=None r=None u=URL

Thanks. 

I realized after I sent that last request that the __name__ of URL might not be 
significant at this point, because we're inside the URL() function.

This might be worth a try. In appadmin.py, near the beginning (after the 
imports, but before response.menu is set):

logger = logging.getLogger('web2py')
logger.warning('appadmin url.name=%s' % URL.__name__)

What you *should* see is _URL. That's what I see if I stick it in my own 
appadmin.

> 
> 
> 
> 
> On Sep 18, 3:33 pm, Jonathan Lundell  wrote:
>> On Sep 18, 2010, at 11:52 AM, Avik Basu wrote:
>> 
>> 
>> 
>>> After restarting the server, I get the following error:
>> 
>>> SyntaxError: URL: a=index c=None f=None r=None
>> 
>> I was afraid of that, and I can't explain it.
>> 
>> Please check that line 219 of gluon/compileapp.py is:
>> 
>> environment['URL'] = html._gURL(request)
>> 
>> And you might want to quit your server, delete all the .pyc files in gluon, 
>> and restart.
>> 
>> Do you do anything tricky with globals() or the URL symbol in your models?
>> 
>> And let's try one more printing attempt:
>> 
>>if not (application and controller and function):
>>if r:
>>msg = 'URL: a=%s c=%s f=%s r.a=%s r.c=%s r.f=%s' % 
>> (application,controller,function,r.application,r.controller,r.function)
>>else:
>>msg = 'URL: a=%s c=%s f=%s r=%s u=%s' % 
>> (application,controller,function,r,URL.__name__)
>>raise SyntaxError, msg
>> 
>> 
>> 
>> 
>> 
>>> On Sep 18, 2:46 pm, Jonathan Lundell  wrote:
 On Sep 18, 2010, at 11:40 AM, Avik Basu wrote:
>> 
> When I replace the code in gluon/html.py, I still keep getting the
> same SyntaxError ('not enough information to build the url') which
> seems strange since that is not even in the code anymore.
>> 
> I am sort of new to debugging the gluon code so I maybe making some
> simple mistake.   I did delete the html.pyc file. Do I need to restart
> the server?
>> 
 I would assume so, given the message, and especially if you're not seeing 
 html.pyc getting recreated.
>> 
> On Sep 18, 2:31 pm, Jonathan Lundell  wrote:
>> On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
>> 
>>> Sure, I'm happy to help debug.  Send me the print statements when you
>>> get a chance.
>> 
>> FWIW, I just did the same thing (move the current appadmin into my own 
>> app) and it seems to work OK; at least I can access appadmin/index OK.




[web2py] another web2py job

2010-09-18 Thread mdipierro
http://www.i-freelancer.org/php/ad-hoc-scripting-tasks-odesk/

(I do not know who posted)


[web2py] Re: Yet an improved conference management system

2010-09-18 Thread mdipierro
never do that because apps always come with the plugins they need and
sometimes I modify them. I will post this one latest one as the
official one. I allows embedding wiky pages into other pages.


On Sep 18, 3:00 pm, Jason Brower  wrote:
> Hehe... yeah I did install the plugin wiki over the old one... I just
> assumed it was needed and installed it.  Sorry, I will try again
> tomorrow and get it working them.
> BR,
> Jason Brower
>
> On 09/18/2010 10:47 PM, mdipierro wrote:
>
> > This is strange. It as if you have an old plugin_wiki installed
> > instead of the one that cones with conf2py (a new and modified one).
>
> > Did you re-install plugin_wiki on top of conf2py?
>
> > Massimo
>
> > On Sep 18, 2:20 pm, Jason Brower  wrote:
>
> >> I am sorry, I couldn't get it running.
> >> New web2py install.
> >> Installed the app..
> >> Installed the plugin...
> >> Now it gives me the error:
> >> AttributeError: PluginWiki instance has no attribute 'embed'
> >> Any ideas?
> >> ---
> >> Best Regards,
> >> Jason Brower
> >> On 09/18/2010 07:43 PM, mr.freeze wrote:
>
> >>> Very nice!
>
> >>> On Sep 18, 1:33 am, mdipierro    wrote:
>
>  Conf2py is an Open Source Conference Management Software written in
>  Python
>
>  License is GPL2
>  Developed by Massimo Di Pierro
>  Support provided by MetaCryption LLC
>
>  A slideshow presentation:
>
>   http://www.slideshare.net/mdipierro/conf2py
>
>  Download as a web2py app (includes source):
>
>   http://conf2py.googlecode.com/files/web2py.app.conf2py.w2p
>
>  Source only from google code:
>
>      hg clonehttps://conf2py.googlecode.com/hg/conf2py
>
>  BACKGROUND
>  ==
>
>  This software is a complete rewrite of the web2conf software developed
>  for PyCon US 2009 and used for registration at PyCon 2009, PyCon 2010
>  and Flisol 2010. The reason for the rewrite include source code
>  simplification, added features, shift focus to more traditional
>  academic conferences.
>
>  Conf2py is in production since August 2010 for the 6th High End
>  Visualization Workshop in Austria:
>
>         http://vizworkshop.cct.lsu.edu/viz2010/
>
>  FEATURES
>  
>
>  - Single Sign-On using Open ID (Google) or OAuth (Facebook, MySpace,
>  etc.) via Janrain.com, or Local registration/login process.
>  - Conference Fee Payment with Credit Card via Authorize.Net (no need
>  for secondary login)
>  - Default registration fields include: first name, last name, email,
>  web page, address, company, profile text, image, type of registration,
>  optional tutorial registration (multiple tutorials supported), food
>  preferences, arrival date and departure date, accompanying family
>  members (for optional hotel pre-registration). The list of fields is
>  easily extensible.
>  - Configurable billing policy based on time dependent conferences rate
>  for different roles and variable number of tutorials/sessions.
>  - Configurable coupon discounts and coupon cancellation
>  - Users can register other users and pay for them.
>
>  - First page displays a slideshow
>  - Arbitrary number of wiki pages using the markmin syntax
>  - Wiki pages allow embedding of widgets such as "comments" or "videos"
>  or "tagging" or "latex".
>  - Automatic computation of geographical latitude and longitude and
>  display of attendees on map.
>
>  - Paper submission and review management with roles: author, editor,
>  review. Author submits an abstract (talk or paper proposal). The
>  editor may ask for a paper submission and assign a review of the paper
>  or abstract to one ore more reviewers. The communication between
>  editor and reviewer is invisible to the author. The identity of the
>  reviewer is invisible to the author. The editor, based on reviewer
>  recommendation can accept/reject a paper. Accepted papers are
>  automatically published (a paper can be in any format and can include
>  slides).
>  - Paper publishing with bibtex support
>  - Management interface with roles: manager, editor, reviewer, author
>  (same person can have multiple roles depending on the paper).
>
>  We hope it will be useful. Let us know how we can improve it even
>  more.
>
>  Massimo
>
>


Re: [web2py] Re: Yet an improved conference management system

2010-09-18 Thread Jason Brower
Hehe... yeah I did install the plugin wiki over the old one... I just 
assumed it was needed and installed it.  Sorry, I will try again 
tomorrow and get it working them.

BR,
Jason Brower

On 09/18/2010 10:47 PM, mdipierro wrote:

This is strange. It as if you have an old plugin_wiki installed
instead of the one that cones with conf2py (a new and modified one).

Did you re-install plugin_wiki on top of conf2py?

Massimo

On Sep 18, 2:20 pm, Jason Brower  wrote:
   

I am sorry, I couldn't get it running.
New web2py install.
Installed the app..
Installed the plugin...
Now it gives me the error:
AttributeError: PluginWiki instance has no attribute 'embed'
Any ideas?
---
Best Regards,
Jason Brower
On 09/18/2010 07:43 PM, mr.freeze wrote:

 

Very nice!
   
 

On Sep 18, 1:33 am, mdipierrowrote:
   
 

Conf2py is an Open Source Conference Management Software written in
Python
 
 

License is GPL2
Developed by Massimo Di Pierro
Support provided by MetaCryption LLC
 
 

A slideshow presentation:
 
 

  http://www.slideshare.net/mdipierro/conf2py
 
 

Download as a web2py app (includes source):
 
 

  http://conf2py.googlecode.com/files/web2py.app.conf2py.w2p
 
 

Source only from google code:
 
 

hg clonehttps://conf2py.googlecode.com/hg/conf2py
 
 

BACKGROUND
==
 
 

This software is a complete rewrite of the web2conf software developed
for PyCon US 2009 and used for registration at PyCon 2009, PyCon 2010
and Flisol 2010. The reason for the rewrite include source code
simplification, added features, shift focus to more traditional
academic conferences.
 
 

Conf2py is in production since August 2010 for the 6th High End
Visualization Workshop in Austria:
 
 

http://vizworkshop.cct.lsu.edu/viz2010/
 
 

FEATURES

 
 

- Single Sign-On using Open ID (Google) or OAuth (Facebook, MySpace,
etc.) via Janrain.com, or Local registration/login process.
- Conference Fee Payment with Credit Card via Authorize.Net (no need
for secondary login)
- Default registration fields include: first name, last name, email,
web page, address, company, profile text, image, type of registration,
optional tutorial registration (multiple tutorials supported), food
preferences, arrival date and departure date, accompanying family
members (for optional hotel pre-registration). The list of fields is
easily extensible.
- Configurable billing policy based on time dependent conferences rate
for different roles and variable number of tutorials/sessions.
- Configurable coupon discounts and coupon cancellation
- Users can register other users and pay for them.
 
 

- First page displays a slideshow
- Arbitrary number of wiki pages using the markmin syntax
- Wiki pages allow embedding of widgets such as "comments" or "videos"
or "tagging" or "latex".
- Automatic computation of geographical latitude and longitude and
display of attendees on map.
 
 

- Paper submission and review management with roles: author, editor,
review. Author submits an abstract (talk or paper proposal). The
editor may ask for a paper submission and assign a review of the paper
or abstract to one ore more reviewers. The communication between
editor and reviewer is invisible to the author. The identity of the
reviewer is invisible to the author. The editor, based on reviewer
recommendation can accept/reject a paper. Accepted papers are
automatically published (a paper can be in any format and can include
slides).
- Paper publishing with bibtex support
- Management interface with roles: manager, editor, reviewer, author
(same person can have multiple roles depending on the paper).
 
 

We hope it will be useful. Let us know how we can improve it even
more.
 
 

Massimo
 


 




Re: [web2py] Re: horizontal_radios and multiple td

2010-09-18 Thread Julius Minka
Could you please be more specific? I am sorry to say I don' understand
your response.
Julius

V Sobota, 18. september 2010 o 07:34 -0700, mdipierro napísal(a):
> yes, the third columns is form Field(...comment='')
> 
> On Sep 18, 5:47 am, Julius Minka  wrote:
> > def horizontal_radios(f,v):
> > table = SQLFORM.widgets.radio.widget(f,v)
> > rows=table.elements('tr')
> > table.components = []
> > table.append([row.elements('td') for row in rows])
> > return table
> >
> > def form():
> > form=SQLFORM.factory(
> >Field('clientagent', requires=IS_IN_SET(['client', 'agent']),
> > default='client', widget=horizontal_radios,label='Client/Agent'),
> > ...
> >
> > ...  > class="w2p_fl"> > id="no_table_clientagent__label">Client/Agent:  > class="w2p_fc"> > id="no_table_clientagent__row2"> > class="string" id="no_table_clientagent" name="clientagent">
> >  > value="client" />client
> > agent<
> > /td>...
> >
> >  and  seems to be too many there. Does it come from
> > the function above or web2py itself? How to correct this?
> >
> > Julius




[web2py] Re: URL error in appadmin

2010-09-18 Thread Avik Basu
Line 219 of gluon/compileapp.py is as you described it. I also deleted
the whole gluon directory and downloaded the latest source of web2py
before restarting the server.  Also, as far as I can tell, I am not
doing anything tricky with Globals or the URL symbol in my models.

I now get the following syntax error:

SyntaxError: URL: a=index c=None f=None r=None u=URL




On Sep 18, 3:33 pm, Jonathan Lundell  wrote:
> On Sep 18, 2010, at 11:52 AM, Avik Basu wrote:
>
>
>
> > After restarting the server, I get the following error:
>
> > SyntaxError: URL: a=index c=None f=None r=None
>
> I was afraid of that, and I can't explain it.
>
> Please check that line 219 of gluon/compileapp.py is:
>
>     environment['URL'] = html._gURL(request)
>
> And you might want to quit your server, delete all the .pyc files in gluon, 
> and restart.
>
> Do you do anything tricky with globals() or the URL symbol in your models?
>
> And let's try one more printing attempt:
>
>    if not (application and controller and function):
>        if r:
>            msg = 'URL: a=%s c=%s f=%s r.a=%s r.c=%s r.f=%s' % 
> (application,controller,function,r.application,r.controller,r.function)
>        else:
>            msg = 'URL: a=%s c=%s f=%s r=%s u=%s' % 
> (application,controller,function,r,URL.__name__)
>        raise SyntaxError, msg
>
>
>
>
>
> > On Sep 18, 2:46 pm, Jonathan Lundell  wrote:
> >> On Sep 18, 2010, at 11:40 AM, Avik Basu wrote:
>
> >>> When I replace the code in gluon/html.py, I still keep getting the
> >>> same SyntaxError ('not enough information to build the url') which
> >>> seems strange since that is not even in the code anymore.
>
> >>> I am sort of new to debugging the gluon code so I maybe making some
> >>> simple mistake.   I did delete the html.pyc file. Do I need to restart
> >>> the server?
>
> >> I would assume so, given the message, and especially if you're not seeing 
> >> html.pyc getting recreated.
>
> >>> On Sep 18, 2:31 pm, Jonathan Lundell  wrote:
>  On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
>
> > Sure, I'm happy to help debug.  Send me the print statements when you
> > get a chance.
>
>  FWIW, I just did the same thing (move the current appadmin into my own 
>  app) and it seems to work OK; at least I can access appadmin/index OK.


Re: [web2py] Re: possible bug with oauth20 facebook: auth.settings.login_next ignored in 1.84.4

2010-09-18 Thread Michele Comitini
Thanks to H. Das and Albert Abril for testing oauth.

I made some fixes/improvements:
 - correct support for https://
 - login_next working
 - converted almost all outgoing requests to POST
 - fixed broken callback_url handling
 - support for optional query parameters in requests for oauth2.0
(i.e. for scope)


you can download the new versions here:
https://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/gluon/contrib/login_methods

the repository also contains some scaffolding examples, you can also
try them on GAE:

https://grafbook.appspot.com/helloTwitter
https://grafbook.appspot.com/helloFacebook
https://grafbook.appspot.com/helloFacebook/graph (try to navigate the
graph with web2py menu... :-) )

thanks
mic

2010/9/15 H. Das :
> thank you both.
>
> On Sep 14, 4:34 pm, "H. Das"  wrote:
>> Hi, I think oauth20 ignores the url set for auth.settings.login_next
>> (and maybe logout_next too?) in web2py 1.84.4; this wasn't the case in
>> the previous version. Any ideas?
>>
>> Also, where can I find previous src's of web2py?
>>
>> Thanks :-)


[web2py] Re: Yet an improved conference management system

2010-09-18 Thread mdipierro
This is strange. It as if you have an old plugin_wiki installed
instead of the one that cones with conf2py (a new and modified one).

Did you re-install plugin_wiki on top of conf2py?

Massimo

On Sep 18, 2:20 pm, Jason Brower  wrote:
> I am sorry, I couldn't get it running.
> New web2py install.
> Installed the app..
> Installed the plugin...
> Now it gives me the error:
> AttributeError: PluginWiki instance has no attribute 'embed'
> Any ideas?
> ---
> Best Regards,
> Jason Brower
> On 09/18/2010 07:43 PM, mr.freeze wrote:
>
> > Very nice!
>
> > On Sep 18, 1:33 am, mdipierro  wrote:
>
> >> Conf2py is an Open Source Conference Management Software written in
> >> Python
>
> >> License is GPL2
> >> Developed by Massimo Di Pierro
> >> Support provided by MetaCryption LLC
>
> >> A slideshow presentation:
>
> >>  http://www.slideshare.net/mdipierro/conf2py
>
> >> Download as a web2py app (includes source):
>
> >>  http://conf2py.googlecode.com/files/web2py.app.conf2py.w2p
>
> >> Source only from google code:
>
> >>    hg clonehttps://conf2py.googlecode.com/hg/conf2py
>
> >> BACKGROUND
> >> ==
>
> >> This software is a complete rewrite of the web2conf software developed
> >> for PyCon US 2009 and used for registration at PyCon 2009, PyCon 2010
> >> and Flisol 2010. The reason for the rewrite include source code
> >> simplification, added features, shift focus to more traditional
> >> academic conferences.
>
> >> Conf2py is in production since August 2010 for the 6th High End
> >> Visualization Workshop in Austria:
>
> >>        http://vizworkshop.cct.lsu.edu/viz2010/
>
> >> FEATURES
> >> 
>
> >> - Single Sign-On using Open ID (Google) or OAuth (Facebook, MySpace,
> >> etc.) via Janrain.com, or Local registration/login process.
> >> - Conference Fee Payment with Credit Card via Authorize.Net (no need
> >> for secondary login)
> >> - Default registration fields include: first name, last name, email,
> >> web page, address, company, profile text, image, type of registration,
> >> optional tutorial registration (multiple tutorials supported), food
> >> preferences, arrival date and departure date, accompanying family
> >> members (for optional hotel pre-registration). The list of fields is
> >> easily extensible.
> >> - Configurable billing policy based on time dependent conferences rate
> >> for different roles and variable number of tutorials/sessions.
> >> - Configurable coupon discounts and coupon cancellation
> >> - Users can register other users and pay for them.
>
> >> - First page displays a slideshow
> >> - Arbitrary number of wiki pages using the markmin syntax
> >> - Wiki pages allow embedding of widgets such as "comments" or "videos"
> >> or "tagging" or "latex".
> >> - Automatic computation of geographical latitude and longitude and
> >> display of attendees on map.
>
> >> - Paper submission and review management with roles: author, editor,
> >> review. Author submits an abstract (talk or paper proposal). The
> >> editor may ask for a paper submission and assign a review of the paper
> >> or abstract to one ore more reviewers. The communication between
> >> editor and reviewer is invisible to the author. The identity of the
> >> reviewer is invisible to the author. The editor, based on reviewer
> >> recommendation can accept/reject a paper. Accepted papers are
> >> automatically published (a paper can be in any format and can include
> >> slides).
> >> - Paper publishing with bibtex support
> >> - Management interface with roles: manager, editor, reviewer, author
> >> (same person can have multiple roles depending on the paper).
>
> >> We hope it will be useful. Let us know how we can improve it even
> >> more.
>
> >> Massimo
>
>


Re: [web2py] Re: URL error in appadmin

2010-09-18 Thread Jonathan Lundell
On Sep 18, 2010, at 11:52 AM, Avik Basu wrote:
> 
> After restarting the server, I get the following error:
> 
> SyntaxError: URL: a=index c=None f=None r=None

I was afraid of that, and I can't explain it.

Please check that line 219 of gluon/compileapp.py is:

environment['URL'] = html._gURL(request)

And you might want to quit your server, delete all the .pyc files in gluon, and 
restart.

Do you do anything tricky with globals() or the URL symbol in your models? 

And let's try one more printing attempt:

   if not (application and controller and function):
   if r:
   msg = 'URL: a=%s c=%s f=%s r.a=%s r.c=%s r.f=%s' % 
(application,controller,function,r.application,r.controller,r.function)
   else:
   msg = 'URL: a=%s c=%s f=%s r=%s u=%s' % 
(application,controller,function,r,URL.__name__)
   raise SyntaxError, msg

> 
> On Sep 18, 2:46 pm, Jonathan Lundell  wrote:
>> On Sep 18, 2010, at 11:40 AM, Avik Basu wrote:
>> 
>> 
>> 
>>> When I replace the code in gluon/html.py, I still keep getting the
>>> same SyntaxError ('not enough information to build the url') which
>>> seems strange since that is not even in the code anymore.
>> 
>>> I am sort of new to debugging the gluon code so I maybe making some
>>> simple mistake.   I did delete the html.pyc file. Do I need to restart
>>> the server?
>> 
>> I would assume so, given the message, and especially if you're not seeing 
>> html.pyc getting recreated.
>> 
>> 
>> 
>> 
>> 
>>> On Sep 18, 2:31 pm, Jonathan Lundell  wrote:
 On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
>> 
> Sure, I'm happy to help debug.  Send me the print statements when you
> get a chance.
>> 
 FWIW, I just did the same thing (move the current appadmin into my own 
 app) and it seems to work OK; at least I can access appadmin/index OK.




Re: [web2py] Re: Yet an improved conference management system

2010-09-18 Thread Jason Brower

I am sorry, I couldn't get it running.
New web2py install.
Installed the app..
Installed the plugin...
Now it gives me the error:
AttributeError: PluginWiki instance has no attribute 'embed'
Any ideas?
---
Best Regards,
Jason Brower
On 09/18/2010 07:43 PM, mr.freeze wrote:

Very nice!

On Sep 18, 1:33 am, mdipierro  wrote:
   

Conf2py is an Open Source Conference Management Software written in
Python

License is GPL2
Developed by Massimo Di Pierro
Support provided by MetaCryption LLC

A slideshow presentation:

  http://www.slideshare.net/mdipierro/conf2py

Download as a web2py app (includes source):

  http://conf2py.googlecode.com/files/web2py.app.conf2py.w2p

Source only from google code:

   hg clonehttps://conf2py.googlecode.com/hg/conf2py

BACKGROUND
==

This software is a complete rewrite of the web2conf software developed
for PyCon US 2009 and used for registration at PyCon 2009, PyCon 2010
and Flisol 2010. The reason for the rewrite include source code
simplification, added features, shift focus to more traditional
academic conferences.

Conf2py is in production since August 2010 for the 6th High End
Visualization Workshop in Austria:

http://vizworkshop.cct.lsu.edu/viz2010/

FEATURES


- Single Sign-On using Open ID (Google) or OAuth (Facebook, MySpace,
etc.) via Janrain.com, or Local registration/login process.
- Conference Fee Payment with Credit Card via Authorize.Net (no need
for secondary login)
- Default registration fields include: first name, last name, email,
web page, address, company, profile text, image, type of registration,
optional tutorial registration (multiple tutorials supported), food
preferences, arrival date and departure date, accompanying family
members (for optional hotel pre-registration). The list of fields is
easily extensible.
- Configurable billing policy based on time dependent conferences rate
for different roles and variable number of tutorials/sessions.
- Configurable coupon discounts and coupon cancellation
- Users can register other users and pay for them.

- First page displays a slideshow
- Arbitrary number of wiki pages using the markmin syntax
- Wiki pages allow embedding of widgets such as "comments" or "videos"
or "tagging" or "latex".
- Automatic computation of geographical latitude and longitude and
display of attendees on map.

- Paper submission and review management with roles: author, editor,
review. Author submits an abstract (talk or paper proposal). The
editor may ask for a paper submission and assign a review of the paper
or abstract to one ore more reviewers. The communication between
editor and reviewer is invisible to the author. The identity of the
reviewer is invisible to the author. The editor, based on reviewer
recommendation can accept/reject a paper. Accepted papers are
automatically published (a paper can be in any format and can include
slides).
- Paper publishing with bibtex support
- Management interface with roles: manager, editor, reviewer, author
(same person can have multiple roles depending on the paper).

We hope it will be useful. Let us know how we can improve it even
more.

Massimo
 




[web2py] Re: URL error in appadmin

2010-09-18 Thread Avik Basu
After restarting the server, I get the following error:

SyntaxError: URL: a=index c=None f=None r=None

On Sep 18, 2:46 pm, Jonathan Lundell  wrote:
> On Sep 18, 2010, at 11:40 AM, Avik Basu wrote:
>
>
>
> > When I replace the code in gluon/html.py, I still keep getting the
> > same SyntaxError ('not enough information to build the url') which
> > seems strange since that is not even in the code anymore.
>
> > I am sort of new to debugging the gluon code so I maybe making some
> > simple mistake.   I did delete the html.pyc file. Do I need to restart
> > the server?
>
> I would assume so, given the message, and especially if you're not seeing 
> html.pyc getting recreated.
>
>
>
>
>
> > On Sep 18, 2:31 pm, Jonathan Lundell  wrote:
> >> On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
>
> >>> Sure, I'm happy to help debug.  Send me the print statements when you
> >>> get a chance.
>
> >> FWIW, I just did the same thing (move the current appadmin into my own 
> >> app) and it seems to work OK; at least I can access appadmin/index OK.


Re: [web2py] Re: URL error in appadmin

2010-09-18 Thread Jonathan Lundell
On Sep 18, 2010, at 11:40 AM, Avik Basu wrote:
> 
> When I replace the code in gluon/html.py, I still keep getting the
> same SyntaxError ('not enough information to build the url') which
> seems strange since that is not even in the code anymore.
> 
> I am sort of new to debugging the gluon code so I maybe making some
> simple mistake.   I did delete the html.pyc file. Do I need to restart
> the server?

I would assume so, given the message, and especially if you're not seeing 
html.pyc getting recreated.

> 
> On Sep 18, 2:31 pm, Jonathan Lundell  wrote:
>> On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
>> 
>> 
>> 
>>> Sure, I'm happy to help debug.  Send me the print statements when you
>>> get a chance.
>> 
>> FWIW, I just did the same thing (move the current appadmin into my own app) 
>> and it seems to work OK; at least I can access appadmin/index OK.




[web2py] Re: URL error in appadmin

2010-09-18 Thread Avik Basu
When I replace the code in gluon/html.py, I still keep getting the
same SyntaxError ('not enough information to build the url') which
seems strange since that is not even in the code anymore.

I am sort of new to debugging the gluon code so I maybe making some
simple mistake.   I did delete the html.pyc file. Do I need to restart
the server?

On Sep 18, 2:31 pm, Jonathan Lundell  wrote:
> On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
>
>
>
> > Sure, I'm happy to help debug.  Send me the print statements when you
> > get a chance.
>
> FWIW, I just did the same thing (move the current appadmin into my own app) 
> and it seems to work OK; at least I can access appadmin/index OK.


Re: [web2py] Re: URL error in appadmin

2010-09-18 Thread Jonathan Lundell
On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
> 
> Sure, I'm happy to help debug.  Send me the print statements when you
> get a chance.

FWIW, I just did the same thing (move the current appadmin into my own app) and 
it seems to work OK; at least I can access appadmin/index OK.

[web2py] Re: SyntaxError: Set: no tables selected - Web2py on GAE , DATABASE ERROR

2010-09-18 Thread leo (kirotawa)
Hi again,

seem now it work fine, was like you tell me Massimo.
Thanks a lot for all help ;]


On 18 set, 14:20, "leo (kirotawa)"  wrote:
> I saw here, and the table was create in GAE with insert service, but
> when I get a select service its fails.
>
> On 18 set, 13:19, mdipierro  wrote:
>
>
>
>
>
>
>
> > This may be to the facts that on GAE tables are not created until you
> > insert a record in them.
>
> > On Sep 18, 10:55 am, "leo (kirotawa)"  wrote:
>
> > > Hi,
>
> > > I'm try deploy  my web2py application in GAE, but it return this
> > > exception :
>
> > > raceback (most recent call last):
> > >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > > gluon/restricted.py", line 188, in restricted
> > >     exec ccode in environment
> > >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > > applications/init/controllers/api.py:teste", line 94, in 
> > >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > > gluon/globals.py", line 96, in 
> > >     self._caller = lambda f: f()
> > >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > > applications/init/controllers/api.py:teste", line 84, in teste
> > >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > > gluon/contrib/gql.py", line 736, in select
> > >     (items, tablename, fields) = self._select(*fields, **attributes)
> > >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > > gluon/contrib/gql.py", line 676, in _select
> > >     (tablename, tableobj) = self._get_table_or_raise()
> > >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > > gluon/contrib/gql.py", line 653, in _get_table_or_raise
> > >     raise SyntaxError, 'Set: no tables selected'
> > > SyntaxError: Set: no tables selected
>
> > > So, in localhost all works fine, but in GAE it return this. how i
> > > see,it is as if the tables had not been created. Someboy have any
> > > ideia to fixed this?


[web2py] Re: SyntaxError: Set: no tables selected - Web2py on GAE , DATABASE ERROR

2010-09-18 Thread leo (kirotawa)
I saw here, and the table was create in GAE with insert service, but
when I get a select service its fails.

On 18 set, 13:19, mdipierro  wrote:
> This may be to the facts that on GAE tables are not created until you
> insert a record in them.
>
> On Sep 18, 10:55 am, "leo (kirotawa)"  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I'm try deploy  my web2py application in GAE, but it return this
> > exception :
>
> > raceback (most recent call last):
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > gluon/restricted.py", line 188, in restricted
> >     exec ccode in environment
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > applications/init/controllers/api.py:teste", line 94, in 
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > gluon/globals.py", line 96, in 
> >     self._caller = lambda f: f()
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > applications/init/controllers/api.py:teste", line 84, in teste
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > gluon/contrib/gql.py", line 736, in select
> >     (items, tablename, fields) = self._select(*fields, **attributes)
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > gluon/contrib/gql.py", line 676, in _select
> >     (tablename, tableobj) = self._get_table_or_raise()
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > gluon/contrib/gql.py", line 653, in _get_table_or_raise
> >     raise SyntaxError, 'Set: no tables selected'
> > SyntaxError: Set: no tables selected
>
> > So, in localhost all works fine, but in GAE it return this. how i
> > see,it is as if the tables had not been created. Someboy have any
> > ideia to fixed this?


Re: [web2py] Re: URL error in appadmin

2010-09-18 Thread Jonathan Lundell
On Sep 18, 2010, at 9:46 AM, Avik Basu wrote:
> 
> Sure, I'm happy to help debug.  Send me the print statements when you
> get a chance.

Here's a starting point. In gluon/html.py, you'll find this:

if not (application and controller and function):
raise SyntaxError, 'not enough information to build the url'

...which is where the message below is coming from. We want to see a little 
more of the state of the world here. So I'm thinking something like:

if not (application and controller and function):
if r:
msg = 'URL: a=%s c=%s f=%s r.a=%s r.c=%s r.f=%s' % 
(application,controller,function,r.application,r.controller,r.function)
else:
msg = 'URL: a=%s c=%s f=%s r=%s' % 
(application,controller,function,r)
raise SyntaxError, msg



> Avik
> 
> On Sep 18, 12:39 pm, Jonathan Lundell  wrote:
>> On Sep 17, 2010, at 11:50 PM, Avik Basu wrote:
>> 
>> 
>> 
>>> There is nowhere I can see that I am altering request in the models.
>>> What is the specific reason that request would break the URL
>>> function?  Any other ideas what the problem could be?
>> 
>> The URL function requires, at a minimum, app, controller and function names. 
>> In a call like the one that's blowing out, that supplies only a function 
>> name, the app & controller names come from request, which URL knows about 
>> magically.
>> 
>> I'm at a loss here; I was hoping Massimo might have an idea.
>> 
>> If you're willing, I can give you a debug print or two to stick in there, 
>> and at least we can see what's missing, exactly.
>> 
>> 
>> 
>> 
>> 
>>> Avik
>> 
>>> On Sep 17, 7:57 pm, Jonathan Lundell  wrote:
 On Sep 17, 2010, at 4:44 PM, Avik Basu wrote:
>> 
> Yes, I'm sure I'm running 1.85.2.  i copied over appadmin.py and the
> associated views to my applications.  What is strange though is that I
> can run the welcome app without any problem (http://127.0.0.1:8000/
> welcome/appadmin/index), but not the version I copied into my
> application (http://127.0.0.1:8000/FWv9_1_Avik/appadmin/index).  Is
> there some other file I need to copy?
>> 
 I'm not seeing anything.
>> 
 Is it possible that you're altering request in your model(s)?
>> 
> Avik
>> 
> On Sep 17, 7:24 pm, Jonathan Lundell  wrote:
>> On Sep 17, 2010, at 4:06 PM, Avik Basu wrote:
>> 
>>> Hi,
>> 
>>> I get the following error in appadmin.py which I copied over from the
>>> welcome app in version 1.85.2:
>> 
>> Are you running 1.85.2? It sounds like you might be running something 
>> earlier.
>> 
>>> Traceback (most recent call last):
>>>  File "/Volumes/Data/avikbasu/web2py/gluon/restricted.py", line 188,
>>> in restricted
>>>exec ccode in environment
>>>  File "/Volumes/Data/avikbasu/web2py/applications/FWv9_1_Avik/
>>> controllers/appadmin.py", line 40, in 
>>>URL('index')], [T('state'), False,
>>>  File "/Volumes/Data/avikbasu/web2py/gluon/html.py", line 188, in URL
>>>raise SyntaxError, 'not enough information to build the url'
>>> SyntaxError: not enough information to build the url
>> 
>>> Any ideas?
>> 
>>> Thanks,
>>> Avik




Re: [web2py] Re: plugin_google_checkout

2010-09-18 Thread b vivek
Anything for paypal.. looks like google checkout is only for US and UK.. or
any other options for setting up a store and the payment mechanism I
know I might be bugging at times!

On Sat, Sep 18, 2010 at 10:21 PM, mdipierro  wrote:

> yes, it was used for PyCon 2009 and 2010 payments without any issue.
>
> On Sep 18, 11:48 am, bally boy  wrote:
> > Hi Just came across "plugin_google_checkout" in the mailing list. Want to
> > know if this works!
>


[web2py] Re: SyntaxError: Set: no tables selected - Web2py on GAE , DATABASE ERROR

2010-09-18 Thread leo (kirotawa)
No, I try insert in the table and after select the content but it
raise up the same exception.

I created a service insert, put the content, it's work fine, but in
the of select it show a error message.


On 18 set, 13:19, mdipierro  wrote:
> This may be to the facts that on GAE tables are not created until you
> insert a record in them.
>
> On Sep 18, 10:55 am, "leo (kirotawa)"  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I'm try deploy  my web2py application in GAE, but it return this
> > exception :
>
> > raceback (most recent call last):
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > gluon/restricted.py", line 188, in restricted
> >     exec ccode in environment
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > applications/init/controllers/api.py:teste", line 94, in 
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > gluon/globals.py", line 96, in 
> >     self._caller = lambda f: f()
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > applications/init/controllers/api.py:teste", line 84, in teste
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > gluon/contrib/gql.py", line 736, in select
> >     (items, tablename, fields) = self._select(*fields, **attributes)
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > gluon/contrib/gql.py", line 676, in _select
> >     (tablename, tableobj) = self._get_table_or_raise()
> >   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> > gluon/contrib/gql.py", line 653, in _get_table_or_raise
> >     raise SyntaxError, 'Set: no tables selected'
> > SyntaxError: Set: no tables selected
>
> > So, in localhost all works fine, but in GAE it return this. how i
> > see,it is as if the tables had not been created. Someboy have any
> > ideia to fixed this?


[web2py] Re: plugin_google_checkout

2010-09-18 Thread mdipierro
yes, it was used for PyCon 2009 and 2010 payments without any issue.

On Sep 18, 11:48 am, bally boy  wrote:
> Hi Just came across "plugin_google_checkout" in the mailing list. Want to
> know if this works!


[web2py] Re: Yet an improved conference management system

2010-09-18 Thread mart
Wow! that is one delicious application :) And role based
functionality to boot! So, let's see... roles (fully configurable),
secure, rich media content is already an integrated feature in web2py
(flash, and now pdf (which will undoubtedly grow to include some sort
of forms architecture, etc.)), seamlessly integrates with other great
web technologies, ... how far away is this (and web2py in general)
from being a very cool and robust enterprise grade collaboration
system? probably just as close as Massimo is from creating
"plugin_workflow", which is probably just around the corner, at the
rate that he is coming out with this great stuff!!!

truly impressive!

Mart :)





On Sep 18, 11:44 am, weheh  wrote:
> cool
>
> On Sep 18, 11:33 am, mdipierro  wrote:
>
> > I think you need to upgrade manually (unzip new web2py over old
> > web2py).
> > This is a known windows problem.
>
> > On Sep 18, 10:13 am, "david.waldrop"  wrote:
>
> > > ahh.  then its related to my other post about the upgrade no working.
>
> > > when i try to upgrade I get the following error
> > > unable to upgrade because "[Errno 13] Permission denied: 'C:\\Users\
> > > \david\\My Projects\\Miscelaneous\\MeetingMonkey\\web2py/_mysql.pyd
>
> > > On Sep 18, 10:35 am, mdipierro  wrote:
>
> > > > requires 1.85.3
>
> > > > On Sep 18, 3:53 am, "david.waldrop"  wrote:
>
> > > > > i was unable to install thru my admin interface.  running web2py
> > > > > Version 1.82.1 (2010-08-05 01:00:12)
>
> > > > > On Sep 18, 2:12 am, mdipierro  wrote:
>
> > > > > >http://code.google.com/p/conf2py/
>
> > > > > > can you try run it and check if you run into any setup/intallation
> > > > > > issues?- Hide quoted text -
>
> > - Show quoted text -
>
>


[web2py] plugin_google_checkout

2010-09-18 Thread bally boy
Hi Just came across "plugin_google_checkout" in the mailing list. Want to
know if this works!


[web2py] Re: URL error in appadmin

2010-09-18 Thread Avik Basu
Sure, I'm happy to help debug.  Send me the print statements when you
get a chance.
Avik

On Sep 18, 12:39 pm, Jonathan Lundell  wrote:
> On Sep 17, 2010, at 11:50 PM, Avik Basu wrote:
>
>
>
> > There is nowhere I can see that I am altering request in the models.
> > What is the specific reason that request would break the URL
> > function?  Any other ideas what the problem could be?
>
> The URL function requires, at a minimum, app, controller and function names. 
> In a call like the one that's blowing out, that supplies only a function 
> name, the app & controller names come from request, which URL knows about 
> magically.
>
> I'm at a loss here; I was hoping Massimo might have an idea.
>
> If you're willing, I can give you a debug print or two to stick in there, and 
> at least we can see what's missing, exactly.
>
>
>
>
>
> > Avik
>
> > On Sep 17, 7:57 pm, Jonathan Lundell  wrote:
> >> On Sep 17, 2010, at 4:44 PM, Avik Basu wrote:
>
> >>> Yes, I'm sure I'm running 1.85.2.  i copied over appadmin.py and the
> >>> associated views to my applications.  What is strange though is that I
> >>> can run the welcome app without any problem (http://127.0.0.1:8000/
> >>> welcome/appadmin/index), but not the version I copied into my
> >>> application (http://127.0.0.1:8000/FWv9_1_Avik/appadmin/index).  Is
> >>> there some other file I need to copy?
>
> >> I'm not seeing anything.
>
> >> Is it possible that you're altering request in your model(s)?
>
> >>> Avik
>
> >>> On Sep 17, 7:24 pm, Jonathan Lundell  wrote:
>  On Sep 17, 2010, at 4:06 PM, Avik Basu wrote:
>
> > Hi,
>
> > I get the following error in appadmin.py which I copied over from the
> > welcome app in version 1.85.2:
>
>  Are you running 1.85.2? It sounds like you might be running something 
>  earlier.
>
> > Traceback (most recent call last):
> >  File "/Volumes/Data/avikbasu/web2py/gluon/restricted.py", line 188,
> > in restricted
> >    exec ccode in environment
> >  File "/Volumes/Data/avikbasu/web2py/applications/FWv9_1_Avik/
> > controllers/appadmin.py", line 40, in 
> >    URL('index')], [T('state'), False,
> >  File "/Volumes/Data/avikbasu/web2py/gluon/html.py", line 188, in URL
> >    raise SyntaxError, 'not enough information to build the url'
> > SyntaxError: not enough information to build the url
>
> > Any ideas?
>
> > Thanks,
> > Avik


[web2py] Re: Yet an improved conference management system

2010-09-18 Thread mr.freeze
Very nice!

On Sep 18, 1:33 am, mdipierro  wrote:
> Conf2py is an Open Source Conference Management Software written in
> Python
>
> License is GPL2
> Developed by Massimo Di Pierro
> Support provided by MetaCryption LLC
>
> A slideshow presentation:
>
>  http://www.slideshare.net/mdipierro/conf2py
>
> Download as a web2py app (includes source):
>
>  http://conf2py.googlecode.com/files/web2py.app.conf2py.w2p
>
> Source only from google code:
>
>   hg clonehttps://conf2py.googlecode.com/hg/conf2py
>
> BACKGROUND
> ==
>
> This software is a complete rewrite of the web2conf software developed
> for PyCon US 2009 and used for registration at PyCon 2009, PyCon 2010
> and Flisol 2010. The reason for the rewrite include source code
> simplification, added features, shift focus to more traditional
> academic conferences.
>
> Conf2py is in production since August 2010 for the 6th High End
> Visualization Workshop in Austria:
>
>        http://vizworkshop.cct.lsu.edu/viz2010/
>
> FEATURES
> 
>
> - Single Sign-On using Open ID (Google) or OAuth (Facebook, MySpace,
> etc.) via Janrain.com, or Local registration/login process.
> - Conference Fee Payment with Credit Card via Authorize.Net (no need
> for secondary login)
> - Default registration fields include: first name, last name, email,
> web page, address, company, profile text, image, type of registration,
> optional tutorial registration (multiple tutorials supported), food
> preferences, arrival date and departure date, accompanying family
> members (for optional hotel pre-registration). The list of fields is
> easily extensible.
> - Configurable billing policy based on time dependent conferences rate
> for different roles and variable number of tutorials/sessions.
> - Configurable coupon discounts and coupon cancellation
> - Users can register other users and pay for them.
>
> - First page displays a slideshow
> - Arbitrary number of wiki pages using the markmin syntax
> - Wiki pages allow embedding of widgets such as "comments" or "videos"
> or "tagging" or "latex".
> - Automatic computation of geographical latitude and longitude and
> display of attendees on map.
>
> - Paper submission and review management with roles: author, editor,
> review. Author submits an abstract (talk or paper proposal). The
> editor may ask for a paper submission and assign a review of the paper
> or abstract to one ore more reviewers. The communication between
> editor and reviewer is invisible to the author. The identity of the
> reviewer is invisible to the author. The editor, based on reviewer
> recommendation can accept/reject a paper. Accepted papers are
> automatically published (a paper can be in any format and can include
> slides).
> - Paper publishing with bibtex support
> - Management interface with roles: manager, editor, reviewer, author
> (same person can have multiple roles depending on the paper).
>
> We hope it will be useful. Let us know how we can improve it even
> more.
>
> Massimo


[web2py] crud.create with hidden field and value to db

2010-09-18 Thread winti
How to add a record with crud.create with a hidden form field
(Orderid) and a value (taken from variable orderid within controller).

model:
db.define_table("workingtime",
 
Field("StartTime","datetime",default=datetime.datetime.today()),
Field("EndTime","datetime",default=""),
Field("Comment","string",default=""),
Field("Orderid","string",default="",readable=False),)

controller:

def addcatsdata():
orderid = request.args(0)
 
addcatstimeentry=crud.create(db.workingtime,next=URL(request.application,request.controller,'editjob'),message=T("enty
added"))

return dict(addcatstimeentry=addcatstimeentry)


Re: [web2py] Re: URL error in appadmin

2010-09-18 Thread Jonathan Lundell
On Sep 17, 2010, at 11:50 PM, Avik Basu wrote:
> 
> There is nowhere I can see that I am altering request in the models.
> What is the specific reason that request would break the URL
> function?  Any other ideas what the problem could be?

The URL function requires, at a minimum, app, controller and function names. In 
a call like the one that's blowing out, that supplies only a function name, the 
app & controller names come from request, which URL knows about magically.

I'm at a loss here; I was hoping Massimo might have an idea. 

If you're willing, I can give you a debug print or two to stick in there, and 
at least we can see what's missing, exactly.

> 
> Avik
> 
> On Sep 17, 7:57 pm, Jonathan Lundell  wrote:
>> On Sep 17, 2010, at 4:44 PM, Avik Basu wrote:
>> 
>> 
>> 
>>> Yes, I'm sure I'm running 1.85.2.  i copied over appadmin.py and the
>>> associated views to my applications.  What is strange though is that I
>>> can run the welcome app without any problem (http://127.0.0.1:8000/
>>> welcome/appadmin/index), but not the version I copied into my
>>> application (http://127.0.0.1:8000/FWv9_1_Avik/appadmin/index).  Is
>>> there some other file I need to copy?
>> 
>> I'm not seeing anything.
>> 
>> Is it possible that you're altering request in your model(s)?
>> 
>> 
>> 
>> 
>> 
>>> Avik
>> 
>>> On Sep 17, 7:24 pm, Jonathan Lundell  wrote:
 On Sep 17, 2010, at 4:06 PM, Avik Basu wrote:
>> 
> Hi,
>> 
> I get the following error in appadmin.py which I copied over from the
> welcome app in version 1.85.2:
>> 
 Are you running 1.85.2? It sounds like you might be running something 
 earlier.
>> 
> Traceback (most recent call last):
>  File "/Volumes/Data/avikbasu/web2py/gluon/restricted.py", line 188,
> in restricted
>exec ccode in environment
>  File "/Volumes/Data/avikbasu/web2py/applications/FWv9_1_Avik/
> controllers/appadmin.py", line 40, in 
>URL('index')], [T('state'), False,
>  File "/Volumes/Data/avikbasu/web2py/gluon/html.py", line 188, in URL
>raise SyntaxError, 'not enough information to build the url'
> SyntaxError: not enough information to build the url
>> 
> Any ideas?
>> 
> Thanks,
> Avik




[web2py] Re: SyntaxError: Set: no tables selected - Web2py on GAE , DATABASE ERROR

2010-09-18 Thread mdipierro
This may be to the facts that on GAE tables are not created until you
insert a record in them.

On Sep 18, 10:55 am, "leo (kirotawa)"  wrote:
> Hi,
>
> I'm try deploy  my web2py application in GAE, but it return this
> exception :
>
> raceback (most recent call last):
>   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> gluon/restricted.py", line 188, in restricted
>     exec ccode in environment
>   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> applications/init/controllers/api.py:teste", line 94, in 
>   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> gluon/globals.py", line 96, in 
>     self._caller = lambda f: f()
>   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> applications/init/controllers/api.py:teste", line 84, in teste
>   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> gluon/contrib/gql.py", line 736, in select
>     (items, tablename, fields) = self._select(*fields, **attributes)
>   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> gluon/contrib/gql.py", line 676, in _select
>     (tablename, tableobj) = self._get_table_or_raise()
>   File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
> gluon/contrib/gql.py", line 653, in _get_table_or_raise
>     raise SyntaxError, 'Set: no tables selected'
> SyntaxError: Set: no tables selected
>
> So, in localhost all works fine, but in GAE it return this. how i
> see,it is as if the tables had not been created. Someboy have any
> ideia to fixed this?


[web2py] SyntaxError: Set: no tables selected - Web2py on GAE , DATABASE ERROR

2010-09-18 Thread leo (kirotawa)
Hi,

I'm try deploy  my web2py application in GAE, but it return this
exception :

raceback (most recent call last):
  File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
gluon/restricted.py", line 188, in restricted
exec ccode in environment
  File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
applications/init/controllers/api.py:teste", line 94, in 
  File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
gluon/globals.py", line 96, in 
self._caller = lambda f: f()
  File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
applications/init/controllers/api.py:teste", line 84, in teste
  File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
gluon/contrib/gql.py", line 736, in select
(items, tablename, fields) = self._select(*fields, **attributes)
  File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
gluon/contrib/gql.py", line 676, in _select
(tablename, tableobj) = self._get_table_or_raise()
  File "/home/kirotawa/Documentos/Programacao/Web/Gappengine/web2py/
gluon/contrib/gql.py", line 653, in _get_table_or_raise
raise SyntaxError, 'Set: no tables selected'
SyntaxError: Set: no tables selected

So, in localhost all works fine, but in GAE it return this. how i
see,it is as if the tables had not been created. Someboy have any
ideia to fixed this?



[web2py] Re: Forms with hidden fields

2010-09-18 Thread weheh
Question: how to call HiddenField outside of define_table, as in the
controller? I find that usually, when I hide field, it's because I'm
uniting 2 tables in 1 form and I want to selectively populate fields
in each table, but ultimately, all fields in the tables will be
populated via forms. So I am hiding fields in my controllers, not my
models.

On Sep 17, 1:12 pm, mdipierro  wrote:
> ERRATA^3
>
> I like to define
>
> def HiddenField(*a,**b):
>     b['writable']=b['readable']=False
>     return Field(*a,**b)
>
> and use
>
> db.define_table('mytable',Field('name'),HiddenField('manager'))
>
> On Sep 17, 11:53 am, Fabio Alessandro Locati  wrote:
>
>
>
> > thank you guys, it works perfectly :)
>
> > 2010/9/17 Jonathan Lundell 
>
> > > On Sep 17, 2010, at 6:25 AM, mdipierro wrote:
>
> > > > ERRATA:
>
> > > > I like to define
>
> > > > def HiddenField(*a,**b):
> > > >    a['writable']=b['readable']=False
> > > >    return Field(*a,**b)
>
> > > I *think* you mean:
>
> > >   b['writable']=b['readable']=False
>
> > > > and use
>
> > > > db.defiend_table('mytable',Field('name'),HiddenField('manager'))
>
> > > and db.define_table(...
>
> > > > On Sep 17, 8:22 am, mdipierro  wrote:
> > > >> I like to define
>
> > > >> def HiddenField(*a,**b):
> > > >>     a['writable']=b['readable']=False
>
> > > >> and use
>
> > > >> db.defiend_table('mytable',Field('name'),HiddenField('manager'))
>
> > > >> On Sep 17, 6:07 am, "Martin.Mulone"  wrote:
>
> > > >>> To hide a field:
> > > >>> Field('out','boolean',writable=False,readable=False)
>
> > > >>> And computed fields in book:
> > >http://web2py.com/book/default/chapter/06#Computed-Fields
>
> > > >>> On 17 sep, 05:58, Fabio Alessandro Locati  wrote:
>
> > >  Hi,
> > >  I'm trying to make a form with a hidden field, but I haven't found 
> > >  the
> > > way
> > >  to do it :(.
>
> > >  I have a table:
> > >  db.define_table('partners',
> > >      Field('name','string'),
> > >      Field('out','boolean'))
>
> > >  I want to ask to the user the name of the partner and, based on the
> > > name of
> > >  the page, the value of 'out'. I was thinking into making two 
> > >  different
> > > pages
> > >  one that has - at code level - out=1 and the other one that had 
> > >  out=0.
> > > How
> > >  can I do this, without showing to the user the existence of the 'out'
> > > field?
>
> > >  Thanks :)- Hide quoted text -
>
> - Show quoted text -


[web2py] Re: Yet an improved conference management system

2010-09-18 Thread weheh
cool

On Sep 18, 11:33 am, mdipierro  wrote:
> I think you need to upgrade manually (unzip new web2py over old
> web2py).
> This is a known windows problem.
>
> On Sep 18, 10:13 am, "david.waldrop"  wrote:
>
>
>
> > ahh.  then its related to my other post about the upgrade no working.
>
> > when i try to upgrade I get the following error
> > unable to upgrade because "[Errno 13] Permission denied: 'C:\\Users\
> > \david\\My Projects\\Miscelaneous\\MeetingMonkey\\web2py/_mysql.pyd
>
> > On Sep 18, 10:35 am, mdipierro  wrote:
>
> > > requires 1.85.3
>
> > > On Sep 18, 3:53 am, "david.waldrop"  wrote:
>
> > > > i was unable to install thru my admin interface.  running web2py
> > > > Version 1.82.1 (2010-08-05 01:00:12)
>
> > > > On Sep 18, 2:12 am, mdipierro  wrote:
>
> > > > >http://code.google.com/p/conf2py/
>
> > > > > can you try run it and check if you run into any setup/intallation
> > > > > issues?- Hide quoted text -
>
> - Show quoted text -


[web2py] Re: Yet an improved conference management system

2010-09-18 Thread mdipierro
I think you need to upgrade manually (unzip new web2py over old
web2py).
This is a known windows problem.

On Sep 18, 10:13 am, "david.waldrop"  wrote:
> ahh.  then its related to my other post about the upgrade no working.
>
> when i try to upgrade I get the following error
> unable to upgrade because "[Errno 13] Permission denied: 'C:\\Users\
> \david\\My Projects\\Miscelaneous\\MeetingMonkey\\web2py/_mysql.pyd
>
> On Sep 18, 10:35 am, mdipierro  wrote:
>
> > requires 1.85.3
>
> > On Sep 18, 3:53 am, "david.waldrop"  wrote:
>
> > > i was unable to install thru my admin interface.  running web2py
> > > Version 1.82.1 (2010-08-05 01:00:12)
>
> > > On Sep 18, 2:12 am, mdipierro  wrote:
>
> > > >http://code.google.com/p/conf2py/
>
> > > > can you try run it and check if you run into any setup/intallation
> > > > issues?
>
>


[web2py] Re: Yet an improved conference management system

2010-09-18 Thread david.waldrop
ahh.  then its related to my other post about the upgrade no working.

when i try to upgrade I get the following error
unable to upgrade because "[Errno 13] Permission denied: 'C:\\Users\
\david\\My Projects\\Miscelaneous\\MeetingMonkey\\web2py/_mysql.pyd


On Sep 18, 10:35 am, mdipierro  wrote:
> requires 1.85.3
>
> On Sep 18, 3:53 am, "david.waldrop"  wrote:
>
>
>
> > i was unable to install thru my admin interface.  running web2py
> > Version 1.82.1 (2010-08-05 01:00:12)
>
> > On Sep 18, 2:12 am, mdipierro  wrote:
>
> > >http://code.google.com/p/conf2py/
>
> > > can you try run it and check if you run into any setup/intallation
> > > issues?


[web2py] Re: Yet an improved conference management system

2010-09-18 Thread mdipierro
requires 1.85.3

On Sep 18, 3:53 am, "david.waldrop"  wrote:
> i was unable to install thru my admin interface.  running web2py
> Version 1.82.1 (2010-08-05 01:00:12)
>
> On Sep 18, 2:12 am, mdipierro  wrote:
>
> >http://code.google.com/p/conf2py/
>
> > can you try run it and check if you run into any setup/intallation
> > issues?
>
>


[web2py] Re: horizontal_radios and multiple td

2010-09-18 Thread mdipierro
yes, the third columns is form Field(...comment='')

On Sep 18, 5:47 am, Julius Minka  wrote:
> def horizontal_radios(f,v):
>         table = SQLFORM.widgets.radio.widget(f,v)
>         rows=table.elements('tr')
>         table.components = []
>         table.append([row.elements('td') for row in rows])
>         return table
>
> def form():
>     form=SQLFORM.factory(
>        Field('clientagent', requires=IS_IN_SET(['client', 'agent']),
> default='client', widget=horizontal_radios,label='Client/Agent'),
> ...
>
> ...  class="w2p_fl"> id="no_table_clientagent__label">Client/Agent:  class="w2p_fc"> id="no_table_clientagent__row2"> class="string" id="no_table_clientagent" name="clientagent">
>  value="client" />client
> agent<
> /td>...
>
>  and  seems to be too many there. Does it come from
> the function above or web2py itself? How to correct this?
>
> Julius


[web2py] error when upgrading

2010-09-18 Thread david.waldrop
I am currently running web2py Version 1.82.1 (2010-08-05 01:00:12) on
Windows 7.

when i try to upgrade I get the following error
unable to upgrade because "[Errno 13] Permission denied: 'C:\\Users\
\david\\My Projects\\Miscelaneous\\MeetingMonkey\\web2py/_mysql.pyd

I made sure all apps were closed, started and restarted the Windows
service, but could not get the upgrade to work.

Has anyone else seen this or know how to rectify?


[web2py] Re: Yet an improved conference management system

2010-09-18 Thread Martin.Mulone
Great!

On Sep 18, 3:12 am, mdipierro  wrote:
> http://code.google.com/p/conf2py/
>
> can you try run it and check if you run into any setup/intallation
> issues?


[web2py] horizontal_radios and multiple td

2010-09-18 Thread Julius Minka
def horizontal_radios(f,v):
table = SQLFORM.widgets.radio.widget(f,v)
rows=table.elements('tr')
table.components = []
table.append([row.elements('td') for row in rows])
return table

def form():
form=SQLFORM.factory(
   Field('clientagent', requires=IS_IN_SET(['client', 'agent']),
default='client', widget=horizontal_radios,label='Client/Agent'),
...

... Client/Agent: 
client
agent<
/td>...


 and  seems to be too many there. Does it come from
the function above or web2py itself? How to correct this?

Julius




[web2py] Re: How to always call a function at the end

2010-09-18 Thread hcvst
Hi,

I could call the function from layout.html but it is a plugin and it
should work standalone.

Some background - in case I'm on the wrong track or PluginManager is
about to handle it.

The site I am working on consists mainly of plugins (I'm inflicted
with raving mad plugin fever), some of which depend on others. Now,
rather than trying to prefix plugin names with digits to sequence load
order V init style I have one plugin that loads first and all other
plugins register with it by providing their name, the names of any
plugins they depend on and a callback that is triggered once the
dependencies are met. This works, although I am not sure how
efficiently, but it's fun. The problem is that if a dependency is
never met, the callback is never triggered. In this case I'd like to
raise some Error. As far as I can see, this would have to happen as
the very last thing.

Regards,
HC


[web2py] Re: forcing lowercase on auth email address

2010-09-18 Thread hcvst
Hi David,

somehow, doesn't look pretty but this works.

def email_to_lower(form):
form.vars.email = form.vars.email.lower()

auth.settings.login_onvalidation = email_to_lower

I guess the login form should not be case sensitive. (Or should it,
Massimo?)

Regards,
HC


[web2py] Re: forcing lowercase on auth email address

2010-09-18 Thread david.waldrop
I added the requires to the default default/user controller and
confirmed that no matter the case of the registration email it is
converted to lower case in the database.  What I am not sure how to do
is to take the email the user enters at login and convert it to
lowercase.  Roght now if I register with an email of a...@aaa.com (it
gets saved as a...@aaa.com) and try to login in with anything other
than "a...@aaa.com (i.e. a...@aaa.com, a...@aaa.com) it does not allow me
to enter.  This is important as the system sends email to invitees and
keeps track of the email addresses when the invitee comes to the site.

On Sep 17, 5:54 pm, mdipierro  wrote:
> requires=IS_LOWER(),IS_EMAIL()
>
> On Sep 17, 4:40 pm, "david.waldrop"  wrote:
>
>
>
> > is there an easy way to force email address in the basic auth
> > mechanism to always be lower case.  I am capturing emails in another
> > form and am worried about explicit case matching.  I know I can define
> > a custom table, but was wondering if there was a simpler way.


[web2py] Re: Yet an improved conference management system

2010-09-18 Thread david.waldrop
i was unable to install thru my admin interface.  running web2py
Version 1.82.1 (2010-08-05 01:00:12)

On Sep 18, 2:12 am, mdipierro  wrote:
> http://code.google.com/p/conf2py/
>
> can you try run it and check if you run into any setup/intallation
> issues?


[web2py] How to always call a function at the end

2010-09-18 Thread hcvst
Hi,

I'd like to always call a function as the very last bit of application
code for every request/response. Is there an existing callback
mechanism I can hook into or is wsgi middleware  perhaps the way to
go?

Regards,
HC


Re: [web2py] Re: Yet an improved conference management system

2010-09-18 Thread Fabio Alessandro Locati
Thanks massimo :)
May I ask you a couple of things:
1- You have putted in the cvs only the application/folder folder, while I'm
used to put the whole web2py, in this way I can have in it routes.py,
app.yaml etc... how do you handle these files, in your system?
2- IIRC, you told us, about a month ago, that you would have pubblicated a
CMS-style system for edu, is this one or is another one?
3- is there a place where there are listed all apps already done?

thank you again for this and for all the time and effort you put in the
web2py project :)

2010/9/18 mdipierro 

> Conf2py is an Open Source Conference Management Software written in
> Python
>
> License is GPL2
> Developed by Massimo Di Pierro
> Support provided by MetaCryption LLC
>
> A slideshow presentation:
>
>  http://www.slideshare.net/mdipierro/conf2py
>
> Download as a web2py app (includes source):
>
>  http://conf2py.googlecode.com/files/web2py.app.conf2py.w2p
>
> Source only from google code:
>
>  hg clone https://conf2py.googlecode.com/hg/ conf2py
>
> BACKGROUND
> ==
>
> This software is a complete rewrite of the web2conf software developed
> for PyCon US 2009 and used for registration at PyCon 2009, PyCon 2010
> and Flisol 2010. The reason for the rewrite include source code
> simplification, added features, shift focus to more traditional
> academic conferences.
>
> Conf2py is in production since August 2010 for the 6th High End
> Visualization Workshop in Austria:
>
>http://vizworkshop.cct.lsu.edu/viz2010/
>
> FEATURES
> 
>
> - Single Sign-On using Open ID (Google) or OAuth (Facebook, MySpace,
> etc.) via Janrain.com, or Local registration/login process.
> - Conference Fee Payment with Credit Card via Authorize.Net (no need
> for secondary login)
> - Default registration fields include: first name, last name, email,
> web page, address, company, profile text, image, type of registration,
> optional tutorial registration (multiple tutorials supported), food
> preferences, arrival date and departure date, accompanying family
> members (for optional hotel pre-registration). The list of fields is
> easily extensible.
> - Configurable billing policy based on time dependent conferences rate
> for different roles and variable number of tutorials/sessions.
> - Configurable coupon discounts and coupon cancellation
> - Users can register other users and pay for them.
>
> - First page displays a slideshow
> - Arbitrary number of wiki pages using the markmin syntax
> - Wiki pages allow embedding of widgets such as "comments" or "videos"
> or "tagging" or "latex".
> - Automatic computation of geographical latitude and longitude and
> display of attendees on map.
>
> - Paper submission and review management with roles: author, editor,
> review. Author submits an abstract (talk or paper proposal). The
> editor may ask for a paper submission and assign a review of the paper
> or abstract to one ore more reviewers. The communication between
> editor and reviewer is invisible to the author. The identity of the
> reviewer is invisible to the author. The editor, based on reviewer
> recommendation can accept/reject a paper. Accepted papers are
> automatically published (a paper can be in any format and can include
> slides).
> - Paper publishing with bibtex support
> - Management interface with roles: manager, editor, reviewer, author
> (same person can have multiple roles depending on the paper).
>
> We hope it will be useful. Let us know how we can improve it even
> more.
>
> Massimo
>


[web2py] tooltips with custom forms

2010-09-18 Thread david.waldrop
Does anyone have a suggestion for how to implement a tooltip/rollover
capability when using custom forms like below:




Meeting Name:
{{form.element('input',_name='name')['_size']=50}}
{{=form.custom.widget.name}}


Password:
{{=form.custom.widget.password}}
{{=form.custom.label['password']}}


Status:
{{=form.custom.widget.status}}
{{=form.custom.label['status']}}


Ideally I would like to use the comment attribute specified in the
table definition as the test to display.  I did see a couple of
examples but they seemed to work with non-custom forms and I could not
figure out how to invoke the tooltip/mouseover.


[web2py] Re: forcing lowercase on auth email address

2010-09-18 Thread david.waldrop
how and where do I apply this to the default auth_user table since I
am using the default auth stuff and never see the table def in my
code?

On Sep 17, 5:54 pm, mdipierro  wrote:
> requires=IS_LOWER(),IS_EMAIL()
>
> On Sep 17, 4:40 pm, "david.waldrop"  wrote:
>
>
>
> > is there an easy way to force email address in the basic auth
> > mechanism to always be lower case.  I am capturing emails in another
> > form and am worried about explicit case matching.  I know I can define
> > a custom table, but was wondering if there was a simpler way.