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 office capacity and there is also a table which helps in giving
office to
Could you set ldap_auth's *logging_level* to debug and see (in console)
what's happening? Or you could specify *allowed_groups*=['some group name']
if there a logic error and login works only with allowed_groups set.
Sorry I have no AD to test. With ldap it works. So I need a bit help...
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
Whr do I set the log level and see how the code is executing I realy need
that for debugging.
On Oct 20, 2012 9:20 AM, szimszon szims...@gmail.com wrote:
Could you set ldap_auth's *logging_level* to debug and see (in console)
what's happening? Or you could specify *allowed_groups*=['some group
ldap_auth(...as usual...,logging_level='debug')
2012. október 20., szombat 9:29:44 UTC+2 időpontban software.ted a
következőt írta:
Whr do I set the log level and see how the code is executing I realy need
that for debugging.
On Oct 20, 2012 9:20 AM, szimszon szim...@gmail.com javascript:
I performed as Massimo's suggestion,
fake_migrate_all=True,migrate_enabled=True
But I ran into an Internal Error: Unknown. (no ticket).
On Thursday, October 18, 2012 8:17:23 PM UTC+8, Massimo Di Pierro wrote:
You mean you do not see the .table files?
Try:
Hii,
I have two tables
db.define_table('plugin_seq',
Field('filename',readable=False,writable=False),
Field('raw_seq','text'),
Field('processed_seq', 'text'),
Field('reverse_seq','text')
)
I need unicode urls, so I enabled routes_apps_raw for my app,
and in models I have a file 0.py where I have this code
if not request.args:
request.args = List(request.raw_args.split('/')) if request.raw_args
else []
if not request.args:
request.args = List()
and when going to
Constrained by some performance requirements I am developing a web app
using Go http://golang.org/, Gorilla http://www.gorillatoolkit.org/, The
Goods http://thegoods.biz/ and MongoDB http://labix.org/mgo.
While I enjoy the beauty of go and the lightweight feeling of minimal
libraries I stop
I think you are experiencing what is described in this post:
https://groups.google.com/forum/?fromgroups=#!searchin/web2py/leak/web2py/Go1TUyDm4ys/_2W7qnK8ZMEJ
and it was fixed in 2.1.1.
Massimo
On Saturday, 20 October 2012 02:04:32 UTC-5, Marin Pranjić wrote:
web2py 2.0.9
python 2.7.2
I
When you get an unkown error there is a traceback in the console or apache
logs. Can I see the traceback?
On Saturday, 20 October 2012 04:04:22 UTC-5, lyn2py wrote:
I performed as Massimo's suggestion,
fake_migrate_all=True,migrate_enabled=True
But I ran into an Internal Error: Unknown. (no
common guys, this is the second post and no one replies me,
since 1.99.4 no web2py version works with my apps and this is a bad sign,
where is the promise of fast bug fixing - or do you think this is not a
bug?
web2py promises backward compatibility, or something changed?
I pointed as detailed
On Friday, October 19, 2012 2:31:31 PM UTC-5, Massimo Di Pierro wrote:
It was pointed out by our friend Andriy that web2py has poor pep8
compliance.
What kind of app tests would be necessary to detect issues?
After looking at the changes list in Google code, it seems to me that no
strange. I see lots of changes in gluon/dal.py. For example
raise SyntaxError,
into
raise SyntaxError(...)
I cannot say what can go wrong. autopep8 should not change the logic.
On Saturday, 20 October 2012 08:47:13 UTC-5, Alan Etkin wrote:
On Friday, October 19, 2012 2:31:31 PM UTC-5,
I agree that currently the URL is validated even if you
have routes_apps_raw.
Please an issue in google code and it will be addresses asap.
massimo
On Saturday, 20 October 2012 05:40:22 UTC-5, Vasile Ermicioi wrote:
I need unicode urls, so I enabled routes_apps_raw for my app,
and in models
one sec. I don't see in that htop 2 processes with many threads. There
are 27 different PIDs there! What is your apache config ?
On Saturday, October 20, 2012 2:20:23 PM UTC+2, Massimo Di Pierro wrote:
I think you are experiencing what is described in this post:
Where was that ? (just for future reference if anyone sees this thread)
On Saturday, October 20, 2012 4:08:50 AM UTC+2, lyn2py wrote:
Hi Niphlod,
Thanks for the suggestion, I finally figured out what's wrong. I had the
code $(document).ready(function()... when that was removed, it worked.
I can't find them in my database...
Wikis are stored in the wiki_page table
To make wiki_ tables visible you must add this statement to your base model
file (i.e. db.py)
auth.wiki(resolve=False)
The resolve argument prevents web2py to configure the response for the wiki
user interface,
I should clarify my answer. While I am not sure if raw_args is working as
intended or not, and I am looking into this, web2py does not limit your
ability to use unicode in URLs. It just asks you to do in a way that is
safe.
For example, imagine you want an url like this:
no prio available (it's hard to manage a task queued 3 hours ago with
prio 7 comes before of after one with prio 8 queued 2 hours ago ?).
hackish way: tasks are picked up ordered by next_run_time. So, queue your
tasks with next_runtime = request.now - datetime.timedelta(hours=1) kinda
if you use 'reference tablename' replace all your 'defined' with 'created
yet on the database' and all you sentence is right.
On Saturday, October 20, 2012 2:41:52 AM UTC+2, Don_X wrote:
Definitely clearer ! ... Thanks a bunch guys ! ...
in conclusion :
whenever one decides to do the
Hi,
which cloud storage service is accessible from openshift-deployed web2py
app?
s3 , dropbox , google drive , ...
My main purpose is to store photos.
Regards,
Ashraf
--
I am very puzzled but this. It should not be necessary. Does the code below
work for you?
$ python web2py.py -S welcome
(InteractiveConsole)
import simplejson
Do you have a module called simplejson in yourapp/modules/?
From a normal python shell, shat happens if you do?
import simplejson
I still do not understand. Can you give me exact steps to reproduce the
problem?
On Thursday, 18 October 2012 02:18:50 UTC-5, Rohan Malhotra wrote:
On Thursday, 18 October 2012 02:51:52 UTC+5:30, Massimo Di Pierro wrote:
What is the code? Is this something that worked before? using a custom
Ashraf,
I replied on the github issue as well but you should be able to add boto to
web2py lib and use it to store photos on your S3 account without issue. Let
me know if you run into any problems.
Regards,
Andrew
On Saturday, October 20, 2012 9:43:08 AM UTC-5, apps in tables wrote:
Hi,
Notice you can do
$ pip install pyfilesystem
import pyfilesystem
s3 = fs.s3fs.S3FS()
db.define_table('mytable',,Field('file','upload',uploadfs = s3),...)
You can use any pyfilesystem (s3, dropbox, ftp, zip, etc) to store your
uploads.
On Saturday, 20 October 2012 09:50:39 UTC-5,
Hello Bill
which web2py version? Can you try 2.1.1?
On Thursday, 18 October 2012 19:19:40 UTC-5, Bill Thayer wrote:
Using the auth.wiki I am defining my menu. When I hit submit I get the
error below. The menu I wrote in is currently long I guess but it couldn't
be more than 4000 bytes
Delete should return the number of deleted records. What is your proposal?
On Wednesday, 17 October 2012 17:30:22 UTC-5, howesc wrote:
Hi all,
I'm trying to clean up old expired sessions.but i waited a long time
to get to this and now my GAE delete is just timing out. Reading the GAE
Sorry I was not clear. IS_DATE and IS_DATETIME allow you to specify a
format. IS_TIME does not. You cannot use IS_DATE with a time only format
string (dates do not include time). Please open a ticket with a suggestion
for enhancement.
On Wednesday, 17 October 2012 12:52:58 UTC-5, dantuluri
all clear :) in process of implementing.
Is new api defined in scheduler.py, since i don't see it in there (2.1.1
(2012-10-17 17:00:46) dev), but I'm modifying the existing code to employ
fast_track, since order confirmations are getting behind. This will be
really good :) Thanks again, and
Hi Alan,
I really appreciate if you can write an example that access wiki_page
without the use of auth_wiki interface. (just one wiki_page is enough)
Regards,
Ashraf
--
Hi Andrew and Massimo,
I will try boto and let you know .
regards,
Ashraf
--
Thanks Massimo, I have looked at the error log files, and found this
traceback:
__db_meta_setup:
/home/www-data/web2py/applications/nea/cache/cache.shelve.db: unexpected
file type or format
ERROR:web2py:Traceback (most recent call last):
File /home/www-data/web2py/gluon/restricted.py, line
couple things happened...
The main group worker got created even though I didn't call it... Not sure
why, but i guess because there are lot of leftover tasks queued (500k) and
some were assigned when I stopped the process.
Even though fast_tack worker started, nothing is getting picked, assigned
It was in my index.html file. I thought that since it was js, it wouldn't
affect. But it turned out to override the web2py component.
To resolve, use
$(function(){...
instead.
On Saturday, October 20, 2012 10:17:45 PM UTC+8, Niphlod wrote:
Where was that ? (just for future reference if
It appears that the most efficient way to delete on app engine is to:
- build a query object, like we are doing now
- call run with keys_only=True
(https://developers.google.com/appengine/docs/python/datastore/queryclass#Query_run)
which returns an iterator.
- pass that iterator to the
Hello Massimo!, comments inline.
On Saturday, October 20, 2012 11:43:43 AM UTC-3, Massimo Di Pierro wrote:
I am very puzzled but this. It should not be necessary. Does the code
below work for you?
$ python web2py.py -S welcome
(InteractiveConsole)
import simplejson
If I use
i can confirm that size of the queued records has something to do with
delay to process different queues... once i deleted all outstanding records
from main group, fast_track group started working as expected... sorry for
a long thread, but i think it's a very neat idea to load scheduler with
lots
Hi,
I want to use Web2Py as much as possible. For a holiday blog I want to
upload photo's from my iPhone using appadmin.
From my windows PC this works file. I get a file location and a file which
i can view.
But an upload from my iPhone gives no error, a new record is created but
without
Sorry if it sounds obvious, but I suppose you have checked that you can
write to that dir and the permissions are correct? It is best to have dirs
and files belonging to the same user that your webservice uses. e.g. I
chown my files www-data:www-data
BTW I remove|rename my
It's easy to access the table wiki_page using DAL as usual.
Make a python commandline for your app...
python web2py.py -S yourapp -M
Type these two lines into your python commandline.
auth.wiki(resolve=False)
db().select(db.wiki_page.body).first().body
Otherwise, access via a
You're right, there's a bug: for zillions of queued tasks at the same
priority (i.e. got queued first) the bunch we assign on every loop
doesn't take into account that there might be 10 or 20 tasks to assign and
execute on a faster pace in the following bunch(es). Nice catch!
reviewing the
Hi Omi
I don't think composite primary keys have ever been supported, so I
suppose you would be on your own with that design strategy and who knows
how it worked! :)
D
On Friday, October 19, 2012 10:38:21 PM UTC+1, Omi Chiba wrote:
It worked when I specified single prymarykey. It's kind
Totally agreed... i stopped developing years ago, but web2py brought me
back and gave confidence, and courage to do this kind of large scale rapid
development just by myself...
Thank you Massimo and all other true experts on your generous contribution
and help...
What makes this fantastic
I do not think that your problem is clearly defined enough for anyone to
answer.
Do you perhaps mean the max processed_seq in each table?
On Saturday, October 20, 2012 10:53:28 AM UTC+1, praveen krishna wrote:
Hii,
I have two tables
db.define_table('plugin_seq',
Actually processed_seq refers to a list of strings in plugin_seq table and
in primer_seq it has list of substrings . I want find all the substrings in
the list which are in processed_seq field of plugin_seq table .I had
written the code when I have single substring but I am unable to implement
Hi Alan
I was only talking about the specific feature of putting this into a view:
{{=auth.wiki('slug')}}
I really like auth.wiki(), but being used in that way (inside a view) it
misbehaves, as I described.
If it doesn't find a wiki page, I would sometimes prefer it to fail
silently and
just sent the patch to Massimo. If you're in a hurry, as soon as it is
committed just replace your gluon/scheduler.py with the one from trunk
Thanks for pointing out this misbehaviour of the scheduler.
On Saturday, October 20, 2012 8:25:12 PM UTC+2, Niphlod wrote:
You're right, there's a
The main group worker got created even though I didn't call it... Not sure
why, but i guess because there are lot of leftover tasks queued (500k) and
some were assigned when I stopped the process.
Remind that a group_name for tasks is required for the scheduler to work.
However, the
To me it looks like you do not have the folder
/home/www-data/web2py/applications/app/databases
of you do not have the right permissions on the folder
On Saturday, 20 October 2012 10:53:46 UTC-5, lyn2py wrote:
Thanks Massimo, I have looked at the error log files (production site),
and found
Yeah, I think you're right.
I already fix my app so it's good now!!
Sent from my Verizon Wireless BlackBerry
-Original Message-
From: villas villa...@gmail.com
Sender: web2py@googlegroups.com
Date: Sat, 20 Oct 2012 11:44:47
To: web2py@googlegroups.com
Reply-To: web2py@googlegroups.com
How about adding a gae only parameter to the gae adapter_args that tells it
to skip fetch?
On Saturday, 20 October 2012 11:25:51 UTC-5, howesc wrote:
It appears that the most efficient way to delete on app engine is to:
- build a query object, like we are doing now
- call run with
I meant to skip count.
On Saturday, 20 October 2012 15:28:56 UTC-5, Massimo Di Pierro wrote:
How about adding a gae only parameter to the gae adapter_args that tells
it to skip fetch?
On Saturday, 20 October 2012 11:25:51 UTC-5, howesc wrote:
It appears that the most efficient way to
I really appreciate if you can write an example that access wiki_page
without the use of auth_wiki interface. (just one wiki_page is
enough)
Posted this same answer somewhere (perhaps I just emailed it to apps in
tables, who knows)
I made a
In my experience a time field is more or less useless and you may as well
store the time as a string. I think everyone else may feel the same,
which is why IS_TIME still has no format validation even after 5 years.
If you don't want to store as a string, then if I were you, I would store
It's good to have some extra wiki info available to get people started.
LOL looks like you already made yourself an interesting blog there too!
D
On Saturday, October 20, 2012 9:51:46 PM UTC+1, Alan Etkin wrote:
I really appreciate if you can write an example that access wiki_page
without
+1, although what IS_TIME does (e.g. 0-24 for hours, 1-12 if am-pm is
there, 0-60 for minutes, etc) fills all possible requirements for a
single input.
and in another field I want to accept time format of form (hours:minutes
to hours:minutes).
What the user asked for I think is a
I just tried this (using OSX binary distribution -nightly built) and I
cannot reproduce it. Could you try it?
Massimo
On Saturday, 20 October 2012 11:32:55 UTC-5, Luciano Laporta Podazza wrote:
Hello Massimo!, comments inline.
On Saturday, October 20, 2012 11:43:43 AM UTC-3, Massimo Di
Can you somehow log request.vars.file on upload? The issue is to determine
whether the file is there or not.
On Saturday, 20 October 2012 12:42:55 UTC-5, Richard wrote:
Hi,
I want to use Web2Py as much as possible. For a holiday blog I want to
upload photo's from my iPhone using appadmin.
On Sat, Oct 20, 2012 at 7:35 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
I just tried this (using OSX binary distribution -nightly built) and I
cannot reproduce it. Could you try it?
Sure!, I'll do it right now and get back to you.
Massimo
On Saturday, 20 October 2012
Hello web2py community!
I have a question:
I know how to get the user's geolocation:
script
if(navigator.geolocation)
{
navigator.geolocation.getCurrentPosition(printLocation);
function printLocation(position)
{
alert(lat: +position.coords.latitude + lon: +
You can try something like
jQuery.post({'url':'{{=URL('youraction')}}','data':'a='+position.coords.latitude
+ b + position.coords.longitude)});
On Saturday, 20 October 2012 17:42:15 UTC-5, Michael Gheith wrote:
Hello web2py community!
I have a question:
I know how to get the user's
Since start with, contains is not translatable should we give it as an
option? Is there a way to leave just the first search field and hide the
other options?
Regards,
Tito
--
Linux User #387870
.
_/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:___
--
Awesome. Thank you so much Massimo!
On Saturday, October 20, 2012 5:52:24 PM UTC-5, Massimo Di Pierro wrote:
You can try something like
jQuery.post({'url':'{{=URL('youraction')}}','data':'a='+position.coords.latitude
+ b + position.coords.longitude)});
On Saturday, 20 October 2012
Hi Kenneth,
Sorry for the delay in getting back to you. Yes, if you could send me a
copy of your vhosts file it might be very useful.
Regards
Simon
On Saturday, 13 October 2012 09:11:03 UTC+1, Kenneth wrote:
Hi,
the is no problems running both PHP and web2py side by side. If you're
I was about to submit this as an issue but I figured since it's
experimental still I should ask if there's something more behind this
behavior that I'm not understanding.
I made a wiki page with tags. The tags start with a capital letter
(Youtube) because I'm anal about such things. When I
I agree there is a bug. Question: should tags youtube and Youtube be
treated as different? Should capitalization be retained?
For now I fixed iit in trunk so that is always stores tages in wiki_tags in
lower case and treats youtube and Youtube as equivalent even if it retain
the original
Hi
I am trying to learn web2py using the online book.
Page 45 provide instruction on how to use the interactive shell
However, the coomands are not getting executed.
For a minor line command
a=3
print type(a)
I get this
web2py Shell (2, 1, 1, datetime.datetime(2012, 10, 15, 12, 44, 40),
will try to replacing scheduler.py in production and load some serious data
again, since all is setup there for the full process, so we can have a real
test :)
I understand the concept with main being the default group, but wasn't sure
if I was doing something wrong. All clear now :) Thanks for
sure. i'll make a patch soon...
thanks for the input!
cfh
On 10/20/12 13:29 , Massimo Di Pierro wrote:
I meant to skip count.
On Saturday, 20 October 2012 15:28:56 UTC-5, Massimo Di Pierro wrote:
How about adding a gae only parameter to the gae adapter_args that tells
it to skip fetch?
Hi Massimo,
I have run your script on a test box (linux mint) and it worked just fine.
It got me running web2py with Apache.
Can you elaborate on what I need to do in order to also get php working. I
copied that code you wrote Location /php/Location into the apache
configuration file. I
hmm... seems like we still have the same problem, unless i was supposed to
copy more files than just scheduler.py
loaded around 12,000 records into slow_track, while fast_track has very
few, but some should be executed by now...
3 workers are properly running (main, slow_track, fast_track), but
Personally I think it should retain case in the tag but all searching
should not be case sensitive. Retaining case is good for readability and
navigation.
On Saturday, October 20, 2012 5:39:54 PM UTC-7, Massimo Di Pierro wrote:
I agree there is a bug. Question: should tags youtube and Youtube
73 matches
Mail list logo