Re: Open sourced Pyramid web applications?

2011-05-05 Thread Vincenzo Ampolo
On Thu, 2011-05-05 at 18:08 -0700, Richard Harding wrote: > Well, it's far from complete and changing all the time, but it kind of > works: > https://gist.github.com/mitechie/bookie Here is my first pyramid webapp, it's GPL3. not completed either https://github.com/goshawk/milo/tree/master/milo_

Re: 'View Only" pdf file

2011-05-05 Thread Vincenzo Ampolo
On Fri, 2011-05-06 at 09:20 +0800, Boyi Shafie wrote: > Hi, Hi > I'm using a pyramid. I'd like to post a pdf file in my website. > However, for a particular file, user can only view it, but are > forbidden to download it. Anybody can suggest how to do it or any > particular application to use. >

Re: How to check what permission failed in authorization in pyramid?

2011-05-05 Thread Mariano Mara
On 05.05.11 15:11, Mariano Mara wrote: > On 05.05.11 10:55, Roy Hyunjin Han wrote: > > On Feb 6, 5:53 pm, Timmy wrote: > > > I add a view for the forbidden view: > > > > > > from pyramid.exceptions import Forbidden > > > config.add_view(forbidden_view, context=Forbidden) > > > which redirects to a

'View Only" pdf file

2011-05-05 Thread Boyi Shafie
Hi, I'm using a pyramid. I'd like to post a pdf file in my website. However, for a particular file, user can only view it, but are forbidden to download it. Anybody can suggest how to do it or any particular application to use. Tq. -Sharil I. Shafie- -- You received this message because you are

Re: Open sourced Pyramid web applications?

2011-05-05 Thread Richard Harding
Well, it's far from complete and changing all the time, but it kind of works: https://gist.github.com/mitechie/bookie But there's a number of projects in the pylons github project https://github.com/pylons Rick @mitechie -- You received this message because you are subscribed to the Google Gro

Re: How to check what permission failed in authorization in pyramid?

2011-05-05 Thread Parnell Springmeyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I would consider it a feature to /not/ tell the user why they are being denied access. In my forbidden view I simply flash them a message saying they do not have the permissions to view that resource. Keep it simple. Particularly because you should de

Open sourced Pyramid web applications?

2011-05-05 Thread Ken Huang
Hi all - In the past I've played around with Django and found it immensely helpful to learn by reverse engineering entire Django web applications that others had maintained on Github. Does anyone know of any such repositories for Pyramid? Even something simple would be incredibly helpful. Bas

Re: IE7 displays "Internet Explorer cannot display the webpage" on simple pylons application

2011-05-05 Thread John Harrison
> Here is easy_install.pth from my sample application.  I haven't done > an install of this sample on the production server.  Will do that > today. > > import sys; sys.__plen = len(sys.path) > ./setuptools-0.6c11-py2.6.egg > ./pip-0.8.1-py2.6.egg > ./Pylons-1.0-py2.6.egg > ./Tempita-0.5dev-py2.6.e

Re: IE7 displays "Internet Explorer cannot display the webpage" on simple pylons application

2011-05-05 Thread John Harrison
On May 5, 5:36 am, Andrey wrote: > try in template > I tried that based on your suggestion but it doesn't make a difference. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.

Re: IE7 displays "Internet Explorer cannot display the webpage" on simple pylons application

2011-05-05 Thread John Harrison
On May 5, 11:21 am, cd34 wrote: > I can't duplicate it, though, only have IE8 here. I can't duplicate it in IE8 either. Or Firefox, or Safari. Only IE7. > > If you remove half of your hidden fields does it work? Is it related > to the number of hidden fields? or just the fact that there are

Re: soaplib integration

2011-05-05 Thread Mariano Mara
On 27.04.11 04:00, attilio wrote: > I'm evaluating pyramid for using it in a enterprise environment, and > the first impressions about modularity and productivity are > compelling. > > In our environment SOAP is a requirement, so now I investigating in > this direction. > > Someone has an example

Re: How to check what permission failed in authorization in pyramid?

2011-05-05 Thread Roy Hyunjin Han
On May 5, 2:11 pm, Mariano Mara wrote: > Of course, this won't help if you want to provide specific > error messages for different authorization problems. Unfortunately, that is what I had wanted to do. However, on second thought, maybe the user doesn't need to be told why he or she can't access

