Sorry i have this same problem(on mac) and i am pretty sure I have
distutils installed, how can I troubleshoot?
On Wednesday, October 17, 2012 11:30:33 PM UTC+2, Massimo Di Pierro wrote:
>
> The line is:
>
> from distutils import dir_util
>
> I think you need to install distutils separately.
>
>
I get the same problem and I am pretty sure I have distutils installed(on
mac). How can I troubleshoot?
On Wednesday, October 17, 2012 11:30:33 PM UTC+2, Massimo Di Pierro wrote:
>
> The line is:
>
> from distutils import dir_util
>
> I think you need to install distutils separately.
>
>
> On Tue
Anyone have a super simple example of how to go from a javascript object,
being sent to web2py via jquery.ajax and being returned and processed?
Everything that I've come across has either not worked, or has been sending
simple key value pairs.
All I want to be able to do is send a shopping car
I defined the following table:
db.define_table('person',
Field('nodeID','reference node'),
Field('photoName',length=32,writable=False,readable=False),
Field('photoFile',type='upload',requires=IS_EMPTY_OR(IS_IMAGE())),
Field('firstName',length=32,requires=IS_LENGTH(32,error_message
Had a fun idea.
I would create pdf templates in svg format using inkscape and it's magic.
Then when the template is rendered using the render() method, I would
using inscape from command line to convert the page to PDF.
Fun right?
Any problems you see in this?
BR,
Jason Brower
--
There appears to be some new code in gluon/main.py to handle component
flash.
# @line 564 in gluon/main.py
if response.flash:
http_response.headers['web2py-component-flash'] = urllib2.quote(
xmlescape(response.flash).replace('\n',''))
Problem with this is that urllib2.quote() is putting %20
it worked well on 12.04. Stopped working on 12.10. Still trying to figure
it out...
2012/10/21 Bruno Rocha
> I installed today a new webserver on Linode using Ubuntu 12.04. I used the
> scripts/setup-ubuntu-nginx and it works very well, I included some
> changes on wsgi config file as you ca
I installed today a new webserver on Linode using Ubuntu 12.04. I used the
scripts/setup-ubuntu-nginx and it works very well, I included some
changes on wsgi config file as you can see here:
https://github.com/web2py/web2py/pull/35
But, if this stopped working for you, you can try to remove th
Once again, the question:
wich one should give better results (performance wise)...
Also, taking into consideration, Apache2+mod_pagespeed vs Nginx ...
Hoping to hear your insights about this issue.
Cheers!
--
[]'s
Marco Tulio
--
Was there any changes on newest release of Ubuntu that would explain uwsgi
stop working ?
(using latest web2py and nginx+uwsgi script - 2.2.1 Stable)
Just wondering...
--
[]'s
Marco Tulio
--
I was thinking more like a db call that would display previews of the ten
most recently submitted articles. Sorted by
db.wiki_page.created_on
On Sunday, October 21, 2012 4:06:26 PM UTC-7, Bill Thayer wrote:
>
> Ok,
>
> Actually i am just getting there myself on my application. There is a
> clo
I think this is such common requirement, but took me a long time to get
working because the libraries were not always correct/compatible which was
very confusing for me. I originally found some code which I adapted and
added a simple spam test, but I wouldn't really use that technique on a
p
Ok,
Actually i am just getting there myself on my application. There is a
cloud() function and a search() function inside gluon.tools so chances are
writing a pre-defined search might get you 3/4 the way there. Wish I had a
better strategy to give to you.
Regards,
Bill
On Sunday, October 21,
Agree with what you say, but just an extra comment about this...
>> and must be parsed externally to return a timedelta
yes, this is why time on its own is useless because you always have to
combine it back with a date to do anything with calculations.
On Saturday, October 20, 2012 10:09:36
Valeu Bruno !
Thank you
On Sunday, October 21, 2012 10:27:03 PM UTC+1, rochacbruno wrote:
>
> Not in that way, but you can try
>
> {{
> def icon(icon):
> return IMG(_src=ICONSPATH+icon,_alt=icon)
> pass
> }}
> {{def icon_link(icon,url):}}
> {{=A(icon(icon),_href=url))}}
> {{return}}
>
> {
PS: I need backward compatibility for old projects, and I proposed to
enable unicode urls by default for new projects
--
and when it will be fixed?
2.2.1 is not backward compatible, what works with 1.99.4 doesn't work with
2.2.1
On Sun, Oct 21, 2012 at 9:36 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> True. We are discussing on web2py_developers how that should work.
>
>
> On Sunday, 21 October 201
Then use your string vars like this: db[mytablename][myfield]
On Sunday, October 21, 2012 10:01:10 PM UTC+1, apinho wrote:
>
> That code doesn't work for me, I get :
> 'mytablename'
>
> 'mytablename', 'myfield' are string vars. I don't really have a table
> called 'mytablename'.
>
> On Sunday
Imagine I have a controller that uses multiprocessing to run something in a
different process, and then I want an ajax function that updates the form
communicating with the background job with a multiprocessing.Manager() .
I need to keep track of my manager per session. This is not going to work
How about retain everything lowercase in the DB but simply display with
.title()? I guess that would fix most situations apart from acronyms e.g.
DBMS >> Dbms, or other mixed-case. But at least it would look much better
and be very easy to implement.
I was wondering about styling the tags DIV
No no. I mean listing wiki articles for users to browse, like a CMS front
page.
For example, I might want my front page to list articles with previews for
certain tags. For that I need to know what db table the wiki info is saved
to. It's not displayed by default in the appadmin database manage
moreover, if you use that functions all over your views, better define them
in models or in modules.
On Sunday, October 21, 2012 11:27:03 PM UTC+2, rochacbruno wrote:
>
> Not in that way, but you can try
>
> {{
> def icon(icon):
> return IMG(_src=ICONSPATH+icon,_alt=icon)
> pass
> }}
> {{def
Without code to reproduce it's hard to give you any clue on how to fix
thisWhat is the web2py version? Can we see the function ? Seems that
the result of the function is calling scheduler code againcan you tell
us more about what are you trying to do ?
are you doing in some places in yo
When you say listing pages created by auth.wiki I take that to mean a
listing to display within the web browser. On mine I do have my index()
controller return auth.wiki and as long as I am logged into my application
I see an option under the [wiki] menu that says "manage pages".
On Friday, O
I get this error message:
Traceback (most recent call last):
File "/users/www-data/web2py/gluon/scheduler.py", line 232, in executor
result = dumps(_function(*args, **vars))
File "applications/secure/models/schedule.py", line 742, in redirect_email
message=str(rueckmeldung)+'\n'+str(T(
Hi,
I try to use functions inside my views. Helps keeping things more concise.
I found that "functions inside function" doesn'twork.
Something like :
{{def icon(icon):}}
{{=IMG(_src=ICONSPATH+icon,_alt=icon)}}
{{return}}
{{def icon_link(icon,url):}}
{{=A(icon(icon),_href=url))}}
That code doesn't work for me, I get :
'mytablename'
'mytablename', 'myfield' are string vars. I don't really have a table
called 'mytablename'.
On Sunday, October 21, 2012 7:39:50 PM UTC+1, Massimo Di Pierro wrote:
>
> You should not do this:
>
> orderby=mytablename+'.'+myfield+' '+myorder+',
It is already in web2py 2.2.1 ;-)
On Sunday, 21 October 2012 14:06:53 UTC-5, Adi wrote:
>
> Confirming that it works PERFECT :) handling all three queues (groups)
> concurrently as it should.
>
> now loading first 600k tasks to see if it will degrade performance, and if
> ok, then couple more
Confirming that it works PERFECT :) handling all three queues (groups)
concurrently as it should.
now loading first 600k tasks to see if it will degrade performance, and if
ok, then couple more around 2-3M each...
Niphlod and Massimo, thank you!
When did you plan to include new scheduler into ni
You should not do this:
orderby=mytablename+'.'+myfield+' '+myorder+','+mytablename+'.id'
You should instead use one of the following
orderby=db.mytablename.myfield|db.mytablename.id
orderby=~db.mytablename.myfield|db.mytablename.id
orderby=db[mytablename][myfield]|db[mytablename].id
orderby=~db
Please open a ticket with a request for enhancement. We can do this.
On Sunday, 21 October 2012 12:44:48 UTC-5, HittingSmoke wrote:
>
> Markmin includes the markup to display the title where you want it. I
> believe the title being automatically displayed should be removed so we can
> choose whe
True. We are discussing on web2py_developers how that should work.
On Sunday, 21 October 2012 11:50:19 UTC-5, Vasile Ermicioi wrote:
>
>
> the problem with routes_apps_raw and unicode url not fixed :(
>
>
>
--
will do it right now :)
On Sun, Oct 21, 2012 at 10:30 AM, Niphlod wrote:
> a subtle bug appearead on the last patch, please re-download scheduler.py,
> should all be ok right now (as of revision
> 1cc2decfddb4ec2b9a2cd8e098754504856f1990)
>
>
> On Sunday, October 21, 2012 4:10:07 AM UTC+2, Adi w
Ok,
found the answer. By adding 'id' as an orderby field, the order of the rows
if never changed, even if the original orderby field is not unique :
rows = db().select(
mytable.ALL,
orderby=mytablename+'.'+myfield+' '+myorder+','+mytablename+
'.id',
limitby=(
Markmin includes the markup to display the title where you want it. I
believe the title being automatically displayed should be removed so we can
choose whether to include it using *#Markmin* or add a way to disable it,
such as MediaWiki's __NOTITLE__ flag.
--
Hi,
I'm using this query :
rows = db().select(
mytable.ALL,
orderby=mytablename+'.'+myfield+' '+myorder,
limitby=(page*ITEMSPERPAGE-ITEMSPERPAGE,page*ITEMSPERPAGE)
)
'myorder' is either 'asc' or 'desc. 'mytable', 'myorderby' and 'myorder' ar
all st
the problem with routes_apps_raw and unicode url not fixed :(
--
P.S. Of course sessions in cookie are encrypted with AES and digitally
signed with HMAC and optionally zipped with ZLIB.
On Sunday, 21 October 2012 11:03:35 UTC-5, Massimo Di Pierro wrote:
>
>
>
>- session.connect(cookie_key='secret', compression_level=9) stores
>sessions in cookies
>
Hello Simon,
where does your localhost point to ?? ... does it point to the web2py
directory ?? .. how did you configure your wsgi ? ..
If you used the script that configures the "www-data user & group" script
under the home folder than you will be able to do the following to have php
running in
- session.connect(cookie_key='secret', compression_level=9) stores
sessions in cookies
- T.is_writable = False prevents T from dynamically updating langauge
files
- all code is more PEP8 compliant
- better custom_importer behaviour (now works per app, is smalled and
faster
Will do asap. The one that ships with admin is updated, the one on
web2py.com/plugins is not.
On Sunday, 21 October 2012 09:35:44 UTC-5, kirilisa wrote:
>
> Hi,
>
> I'm new to web2py (and to python in fact) and was very excited about the
> ease of use that seemed evident in web2py for building
Hi,
I'm new to web2py (and to python in fact) and was very excited about the
ease of use that seemed evident in web2py for building my HTML5 app. As I
had previously determined to use jQuery Mobile, I was even more excited to
see that there was a plugin for that. However, downloading the plugin
You can also find sove videos on vimeo, for example:
http://vimeo.com/7552289
http://vimeo.com/21364178
and some apps here:
http://web2py.com/appliances
On Sunday, 21 October 2012 10:00:27 UTC-5, John-Kim Murphy wrote:
>
> You can try the web2py Application Development Cookbook:
>
> http://www.am
You can try the web2py Application Development Cookbook:
http://www.amazon.com/web2py-Application-Development-Cookbook-Martin/dp/1849515468
On Sunday, October 21, 2012 10:31:23 PM UTC+9, Jscriptor09 wrote:
>
> Is there a good web2py book outhere (paer or electronics). I got the
> online manual
a subtle bug appearead on the last patch, please re-download scheduler.py,
should all be ok right now (as of revision
1cc2decfddb4ec2b9a2cd8e098754504856f1990)
On Sunday, October 21, 2012 4:10:07 AM UTC+2, Adi wrote:
>
> hmm... seems like we still have the same problem, unless i was supposed to
Is there a good web2py book outhere (paer or electronics). I got the
online manual but looking for something I can have a a ref with several
good examples of building website from scratch. The online doc is a good
starter, which I am using now to get up to speed
thanks
--
Hi,
I'm trying to show show a modal window containing a SQLFORM. I'm using the
standard twitter bootstap. If the SQLFORM passes the validation that
everything is fine (form closes, processed OK, db updated etc). However, if
validation fails then the modal window still closes. I have to re-open
Ok... I found the mistake:
db.answers.card_id.requires=IS_IN_DB(db(db.card.subject_id == subject_id),*
'card.id',*'card.question')
On Monday, October 15, 2012 6:44:23 PM UTC+2, jw wrote:
>
> Some time ago, I had this problem:
> https://groups.google.com/forum/?fromgroups=#!searchin/web2py/pre-
On Friday, October 19, 2012 11:50:20 PM UTC-7, alazar baharu wrote:
>
> hello every on e am developing a simple office space management
> information system using web 2py and i get in trouble doing some tasks.
> i have a table called office where office information will be saved there
> including
49 matches
Mail list logo