Yes, I've found the bug, too. But I can confirm as fixed in current trunk =
Version
2.4.1 alpha.2 (2013-01-30 14:25:06)
Cheers,
Nico
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving emails
Hello Mariano,
Regarding to the tickets I've seen that they are stored in my errors
directory, so I can read them there (they are not well formatted, but at
least I can see the error).
For me is more important how to insert and read traces, and following your
idea I will check if there is any
Your model is not saving somewhere the company_id related to a sale. (i.e.
if multiple users have the same company, then this query won't return all
the sales of the given company)
If all data in company means all data of the current user then it's
easy.
db(
(db.auth_user.id ==
you have to alter the default download() function to return cache headers.
The theoretical problem is that web2py (and then the wiki) doesn't know
when the image stored in a table would be updated, so it doesn't issue any
cache headers by default.
On Thursday, January 31, 2013 9:49:21 PM
You're right. I remember having disproportionate trouble getting the @ sign
in the regex and never bothered revisiting the code to add it in. (My
original code was for internal company use and used force='..regex_here...'
to ensure the emails were from a set number of internal domains, so it
Hi
I am totally new to web2py and thinking of skipping Django to get things
done in Web2py instead. But - I really like working in an IDE if possible.
Is there any Eclipse web2py plugin - I find it quite messy to add headers
for every controller manually. Learned about WingIDE but I dont like
Hello,
On Friday, June 8, 2012 8:37:39 PM UTC+5:30, Andrew wrote:
You can find it here: - https://github.com/prelegalwonder/openshift_web2py
I followed this guide.
This is what I have : I've created an application which stays in
application folder of web2py source.
I did following to push
I have two computers that I work on: a 32-bit netbook and a 64-bit desktop.
Sometimes I will rsync my entire working copy of the web2py application I'm
working on from one machine to the other, rather than getting a fresh copy.
When I do this from the netbook to the desktop, the web2py server
Just go with Sublime Text 2!
2013/2/1 Mika Sjöman mikasjo...@gmail.com
Hi
I am totally new to web2py and thinking of skipping Django to get things
done in Web2py instead. But - I really like working in an IDE if possible.
Is there any Eclipse web2py plugin - I find it quite messy to add
Maybe I'm doing something wrong, because I get the same problem on mac with
the latest git.
I change the welcome app like so
from gluon.debug import dbg
def index():
example action using the internationalization operator T and flash
rendered by views/default/index.html or
Hi Everyone,
Been trying this for a while now with no luck. telnet works 127.0.0.1 25
and I can send mail through that. I then open up python shell and send
email successful also, however whenever I want to send a email through
web2py I get this in the postfix log:
Feb 1 10:45:06
On Thursday, January 31, 2013 7:26:45 AM UTC-5, Johann Spies wrote:
When webeditors become as good as emacs, vim, bluefish, I will consider
it. For now I did not find any editor that can compete with them.
I am a die-hard Emacs user, but I find the web editing facilities in web2py
good
Hi Niphlod, I don't know very well which header I have to set, can you give
me an example?
The 304 is sent by the server to the user accordingly to the user's
request.
Given that, If my upload file as a modified_on field I can actually
understand if I have to return the whole file (http: 200) or a
I wonder if somebody could help me.
I have an old app with a simple form but if I try to submit in second time.
I change some value than press Submit button (after that I got an extra #
in the end of the url)
than I change some value and press Submit button I end up with this flash
message:
A
let me explain better (PS: untested but should work that way)
every file that is returned by the download() function does not carry any
of the cache headers (to be fair, it includes one that basically says it
expires now)
304 + no content or 200 + the entire content is a step lower when
Dear All,
I have a 'page' model with a sef-reference:
db.define_table('page',
Field('parent', 'reference page', readable=False, writable=False),
Field('title', unique=True, notnull=True)
//more fields not important here
)
When I insert a new page via appadmin without specifying a
Hi Chetan :)
So there's two steps in the github project readme.md that I want to clarify
whether you ran or not:
git remote add upstream -m master
git://github.com/prelegalwonder/openshift_web2py.git
git pull -s recursive -X theirs upstream master
Doing that instead of just checking out the
I get it,thank for explaing.
I tryed a test,it seems that main.py overwrites the default headers setting
them as no-cache,no-store and so on. I have to test it more.
Moreover wiki media are handled by users,i don't know how they behave with
them. Something 'automatic' would be really nice to have.
Hi Andrew,
Thanks for your reply.
On Fri, Feb 1, 2013 at 9:01 PM, Andrew andrew.replo...@gmail.com wrote:
So if you don't want to use the above two git statements, you also need to
copy the following for starters:
1.) application from github project to your-project/wsgi/
2.)
what automation ?
On Friday, February 1, 2013 4:51:54 PM UTC+1, Paolo valleri wrote:
I get it,thank for explaing.
I tryed a test,it seems that main.py overwrites the default headers
setting them as no-cache,no-store and so on. I have to test it more.
Moreover wiki media are handled by
thanks I will test that, but then the mac problem still remains
On Tuesday, January 29, 2013 5:02:21 PM UTC+1, Niphlod wrote:
windows build should be against python 2.7.3
On Tuesday, January 29, 2013 3:52:27 PM UTC+1, select wrote:
When uploading zip files in a form I get this error
On Thursday, January 31, 2013 1:26:45 PM UTC+1, Johann Spies wrote:
On 31 January 2013 13:03, Jason Brower enco...@gmail.com javascript:wrote:
Interesting that we have coding tools built into our framework.
http://www.webdesignerdepot.com/2013/01/web-ides-the-future-of-coding/
When
The logic is very complex because it needs to deal with many options and
not-break backward compatibility.
Normally an encrypted password looks like
algorithm$salt$hash
algorithm$$hash (no salt)
hash (legacy)
the hash is computing using the algorithm, the salt, and optionally a user
provided
Look into the IS_IMAGE validator. You can do something like that and search
for specific strings into the uploaded file.
On Thursday, 31 January 2013 06:50:05 UTC-6, Lamps902 wrote:
Has anybody had success using a malware/virus-scanning module/tool to scan
user-uploaded files on their web2py
Hi, This is a question that has been asked several times in the list,
and I have also had to implement this kind of app in the past.
Now I'm also facing to another application where I need to run a
resource_and_time_consuming process managed from web2py.
The exact problem is:
- From a web page, a
1) yes, the maching server is separate. the idea you want one for each
traded product and for scalability they can be distributed on different
servers.
2) If you only have one of a few you can use the cron scheduler @reboot and
it will start with web2py if you use web2py.py
3) In theory yes.
Would you be opposed to turn this into an admin plugin and allow appadmin
to access it?
On Wednesday, 30 January 2013 15:04:06 UTC-6, Paolo Caruccio wrote:
Massimo,
thanks for the compliments and for the suggestions.
Actually, in my mind the posted code is a sort of appadmin plugin. For
This is interesting and I have not seen it before. I am tempted to say this
is a python issue. Could also be a locking issue.
On Thursday, 31 January 2013 20:24:40 UTC-6, nite...@gmail.com wrote:
I have two computers that I work on: a 32-bit netbook and a 64-bit
desktop. Sometimes I will
I thought we already support for DAL + pyMongo in trunk. What specifically
does not work and you want to improve?
On Friday, 1 February 2013 00:20:44 UTC-6, Alec Taylor wrote:
On Fri, Feb 1, 2013 at 4:23 AM, Alan Etkin spam...@gmail.comjavascript:
wrote:
I am porting a library to web2py's
The tickets are just pickles.
On Friday, 1 February 2013 03:06:13 UTC-6, Wonton wrote:
Hello Mariano,
Regarding to the tickets I've seen that they are stored in my errors
directory, so I can read them there (they are not well formatted, but at
least I can see the error).
For me is more
Can we bring up a community wiki page for this?
For editing web2py apps, I have personally used: Eclipse, Geany,
Sublime Text 2, nano and the online editor.
Currently my editor of choice is Sublime Text 2.
In the quoted message below this repo was mentioned;
My guess is that you are using crud. crud check that if you display an edit
form, than submitted changes, the record has not been changed by a third
party (other user or code) to make sure changes are not silently deleted
causing information loss. This can be disable but I would not. Try
I do not understand. What is the mac problem. The OSX version should also
be built with 2.7.
On Friday, 1 February 2013 10:01:32 UTC-6, select wrote:
thanks I will test that, but then the mac problem still remains
On Tuesday, January 29, 2013 5:02:21 PM UTC+1, Niphlod wrote:
windows build
Something that handles the headers automatically accordingly to the wiki
media modified_on field. I will try somenthing next week (i am out this
weekend)
Il giorno 01/feb/2013 16:59, Niphlod niph...@gmail.com ha scritto:
what automation ?
On Friday, February 1, 2013 4:51:54 PM UTC+1, Paolo
All that you ask can be done using the scheduler except that your app does
not start the process, but submits a request to the scheduler. The
scheduler runs the app when a worker is available. This is to prevent
spikes in resource utilization when multiple processes start. The task can
Chetan,
No worries, I'm confident we'll get you up and going.
The fact that the default Openshift page is still coming up tells me one of
two things:
1.) Your wsgi-handler (your-project/wsgi/application) isn't setup
correctly
2.) It *is* setup correctly but for some reason it's not
modified_on is basically the same info that is the mtime on the file.
This tells you when the file has been modified, so you can return a 304,
but doesn't help you with the cache. In theory all files served through
download() (minus the one stored on a blob in a table) should work ok
without
Thanks for your advice Massimo, but
does the scheduler start inmediately when no worker has been used before?
2013/2/1 Massimo Di Pierro massimo.dipie...@gmail.com:
All that you ask can be done using the scheduler except that your app does
not start the process, but submits a request to the
I think you can do
routes_in = [('/((?i)my_data/?$anything','/my_data/$anything')]
(?i) is a directive that tells the regular expression parser to ignore the
case
On Thursday, 31 January 2013 09:27:48 UTC-6, olly@sirocos.com wrote:
I have a web2py application say, at
Thanks, Massimo, I'll check it out.
-Lamps
On Friday, February 1, 2013 11:19:12 AM UTC-5, Massimo Di Pierro wrote:
Look into the IS_IMAGE validator. You can do something like that and
search for specific strings into the uploaded file.
On Thursday, 31 January 2013 06:50:05 UTC-6, Lamps902
On 1 Feb 2013, at 9:13 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote:
I think you can do
routes_in = [('/((?i)my_data/?$anything','/my_data/$anything')]
(?i) is a directive that tells the regular expression parser to ignore the
case
On Thursday, 31 January 2013 09:27:48 UTC-6,
*https://github.com/SamuelMarks/web2py-oauth2*
Took quite a while, but I have finally 'finished' [well, mostly!] three
major changes to João Alves' original implementation:
1. Reviewed *the entire codebase*; improving quality, fixing hacks and
improving formatting along the way.
2.
The cascade feature should work for record versioning enabled tables?
Thanks.
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Ok that's the first (and hopefully only!) problem. That's the default
application file. Each application will need a slightly different
wsgi-handler and I had to tweak it for OpenShift. You need to use the one
from the Github project here:
Absolutly not, you are free to do what do you want.
Only one note. The db_diagram.css file is not optimized because it is a
reference for the users which would like customize the theme.
Il giorno venerdì 1 febbraio 2013 17:31:50 UTC+1, Massimo Di Pierro ha
scritto:
Would you be opposed to
Jose. thank you too for the amazing idea to draw a graph of the database.
I take the opportunity to ask you where I can download a working pygraphviz
build for windows.
Il giorno giovedì 31 gennaio 2013 23:11:00 UTC+1, Jose ha scritto:
Very nice. Excellent work Paolo.
Jose
--
---
You
Thank you !!! this will help me alot.
On Tuesday, January 29, 2013 11:37:55 PM UTC-6, Anthony wrote:
Keep in mind, admin is just a web2py app, so follow the app code. Start
herehttp://code.google.com/p/web2py/source/browse/applications/admin/controllers/default.py#326.
Then
+1
On Friday, February 1, 2013 6:46:36 PM UTC+1, Samuel Marks wrote:
*https://github.com/SamuelMarks/web2py-oauth2*
Took quite a while, but I have finally 'finished' [well, mostly!] three
major changes to João Alves' original implementation:
1. Reviewed *the entire codebase*; improving
Hello,
I don't know if it normal or not, but I found that DAL connection string
password appear in clear in web2py tickets...
Ex.:
Variables
global request Storage {'function': 'update', 'body': open fi...try_id':
'1219', '_formname': 'table1/836'}}
builtinTrue True
request.args ['table1',
yes. If the worker is not busy it starts the task immediately. You can also
have more than one worker.
On Friday, 1 February 2013 11:10:11 UTC-6, José Luis Redrejo Rodríguez
wrote:
Thanks for your advice Massimo, but
does the scheduler start inmediately when no worker has been used before?
You could also edit request.controller, request.function, and request.args
(if appropriate) in your model, if you're not using controller-specific
models at least.
I could see adding a case-normalizing option to the parametric router.
+1
--
---
You received this message because you
When using versioning. Latest versions of records are never deleted, only
filtered out. I think cascade should work as expected.
On Friday, 1 February 2013 11:54:25 UTC-6, Felipe Meirelles wrote:
The cascade feature should work for record versioning enabled tables?
Thanks.
--
---
You
Can you post a link to the latest?
On Thursday, 31 January 2013 08:31:53 UTC-6, Paolo Caruccio wrote:
first post updated: replaced following files
db_diagram.html
corrected CDN links. Now the diagram works on https too
db_diagram.py [please note that you must copy the code within this
I think this has been fixed. Can you check trunk?
On Friday, 1 February 2013 14:17:10 UTC-6, Richard wrote:
Hello,
I don't know if it normal or not, but I found that DAL connection string
password appear in clear in web2py tickets...
Ex.:
Variables
global request Storage {'function':
WingIDE is the only one that I used and worked out of the box without the
need of hacks or plugins.
On Fri, Feb 1, 2013 at 2:37 PM, Alec Taylor alec.tayl...@gmail.com wrote:
Can we bring up a community wiki page for this?
For editing web2py apps, I have personally used: Eclipse, Geany,
I will try...
On Fri, Feb 1, 2013 at 3:22 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
I think this has been fixed. Can you check trunk?
On Friday, 1 February 2013 14:17:10 UTC-6, Richard wrote:
Hello,
I don't know if it normal or not, but I found that DAL connection string
Sorry, I cannot reproduce your issue.
Putting dbg.set_trace() blocks your app until your open the debbuger
interaction page:
http://127.0.0.1:8000/admin/debug/interact
As soon as I open it, I can continue and debug it properly.
If I don't open it, the page being debugged is blocked, but other
Ok, the layout of ticket has change bit... I can't find the exact same
information (global db variable), so I am not sure if it really/totally
gone. But when I press on locals button, I get a long list of vars and the
db var that show the connection string, looks like that :
DAL
Hi all
I'm building an web2py app on GAE which shall be able to manage different
sensor types:
- integer input
- double input
- boolean input
For each sensor I would like to be able to define a range of good values.
For example the water sensor is in a good state when the input is false.
The
This is with rocket (I just run python web2py.py)
I just tried it again, with trunk, having changed the index controller on
the welcome app [put a dbg.set_trace()] and then starting
python web2py.py (this time on my mac, it's not platform dependent)
Rocket stalls, we never make it to the
The
documentationhttp://web2py.com/books/default/chapter/29/09#Authorizationstates:
The creation of the group can be disabled with
auth.settings.create_user_groups = None
although we do not suggest doing so.
Massimo also says
You're right, on my local installation (trunk) I *can* go the admin page
and start a debug listener.
I'll try that on the Windows server.
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving
On Saturday, 2 February 2013 08:45:14 UTC+11, Tim Richardson wrote:
You're right, on my local installation (trunk) I *can* go the admin page
and start a debug listener.
I'll try that on the Windows server.
Thanks, this works on windows too. I can not start normal apps by visiting
a link
Hey Ben-
Can you share your version of facebook.py?
On Wednesday, February 1, 2012 2:24:29 PM UTC+1, Ben Tammetta wrote:
It seemed that version of facebook.py that I was using is just
incompatible and/or outdated
get_user_from_cookie() was trying to parse a cookie variable out that did
not
Disabling user groups is only a problem if you use crud which checks for
auth.accessible() records based on permissions. If There are no user groups
you do not know how to make an object accessible to the user who created.
Honestly I envisioned a bigger role in web2py for auth permissions.
Thanks you for reporting it!
BTW, it should not block other applications, just the thread that is
serving the controller with the breakpoint code.
In fact, admin is just another web2py app, if it works, any other app
should work.
I don't know if there is anything mac-specific going on here, but
Got it- thanks for the explanation
On Friday, February 1, 2013 5:21:05 PM UTC-5, Massimo Di Pierro wrote:
Disabling user groups is only a problem if you use crud which checks for
auth.accessible() records based on permissions. If There are no user groups
you do not know how to make an
where do I put the import statement?
On Friday, 18 January 2013 16:02:27 UTC, Massimo Di Pierro wrote:
from gluon.contrib.autolinks import expand_one
{{=expand_one('http://www.youtube.com/watch?v=7yvt2Pt6LRA')}}
On Friday, 18 January 2013 04:58:20 UTC-6, sasogeek wrote:
at the moment, i
I think the current web2py access control mechanism is unnecessarily
complicated. It is both role based and task based. But this difference
here is just semantics (i.e. you can define a group that can do a certain
task).
The only actually difference is in terms of implementation, not
If you need it in a view
{{from gluon.contrib.autolinks import expand_one}}
Mind that expend_one may call a service (oembed service). This may may
delay the generation of the page and even block it if the service is not
available. The second argument of expand one is a dictionary and it uses
when the page loads and i click on view page source, here's what's there...
iframe width=480 height=270
src=http://www.youtube.com/embed/7yvt2Pt6LRA?feature=oembed;
frameborder=0 allowfullscreen/iframe
and it appears as html on the actual page...
On Saturday, 2 February 2013 00:47:26 UTC,
Sorry my bad:
{{=XML(expand_one('
http://www.youtube.com/watch?v=7yvt2Pt6LRA',cache.ram('mycache',lambda:dict(),3600))http://www.youtube.com/watch?v=7yvt2Pt6LRA')
)}}
expand one converts to HTML but then is must be wrapped into XML else it
gets escaped.
On Friday, 1 February 2013 19:10:12
Hello Andrew
On Fri, Feb 1, 2013 at 11:43 PM, Andrew andrew.replo...@gmail.com wrote:
Ok that's the first (and hopefully only!) problem. That's the default
application file. Each application will need a slightly different
wsgi-handler and I had to tweak it for OpenShift. You need to use the
Hello Andrew,
On Sat, Feb 2, 2013 at 8:53 AM, Chetan Patil chtpa...@gmail.com wrote:
Now the issue is :
I have followed the password hashed line as you said i.e. to copy
parameters_8080.oy to wsgi/web2py.
However the applications I see in the web2py on openshift link of mine
doesn't
Hello Andrew,
Thanks for your help due to which I was able to get web2py app up and
running.
May you please point me to some weblinks where in I will be able to
understand on how to host only the application and to avoid visitors
to navigate into web2py IDE and other admins links.
Like I just
https://gist.github.com/4696084
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit
Howdy!
I have been following the video tutorial to create a schedule task.
Inside the bottom of the task to be run I have:
def main():
o = MarketReader()
o.run()
from gluon.scheduler import Scheduler
Scheduler(db,dict(update_market=main))
When I browse back to the database
You have an older version of the scheduler (and web2py). Your scheduler
tables have a field called output This field was renamed run_output.
This is because some database engines consider output a reserved keyword.
Massimo
On Friday, 1 February 2013 22:10:48 UTC-6, Morgan Hein wrote:
Howdy!
I want to do something similar to how facebook reatcs to links...
let's say a user makes a post with a link in it (the post is not
necessarily just the link)
i want to be able to grab the link from the post, make it clickable, as
well as a little excerpt from the contents in the page that link
On Saturday, 2 February 2013 09:42:38 UTC+11, Mariano Reingart wrote:
Thanks you for reporting it!
BTW, it should not block other applications, just the thread that is
serving the controller with the breakpoint code.
In fact, admin is just another web2py app, if it works, any other app
No, I'm wrong, the examples app does appear on the mac, there was a long
delay. Sometimes rocket is very slow to respond on the mac.
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving
I have Mint 9 on my desktop
when I type *python2.5 web2py.py* I get: *no command 'python2.5' found*
when I type *python web2py.py* I get:* importError: No module named
gluon.widget*
any suggestions? Should I install python2.5?
thanks,
Alex Glaros
--
---
You received this message because
82 matches
Mail list logo