Re: How to check what permission failed in authorization in pyramid?

2011-05-05 Thread Mariano Mara
On 05.05.11 10:55, Roy Hyunjin Han wrote: > On Feb 6, 5:53 pm, Timmy wrote: > > I add a view for the forbidden view: > > > > from pyramid.exceptions import Forbidden > > config.add_view(forbidden_view, context=Forbidden) > > which redirects to a log in screen. > > > > But now i added some admin th

Re: How to check what permission failed in authorization in pyramid?

2011-05-05 Thread Roy Hyunjin Han
On Feb 6, 5:53 pm, Timmy wrote: > I add a view for the forbidden view: > > from pyramid.exceptions import Forbidden > config.add_view(forbidden_view, context=Forbidden) > which redirects to a log in screen. > > But now i added some admin things which needed 'admin' access, and I > want to just sho

Re: IE7 displays "Internet Explorer cannot display the webpage" on simple pylons application

2011-05-05 Thread Vincenzo Ampolo
On Thu, 2011-05-05 at 10:21 -0700, cd34 wrote: > I can't duplicate it, though, only have IE8 here. Use http://browsershots.org/ -- Vincenzo Ampolo http://vincenzo-ampolo.net http://goshawknest.wordpress.com -- You received this message because you are subscribed to the Google Groups "pylons-d

Re: IE7 displays "Internet Explorer cannot display the webpage" on simple pylons application

2011-05-05 Thread Andrey
try in template On Thu, May 5, 2011 at 8:53 AM, John Harrison wrote: > I've been hacking away at this for a week to no avail. I'm hoping > someone here can help me. I have been moving a site to a new server. > It is a Dell box running Ubuntu 10.04.2 LTS. The application works > fine with all

Re: IE7 displays "Internet Explorer cannot display the webpage" on simple pylons application

2011-05-05 Thread cd34
I can't duplicate it, though, only have IE8 here. If you remove half of your hidden fields does it work? Is it related to the number of hidden fields? or just the fact that there are 100. I remember an issue with IE where id="name" name="name" used to be an issue, but, you're not doing that. This

Re: IE7 displays "Internet Explorer cannot display the webpage" on simple pylons application

2011-05-05 Thread John Harrison
On May 5, 7:58 am, cd34 wrote: > Will see if I can test this later, but, first thing that stands out > (might be a cut and paste thing) > > value="somevaluevalue7"/ > > value="somevaluevalue8"/ > > value="somevaluevalue9"/ > > your first fields are missing the closing >, which can cause versi

Re: khufu_sqlalchemy 0.5 released

2011-05-05 Thread Chris Withers
On 05/05/2011 15:23, Rocky Burt wrote: khufu_sqlalchemy (Khufu-SQLAHelper) has been around a few months longer than mortar_rdb, that's the only reason. Ah, okay, frustratingly, mortar_rdb was developed about 6 months before its release, but I only got the green light to open source it much lat

Re: khufu_sqlalchemy 0.5 released

2011-05-05 Thread Rocky Burt
khufu_sqlalchemy (Khufu-SQLAHelper) has been around a few months longer than mortar_rdb, that's the only reason. - Rocky -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To

Re: IE7 displays "Internet Explorer cannot display the webpage" on simple pylons application

2011-05-05 Thread cd34
Will see if I can test this later, but, first thing that stands out (might be a cut and paste thing) , which can cause versions of IE to not render a form properly - are you even seeing the POST on the server side when the button is hit? If not, I would suspect that broken html. If the html is in

Re: khufu_sqlalchemy 0.5 released

2011-05-05 Thread Chris Withers
Hey Rocky, On 05/05/2011 03:02, Rocky Burt wrote: khufu_sqlalchemy is meant to reduce the plumbing required to configure a SQLAlchemy based database connection with a Pyramid based web app. Curious if you knew about: http://packages.python.org/mortar_rdb/use.html If you did, what about it did

IE7 displays "Internet Explorer cannot display the webpage" on simple pylons application

2011-05-05 Thread John Harrison
I've been hacking away at this for a week to no avail. I'm hoping someone here can help me. I have been moving a site to a new server. It is a Dell box running Ubuntu 10.04.2 LTS. The application works fine with all tested browsers except IE7. Unfortunately most of the client's users are using