I think what is happening is the model is exec'd at the start of the
request but if the user is not logged in yet or the session has
expired forcing a trip to the login page, the model with get None
because auth is not in the session. Once the trip to the login page
completes it goes back to the co
Another bump - has anyone had any further thoughts on how to get
web2py-component-command or web2py-component-flash working with this
code?
On Oct 13, 1:38 pm, selecta wrote:
> *bump*
> sinceuploadforms do not work in web2py components anyway this code
> could be integrated into web2py without th
No, I do not have a server that can run web2py currently. (due to a conflict
with simplejson. I require the version from pypi, which coincidentally is
incompatible with web2py (and I do not feel like reconfiguring my server to
use virtualenv)).
The code is at http://code.google.com/p/plugincentral
I've had some success with a very simple workaround for web2py-
component-command. In the form.accepts in my SQLFORM, I set a variable
'command', return it, and then in my component's view simply put
{{if command:}}
$(document).ready(function(){
eval({{=command}});
});
{{pass}}
On Oct 25, 4:26 am, Brian M wrote:
> It may not be a
> concern for your app, but it is something to consider.
You raise some very interesting points. I am probably not going to
design anything for these kinds of situations right now, simply due to
lack of time, but I'll certainly keep it in mind
yes i did it the same way, somebody with javascript knowledge would be
really helpful, just to know if fetching the header from the iframe is
possible
On Oct 25, 11:23 am, scausten wrote:
> I've had some success with a very simple workaround for web2py-
> component-command. In the form.accepts in
ah btw my solution was a bit simpler
{{=command}}
no need for document ready since all scripts in Ajax loaded HTML will
be interpreted right away
also no need for eval since the script will be interpreted anyway
On Oct 25, 11:23 am, scausten wrote:
> I've had some success with a very simple wo
Ah, of course I don't need the eval :)
However, I did require the document ready, I think because my form is
in a jQuery overlay and the command, specifically, is
location.reload() (i.e. refresh the whole page). Every other jQuery
function I tried worked without the document ready, but for some
re
On Oct 25, 1:17 am, Ruiwen Chua wrote:
> I see. So form.accept() will not parse any field unless explicitly
> defined in SQLFORM?
>
> (Ok I'm not sure if I should start another thread for this, but a few
> issues I found with using SQLFORM.. so perhaps I'm still doing
> something wrong.)
>
> a)
There are only two possibilities:
- you are not logged in
- the code above is executed before auth=Auth() in db.py is
executed (remember models are executed alphabetically)
On Oct 24, 2:18 pm, Luther Goh Lu Feng wrote:
> The snippet below defines a table that stores comments that are
> create
This has some overlap with what I am doing... anyway... we can merge
later.
On Oct 25, 3:54 am, Thadeus Burgess wrote:
> No, I do not have a server that can run web2py currently. (due to a conflict
> with simplejson. I require the version from pypi, which coincidentally is
> incompatible with web
Good idea!
On Oct 25, 6:37 am, selecta wrote:
> Quite a while ago I wrote some code for my issue tracker to show error
> tickets by their number of occurrence.
> The Idea behind this is that you will see the error that appears most
> frequently and that needs fixing immediately. Since I am too bu
so will you integrate it into the current issue tracker?
like a tab or button with "sort by number of occurrence"
On Oct 25, 1:59 pm, mdipierro wrote:
> Good idea!
>
> On Oct 25, 6:37 am, selecta wrote:
>
>
>
> > Quite a while ago I wrote some code for my issue tracker to show error
> > tickets
Hi,
The problem is
Works: http://127.0.0.1:8000//welcome/default/index
Does not Work on both mobile and Dev machine: http://ipaddress:port
//welcome/default/index
Works on Dev machine: http://machinename:port//welcome/default/index
Does not work on mobile in the same network:
http://machinename:
Hi Cfh,
I tried to deploy your modules into my web2py app but failed. The
error message is:
Traceback (most recent call last):
File "/home/zhe/workspace/gaoshi/web2py/gluon/restricted.py", line
188, in restricted
exec ccode in environment
File "/home/zhe/workspace/gaoshi/web2py/applicatio
If I have time, I would like to.
On Oct 25, 7:03 am, selecta wrote:
> so will you integrate it into the current issue tracker?
> like a tab or button with "sort by number of occurrence"
>
> On Oct 25, 1:59 pm, mdipierro wrote:
>
> > Good idea!
>
> > On Oct 25, 6:37 am, selecta wrote:
>
> > > Qu
what do you mean by "does not work"?
On Oct 25, 8:32 am, Ramjee Ganti wrote:
> Hi,
>
> The problem is
>
> Works:http://127.0.0.1:8000//welcome/default/index
> Does not Work on both mobile and Dev
> machine:http://ipaddress:port//welcome/default/index
>
> Works on Dev machine:http://machinename:p
This may be useful:
http://www.ke-cai.net/2010/05/tracking-change-with-google-diff-match.html
http://neil.fraser.name/software/diff_match_patch/svn/trunk/demos/demo_diff.html
look at the page source. It uses:
http://neil.fraser.name/software/diff_match_patch/svn/trunk/javascript/diff_match_patch
I've missed this part of the convo when I was replying to Thadeus
off-list. Anyway, since I've already done something, and the current
plugins site doesn't seem to have it's own logo either, I'll attach
the thing I've done, so you can take a look.
On Mon, Oct 25, 2010 at 1:58 PM, mdipierro wrote
Nice work!
On Oct 25, 8:49 am, Branko Vukelic wrote:
> I've missed this part of the convo when I was replying to Thadeus
> off-list. Anyway, since I've already done something, and the current
> plugins site doesn't seem to have it's own logo either, I'll attach
> the thing I've done, so you can t
https://docs.google.com/leaf?id=0BzPqKovYWlw-Mjg1NDBhNWQtOWM1MC00ZmE2LWJiZjktZWZjZTkyZTJhMmYy&hl=en&authkey=COWQ8YEF
On Oct 25, 10:12 am, mdipierro wrote:
> Nice work!
>
> On Oct 25, 8:49 am, Branko Vukelic wrote:
>
> > I've missed this part of the convo when I was replying to Thadeus
> > off-li
Have you tried serving off 0.0.0.0 instead of 127.0.0.1? 127.0.0.1 is
only visible locally.
On Mon, Oct 25, 2010 at 3:32 PM, Ramjee Ganti wrote:
> Hi,
> The problem is
> Works: http://127.0.0.1:8000//welcome/default/index
> Does not Work on both mobile and Dev
> machine: http://ipaddress:port//we
Massimo, do you have what you are working on posted anywhere?
--
Thadeus
On Mon, Oct 25, 2010 at 9:17 AM, weheh wrote:
>
> https://docs.google.com/leaf?id=0BzPqKovYWlw-Mjg1NDBhNWQtOWM1MC00ZmE2LWJiZjktZWZjZTkyZTJhMmYy&hl=en&authkey=COWQ8YEF
>
> On Oct 25, 10:12 am, mdipierro wrote:
> > Nice
I've seen the wizard video
http://vimeo.com/16048970
It's an awesome feature, much like RoR's scaffold, but with an UI.
Nice. What I'd really like to see, though, is a handy toolbar in the
Edit section that we could use to generate bits and pieces on the fly.
Like do just one table, or just modif
Branko, Did you proposed a logo for web2py main site too ?
You did an excelent work with this one, if we have a second round to submit
and vote for logos, you would send your ideas.
2010/10/25 Branko Vukelic
> I've missed this part of the convo when I was replying to Thadeus
> off-list. Anyway
On Mon, Oct 25, 2010 at 4:43 PM, Bruno Rocha wrote:
> Branko, Did you proposed a logo for web2py main site too ?
> You did an excelent work with this one, if we have a second round to submit
> and vote for logos, you would send your ideas.
Well, no I haven't proposed a logo for web2py. I wasn't a
No because I did not write anything yet.
Anyway, my idea to have something that works very much like the
layouts page: it exposes a list plugins via a json service and admin/
wizard has access to that.
For regular plugins there may be version, dependencies, etc and this
adds some complexity.
Any
The layout selector should include simpler cases as you suggest.
Creating controller on the fly is a more complex issues because it
assumes the wizard understands user's code and it does not.
Massimo
On Oct 25, 9:33 am, Branko Vukelic wrote:
> I've seen the wizard video
>
> http://vimeo.com/160
Sorry for the late response.
Here is the ajax call :
$.ajax( { url: makeUrl( { argList: [ 'getTree' ] } ),
type: "POST",
data: { treeId: p.data.treeId },
success: getTreeOnSuccess } );
The controller function :
def getTree():
tree = buildT
On Mon, Oct 25, 2010 at 5:33 PM, mdipierro wrote:
> No because I did not write anything yet.
>
> Anyway, my idea to have something that works very much like the
> layouts page: it exposes a list plugins via a json service and admin/
> wizard has access to that.
All we have to do after that is cli
On Mon, Oct 25, 2010 at 5:35 PM, mdipierro wrote:
> The layout selector should include simpler cases as you suggest.
>
> Creating controller on the fly is a more complex issues because it
> assumes the wizard understands user's code and it does not.
I've had something more along the line of creat
Massimo,
The webfaction server is Linux based and uses Apache as the web server.
Additionally, below are the commands I used to test via a python console:
--
The original app (from which the test was derived)
import xmlrpclib
rserver =
xmlrpclib.Server("http:/
It should be easy enough to add a service for a listing of plugins. Would
come up with a design specification for the API you want? Your even welcome
to make a checkout and just add an API to the plugincentral codebase if you
get to it before I do. I don't see any reason why this would need to be t
I think this should be default for the ticket view.
--
Thadeus
On Mon, Oct 25, 2010 at 8:54 AM, mdipierro wrote:
> If I have time, I would like to.
>
> On Oct 25, 7:03 am, selecta wrote:
> > so will you integrate it into the current issue tracker?
> > like a tab or button with "sort by numb
Hello,
When trying to figure out how to make mailing functionality work on GAE I
came across a couple of posts where I found this line:
mail.settings.tls=True or False
I can't understand what it means.
I found it here (in a comment by Massimo):
http://stackoverflow.com/questions/2656068/sending
Problem detailed in http://code.google.com/p/web2py/issues/detail?id=117
Guys, where is the better place to report and suggest fixes?
--
Vinicius Assef.
Problem detailed in http://code.google.com/p/web2py/issues/detail?id=118
--
Vinicius Assef.
Do not use it on GAE. It means if you require encryption when
authenticating to the SMTP server.
On Oct 25, 12:13 pm, Alexei Vinidiktov
wrote:
> Hello,
>
> When trying to figure out how to make mailing functionality work on GAE I
> came across a couple of posts where I found this line:
>
> mail.s
perfect. fixed
On Oct 25, 12:20 pm, Vinicius Assef wrote:
> Problem detailed inhttp://code.google.com/p/web2py/issues/detail?id=117
>
> Guys, where is the better place to report and suggest fixes?
>
> --
> Vinicius Assef.
perfect. fixed this too.
On Oct 25, 12:21 pm, Vinicius Assef wrote:
> Problem detailed inhttp://code.google.com/p/web2py/issues/detail?id=118
>
> --
> Vinicius Assef.
Thanks, Massimo.
But why does the line include both True and False?
Why isn't it simply
mail.settings.tls=True
or
mail.settings.tls=False
depending on the needs?
On Tue, Oct 26, 2010 at 12:27 AM, mdipierro wrote:
> Do not use it on GAE. It means if you require encryption when
> authenticat
Hi all,
I've got some users facing this peculiar problem in Radbox.
Faced in: Mac OS X 10.6.4, Firefox 3.6.10 and newer
Even when they're logged into Radbox, there's this small piece of code
which returns -1.
if auth.user:
return auth.user.id
else:
return -1
-
sounds good, thanks for the tip :)
On Oct 25, 10:01 am, mdipierro wrote:
> This may be useful:
>
> http://www.ke-cai.net/2010/05/tracking-change-with-google-diff-matchhttp://neil.fraser.name/software/diff_match_patch/svn/trunk/demos/dem...
>
> look at the page source. It uses:
>
> http://neil
That is what it is
mail.settings.tls=True or False
is just an example. The right hand site evaluates to True.
On Oct 25, 12:52 pm, Alexei Vinidiktov
wrote:
> Thanks, Massimo.
>
> But why does the line include both True and False?
>
> Why isn't it simply
>
> mail.settings.tls=True
>
> or
>
> mai
Could it be their session expired?
On Oct 25, 1:05 pm, Adi wrote:
> Hi all,
>
> I've got some users facing this peculiar problem in Radbox.
>
> Faced in: Mac OS X 10.6.4, Firefox 3.6.10 and newer
>
> Even when they're logged into Radbox, there's this small piece of code
> which returns -1.
>
> --
forgot to say... requires trunk.
On Oct 25, 1:55 pm, mdipierro wrote:
> http://web2py.com/appliances/default/show/69
I have a small suggestion that will be very helpful to n00bs like me regarding
http://web2py.com/book/default/chapter/13#Components
The following is the correct code snippet from the correct code snippet
@auth.requires_login()
def post():
return
dict(form=crud.create(db.comment), comments=d
Should we also have a section for appliances?
Anthony
On Oct 25, 4:54 am, Thadeus Burgess wrote:
> No, I do not have a server that can run web2py currently. (due to a conflict
> with simplejson. I require the version from pypi, which coincidentally is
> incompatible with web2py (and I do not fee
Consider adding code-reivew and rating features, so the community can
mark stuff as safe to include in a project or not safe.
On Mon, Oct 25, 2010 at 6:53 PM, Thadeus Burgess wrote:
> It should be easy enough to add a service for a listing of plugins. Would
> come up with a design specification f
The amazing Yahoo Pipes now runs on Google App Engine with Python!
This is a great tool to create webcrawlers and create scrappers for webpages
http://www.wordloosed.com/running-yahoo-pipes-on-google-app-engine
*sharing a tip that came from "Facundo Batista" on PyConBrasil *
This is a way to pack a Python module as a .jar in Java
Fisrt we need to create a directory called foo, and create a __init__ file
to became a Python module
$mkdir foo
$touch foo/__init__.py
Then create/edit a file
$vi foo/bar.
It seems that this widget does not work when there is more than one
list:string field in a page.
On Oct 25, 2:01 am, mdipierro wrote:
> The list:string is not an alternative to using a tag table and
> tag_link many-to-many (an example of which is provided by
> plugin_tagging).
>
> Yet you should
Nice!!!
On Oct 25, 9:49 am, Branko Vukelic wrote:
> I've missed this part of the convo when I was replying to Thadeus
> off-list. Anyway, since I've already done something, and the current
> plugins site doesn't seem to have it's own logo either, I'll attach
> the thing I've done, so you can take
h. that is possible. Will look into it.
On Oct 25, 3:59 pm, yamandu wrote:
> It seems that this widget does not work when there is more than one
> list:string field in a page.
>
> On Oct 25, 2:01 am, mdipierro wrote:
>
> > The list:string is not an alternative to using a tag table and
> > ta
>
> > Branko, Did you proposed a logo for web2py main site too ?
> > You did an excelent work with this one, if we have a second round to
> submit
> > and vote for logos, you would send your ideas.
>
> Well, no I haven't proposed a logo for web2py. I wasn't aware of
> web2py until very recently, an
+1 to Bruno and Branko
On Mon, Oct 25, 2010 at 11:17 PM, Bruno Rocha wrote:
> > Branko, Did you proposed a logo for web2py main site too ?
>> > You did an excelent work with this one, if we have a second round to
>> submit
>> > and vote for logos, you would send your ideas.
>>
>> Well, no I have
Python Bug Weekend Announced
Sharing
-- Forwarded message --
From: Antoine Pitrou
Date: 25 October 2010 19:03
Subject: [Python-Dev] Python bug week-end : 20-21 November
To: python-...@python.org
Cc: python-l...@python.org
Hello,
The development team of the Python interpr
On Mon, Oct 25, 2010 at 11:17 PM, Bruno Rocha wrote:
> Branko, I dont know if people are thinking about a Second round on logo
> votation http://www.blouweb.com/logovote/default/index?order=id
> , but even without tha votation, I think it is a good idea for you to
> propose a new logo.
> - Logo sh
Hi ,
I was looking at the db.py file and in the section regarding the
table definition , there is a note advertising the possibility to
split the model accross multiple model files. It sounds interesting
but i was wondering how can we enforce the order these files will be
loaded/executed into th
Very nice logo! could explain the concept of the ship?
All sailing together with web2py!
2010/10/25 Branko Vukelic
> It says no more uploads, so I'll attach the first proposal here. In
> the following days, I will probably do more.
>
>
>
> On Mon, Oct 25, 2010 at 11:32 PM, Branko Vukelic
> wr
Models are executed alphabetically. I typically prepend digits to the
file name for more granular control: 0_somestuff.py
On Oct 25, 6:12 pm, Manu wrote:
> Hi ,
> I was looking at the db.py file and in the section regarding the
> table definition , there is a note advertising the possibility
I Like more the white one!
What people and Massimo think about reopen logo contest for a second round
keeping just which has more than 5 votes, and new submissions ?
2010/10/25 Branko Vukelic
> It says no more uploads, so I'll attach the first proposal here. In
> the following days, I will prob
hi, i'm running across a problem and want to alert the community about
it. i don't yet have a solution but am working on it. maybe one of you
has done it before.
what's happening the javascript that prevents you from putting bad
characters in the "double" input fields is also acting strangely in
s
I have no strong opinion one way or another.
On Oct 25, 6:18 pm, Bruno Rocha wrote:
> I Like more the white one!
>
> What people and Massimo think about reopen logo contest for a second round
> keeping just which has more than 5 votes, and new submissions ?
>
> 2010/10/25 Branko Vukelic
>
>
>
>
Agreed, lowercase is more appropriate. I suspect that logo was most
popular because web2py.com uses it.
On Oct 22, 1:52 pm, weheh wrote:
> Bruno, thanks for the link. Massimo, please consider that we live in a
> case sensitive world. All your branding to date has been lower case
> web2py. web2py
My understanding was Yahoo Pipes is good for people with little
programming experience, who couldn't scrape the data otherwise.
What does it offer to programmers?
On Oct 26, 7:35 am, Bruno Rocha wrote:
> The amazing Yahoo Pipes now runs on Google App Engine with Python!
>
> This is a great tool
On a similar theme... probably also worth mentioning that this line:
mail.settings.server = 'logging' or 'smtp.gmail.com:587'
also provides an example which evaluates to 'logging'.
To get the smtp server working, you may wish to edit that to:
mail.settings.server = 'smtp.gmail.com:587'
On Oct
I read the example with great interest, but I don't understand why "3
Web2Py instances, one XML configuration" is better than multiple
configuration files. I'm not saying it's not better, I just really
don't understand it.
It would seem that either way, one still has 3 uwsgi instances and 3
web2p
GAE is to me a true cloud compute environment - you have 0 control
over the hardware, and magic happens to scale your services. This
does mean that you are restricted in what you can do - no file writes,
only have the option of bigtable for database storage inside GAE, and
some other restrictions.
The reason I like VPS.net is that I can do everything I want (like
amazon and any other vps) but up to a point I can scale it but moving
a slider on the screen (and they will move everything to a bigger/
faster instance) and it takes about one minute. On Amazon any
operation takes 20-30 minutes to
Thanks to Thadeus and Selecta we have a new ticket reporting system in
trunk.
Tickets are listed grouped by error traceback. So if there are
multiple tickets caused by the same problem, you see only one of them
with a number indicated how many occurrences. This allows you to
easily identify recurr
Has anyone tried integrating celery with web2py? If not, is there a
recommended task queue (beyond the lightweight option mentioned in the
"Core" chapter of the web2py book)?
I like the white one! Very nice! Nothing wrong with the ship. Does it
mean we are a flasg ship product with new ideas?! :D
On Tue, 2010-10-26 at 00:46 +0200, Branko Vukelic wrote:
> It says no more uploads, so I'll attach the first proposal here. In
> the following days, I will probably do more
I tried it but does not work.
What I want to do is simple. I have to open the webapplication from my
mobile browser.
Thanks,
rAm
i Think, i Wait, i Fast -- Siddhartha
http://sodidi.ramjeeganti.com
On Mon, Oct 25, 2010 at 8:05 PM, Branko Vukelic wrote:
> Have you tried serving off 0.0.0.0 in
On Oct 25, 7:54 pm, mdipierro wrote:
> On Oct 25, 1:17 am, Ruiwen Chua wrote:
>
> > I see. So form.accept() will not parse any field unless explicitly
> > defined in SQLFORM?
>
> > (Ok I'm not sure if I should start another thread for this, but a few
> > issues I found with using SQLFORM.. so p
> I read the example with great interest, but I don't understand why "3
> Web2Py instances, one XML configuration" is better than multiple
> configuration files. I'm not saying it's not better, I just really
> don't understand it.
>
> It would seem that either way, one still has 3 uwsgi instances
http://miksovsky.blogs.com/flowstate/2010/10/squeeze-wide-page-content-into-narrow-windows-let-the-content-overlap-the-left-navigation-pane.html
No. This is seconds after logging in.
On Tue, Oct 26, 2010 at 12:28 AM, mdipierro wrote:
> Could it be their session expired?
>
> On Oct 25, 1:05 pm, Adi wrote:
> > Hi all,
> >
> > I've got some users facing this peculiar problem in Radbox.
> >
> > Faced in: Mac OS X 10.6.4, Firefox 3.6.10 and
Hi,
I may have missed this, so apologies if a repeat... but would like to
know. Why do we have this happen when using the wizard? There must be
a good reason, just can"t figure it out...
from gluon.contrib.populate import populate
if not db(db.auth_user).count():
populate(db.auth_user,100)
When you use the wizard, on step 6, it asks if you want to populate
the table with dummy data or not.
On Oct 26, 12:53 am, mart wrote:
> Hi,
>
> I may have missed this, so apologies if a repeat... but would like to
> know. Why do we have this happen when using the wizard? There must be
> a good
*A ship on the beach is a lighthouse to the sea.*
2010/10/26 Jason Brower
> I like the white one! Very nice! Nothing wrong with the ship. Does it
> mean we are a flasg ship product with new ideas?! [image: :D]
>
>
> On Tue, 2010-10-26 at 00:46 +0200, Branko Vukelic wrote:
>
> It says no more
oh, didn't realize it was the dummy data... thanks for clearing it up.
Mart :)
On Oct 26, 2:09 am, mdipierro wrote:
> When you use the wizard, on step 6, it asks if you want to populate
> the table with dummy data or not.
>
> On Oct 26, 12:53 am, mart wrote:
>
> > Hi,
>
> > I may have missed th
Google Translated to English:
http://translate.google.com.br/translate?js=n&prev=_t&hl=pt-BR&ie=UTF-8&layout=2&eotf=1&sl=pt&tl=en&u=http://rochacbruno.com.br/blog/2010/10/curitiba-e-minha-participacao-na-pythonbrasil6/
Original in portuguese:
http://rochacbruno.com.br/blog/2010/10/curitiba-e-minh
Hello,
Experimenting with the new wizard to accelerate my developement, I
encountered an error when defining a recursive field.
With table location
and fields
id_location location
description
barcode
I get:
File "C:\Users\Andre\Documents\web2py\gluon\sql.py", line 1528, in
__allocate
rais
84 matches
Mail list logo