[mezzanine-users] Re: Mezzanine 3.0.8 released

2014-02-12 Thread Adrian Marius Popa
After a few fixes in the djang-firebird driver 

https://github.com/maxirobaina/django-firebird/blob/master/docs/changelog.txt
i'have got it working with django 1.6.2 and latest mezzanine 3.0.8 

http://mariuz.android-dev.ro/blog/migrated-to-django-162-and-mezzanine-30x/



On Wednesday, February 5, 2014 10:50:42 PM UTC+2, Stephen McDonald wrote:
>
> Hi all, 
>
> It's been a busy week since 3.0.7 and Mezzanine 3.0.8 is now out with a 
> handful of minor bugfixes and improvements:
>
> - Improved support for thumbnails on remove storage backends
> - Fixed conditional validation of content fields via their status in 
> Displayable models
> - More static proxy fixes (fixes many reported issues loading tinymce 
> dialogs etc)
> - More unicode fixes around page processor slugs
> - Initial support for using the latest upstream Grappelli/Filebrowser (via 
> https://github.com/sephii/mezzanine-grappelli)
> - urlpatterns for mezzanine.accounts now follow the convention of defaults 
> for Django's LOGIN_URL/LOGOUT_URL settings (/account/ becomes /accounts/, 
> with the former redirecting to the latter as a fallback)
> - Mezzanine's runserver will now serve files under STATIC_ROOT during 
> development
> - Fixes for unicode filenames in mezzanine.galleries
>
> Big thanks to everyone who helped out this week.
>
>
> -- 
> Stephen McDonald
> http://jupo.org 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Firebird error in query : Invalid expression in the select list (not contained in group by)

2014-02-12 Thread Adrian Marius Popa
This was fixed with this commit in 
django-firebird https://github.com/maxirobaina/django-firebird/issues/22

On Thursday, November 7, 2013 11:21:13 AM UTC+2, Stephen McDonald wrote:
>
> The ORM shouldn't be able to create invalid SQL queries, and in this case 
> I'd guess it's an issue with the firebird backend. 
>
> I'd suggest raising it there: 
> https://github.com/maxirobaina/django-firebird
>
>
> On Thu, Nov 7, 2013 at 4:42 PM, Adrian Marius Popa 
> 
> > wrote:
>
>> The error is 
>>
>> Error while preparing SQL statement: - SQLCODE: -104 - Dynamic SQL Error 
>> - SQL error code = -104 - Invalid expression in the select list (not 
>> contained in either an aggregate function or the GROUP BY clause) 
>>
>> https://gist.github.com/mariuz/7349583
>>  
>> the template is in 
>>
>> /usr/local/lib/python2.7/dist-packages/mezzanine/blog/templates/blog/includes/filter_panel.html
>>
>> What it needs to be modified is that in firebird all that is in the 
>> select clause must be in the group by :site_id ...
>>
>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Stephen McDonald
> http://jupo.org 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Why is PIL/Pillow not a dependency?

2014-02-12 Thread Eduardo Rivas
Hi everyone. Every time I try to create a new project with some initial 
data I run:

python manage.py createdb --noinput

Which fails with the following error:
django.core.exceptions.ImproperlyConfigured: Neither Pillow nor PIL could 
be imported: No module named Image

That is very explicit and simply requires running pip install pillow to get 
if fixed. However, my questions are: Why is pillow needed during the 
createdb process? How necessary is it to Mezzanine? Shouldn't it be a 
dependency? I don't know if I've found a bug, or maybe there's some obvious 
reason I'm overlooking.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Why is PIL/Pillow not a dependency?

2014-02-12 Thread Stephen McDonald
Pillow should get installed automatically if neither are available:

https://github.com/stephenmcd/mezzanine/blob/master/setup.py#L37-L45


On Thu, Feb 13, 2014 at 7:12 AM, Eduardo Rivas wrote:

> Hi everyone. Every time I try to create a new project with some initial
> data I run:
>
> python manage.py createdb --noinput
>
> Which fails with the following error:
> django.core.exceptions.ImproperlyConfigured: Neither Pillow nor PIL could
> be imported: No module named Image
>
> That is very explicit and simply requires running pip install pillow to
> get if fixed. However, my questions are: Why is pillow needed during the
> createdb process? How necessary is it to Mezzanine? Shouldn't it be a
> dependency? I don't know if I've found a bug, or maybe there's some obvious
> reason I'm overlooking.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Why is PIL/Pillow not a dependency?

2014-02-12 Thread Eduardo Rivas

I tried it in a blank venv:

mkvirtualenv foobar

pip install mezzanine cartridge
...
Successfully installed mezzanine bleach requests-oauthlib django tzlocal 
future grappelli-safe filebrowser-safe requests six html5lib oauthlib 
pytz cartridge pisa


mezzanine-project -a cartridge foobar
cd foobar/
python manage.py createdb --noinput

And I get the same error as before. If I start the project with 
Mezzanine's default template (no -a cartridge option), I get another 
error from mezzanine_tags.py, but also related to Image.


Can you reproduce the steps? Is it something only in my end?

--
You received this message because you are subscribed to the Google Groups "Mezzanine 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Why is PIL/Pillow not a dependency?

2014-02-12 Thread Cameron Moore
I can confirm the same issue.  For some reason the pip setup script is not
detecting the need for Pillow when inside a clean virtualenv.  I've added
it to my requirements file manually.  I've seen the problem since I started
using Mezz on v3.0.6, IIRC.
-- 
Cameron Moore

On Wed, Feb 12, 2014 at 2:44 PM, Eduardo Rivas wrote:

> I tried it in a blank venv:
>
> mkvirtualenv foobar
>
> pip install mezzanine cartridge
> ...
> Successfully installed mezzanine bleach requests-oauthlib django tzlocal
> future grappelli-safe filebrowser-safe requests six html5lib oauthlib pytz
> cartridge pisa
>
> mezzanine-project -a cartridge foobar
> cd foobar/
> python manage.py createdb --noinput
>
> And I get the same error as before. If I start the project with
> Mezzanine's default template (no -a cartridge option), I get another error
> from mezzanine_tags.py, but also related to Image.
>
> Can you reproduce the steps? Is it something only in my end?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] In cartridge project ,when order completed , click the button to download invoice, error incurred

2014-02-12 Thread lu zou
Hi~
In cartridge project ,when order completed , click the button to download 
invoice, error incurred,Could anyone tell me what app or lib should I 
install ,thanks ! info showed below:

ImportError at /shop/invoice/5/

No module named reportlab.lib.units

Request Method:GETRequest URL:
http://127.0.0.1:8000/shop/invoice/5/?format=pdfDjango Version:1.6.1Exception 
Type:ImportErrorException Value:

No module named reportlab.lib.units

Exception 
Location:/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/pisa-3.0.33-py2.7.egg/sx/pisa3/pisa_util.py
 
in , line 22Python Executable:
/Users/luzou/Documents/djanproj/cartridge/bin/pythonPython Version:2.7.2Python 
Path:

[u'/Users/luzou/Documents/djanproj/cartridge/src/cartridge/cartridge',
 
'/Users/luzou/Documents/djanproj/cartridge/src/cartridge/cartridge/project_template',
 '/Users/luzou/Documents/djanproj/cartridge/src/cartridge',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/pisa-3.0.33-py2.7.egg',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/bleach-1.2.2-py2.7.egg',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/future-0.9.0-py2.7.egg',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/requests_oauthlib-0.3.3-py2.7.egg',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/requests-1.2.3-py2.7.egg',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/pytz-2013.8-py2.7.egg',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/html5lib-0.95-py2.7.egg',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/grappelli_safe-0.3.3-py2.7.egg',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/filebrowser_safe-0.3.1-py2.7.egg',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Django-1.6.1-py2.7.egg',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/oauthlib-0.6.0-py2.7.egg',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/mezzanine_themes-0.3-py2.7.egg',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/django_likes-0.1-py2.7.egg',
 '/Users/luzou/Documents/djanproj/cartridge/lib/python27.zip',
 '/Users/luzou/Documents/djanproj/cartridge/lib/python2.7',
 '/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/plat-darwin',
 '/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/plat-mac',
 
'/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/plat-mac/lib-scriptpackages',
 '/Users/luzou/Documents/djanproj/cartridge/Extras/lib/python',
 '/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/lib-tk',
 '/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/lib-old',
 '/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/lib-dynload',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
 '/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages']

Server time:Thu, 13 Feb 2014 08:35:33 +1000
Traceback Switch to copy-and-paste 
view

   - 
   
/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Django-1.6.1-py2.7.egg/django/core/handlers/base.py
in get_response
   1. 
  
  response = wrapped_callback(request, *callback_args, 
**callback_kwargs)
  
  ...
   ▶ Local vars 
   - 
   
/Users/luzou/Documents/djanproj/cartridge/src/cartridge/cartridge/shop/views.py
in invoice
   1. 
  
  import ho.pisa
  
  ...
   ▶ Local vars 
   - 
   
/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/pisa-3.0.33-py2.7.egg/ho/pisa/__init__.py
in 
   1. 
  
  from sx.pisa3.pisa import *
  
  ...
   ▶ Local vars 
   - 
   
/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/pisa-3.0.33-py2.7.egg/sx/pisa3/__init__.py
in 
   1. 
  
  from pisa import *
  
  ...
   ▶ Local vars 
   - 
   
/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/pisa-3.0.33-py2.7.egg/sx/pisa3/pisa.py
in 
   1. 
  
  from pisa_document import *
  
  ...
   ▶ Local vars 
   - 
   
/Users/luzou/Documents

Re: [mezzanine-users] In cartridge project ,when order completed , click the button to download invoice, error incurred

2014-02-12 Thread Danny

On 13/02/2014 9:08 AM, lu zou wrote:

Hi~
In cartridge project ,when order completed , click the button to
download invoice, error incurred,Could anyone tell me what app or lib
should I install ,thanks ! info showed below:


  ImportError at /shop/invoice/5/

No module named reportlab.lib.units



It's reportlab. Pisa depends on it, but doesn't install it when you 
install pisa...


Just do a pip install reportlab and you should be fine.

Seeya. Danny.


--
Email: molo...@gmail.com

--
You received this message because you are subscribed to the Google Groups "Mezzanine 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Nested Portlets

2014-02-12 Thread Sandro Rodrigues
My bad, i missed that part. That's a cool feature, but is not quite well 
the same think.
For example: how can i define the permissions to tell a page to won’t list 
some kind of pages in the types of pages that user can add when viewing the 
navigation tree in the admin?
I think that with permissions i cant do thinks like that. Am i wrong? 

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Re: Why is PIL/Pillow not a dependency?

2014-02-12 Thread Matt Stevenson
I can confirm that installing via pip does indeed fail.

However, running `python setup.py install` does successfully append the 
`pillow` requirement: https://dpaste.de/obE1  -- and proceeds to install 
successfully (along with a `python manage.py createdb --install` also 
working fine).

Does pip import `install_requires` from the setup module without executing 
any logic?

On Thursday, 13 February 2014 07:12:54 UTC+11, Eduardo Rivas wrote:
>
> Hi everyone. Every time I try to create a new project with some initial 
> data I run:
>
> python manage.py createdb --noinput
>
> Which fails with the following error:
> django.core.exceptions.ImproperlyConfigured: Neither Pillow nor PIL could 
> be imported: No module named Image
>
> That is very explicit and simply requires running pip install pillow to 
> get if fixed. However, my questions are: Why is pillow needed during the 
> createdb process? How necessary is it to Mezzanine? Shouldn't it be a 
> dependency? I don't know if I've found a bug, or maybe there's some obvious 
> reason I'm overlooking.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Re: Why is PIL/Pillow not a dependency?

2014-02-12 Thread Matt Stevenson
I can confirm that installing via pip does indeed fail.

However, running `python setup.py install` does successfully append the 
`pillow` requirement: https://dpaste.de/obE1  -- and proceeds to install 
successfully (along with a `python manage.py createdb --install` also 
working fine).

Does pip import `install_requires` from the setup module without executing 
any logic?

On Thursday, 13 February 2014 07:12:54 UTC+11, Eduardo Rivas wrote:
>
> Hi everyone. Every time I try to create a new project with some initial 
> data I run:
>
> python manage.py createdb --noinput
>
> Which fails with the following error:
> django.core.exceptions.ImproperlyConfigured: Neither Pillow nor PIL could 
> be imported: No module named Image
>
> That is very explicit and simply requires running pip install pillow to 
> get if fixed. However, my questions are: Why is pillow needed during the 
> createdb process? How necessary is it to Mezzanine? Shouldn't it be a 
> dependency? I don't know if I've found a bug, or maybe there's some obvious 
> reason I'm overlooking.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Why is PIL/Pillow not a dependency?

2014-02-12 Thread Stephen McDonald
I can't reproduce it and pillow installs each time for me - although I
don't use virtualenvwrapper:

$ virtualenv --distribute foo


On Thu, Feb 13, 2014 at 7:44 AM, Eduardo Rivas wrote:

> I tried it in a blank venv:
>
> mkvirtualenv foobar
>
> pip install mezzanine cartridge
> ...
> Successfully installed mezzanine bleach requests-oauthlib django tzlocal
> future grappelli-safe filebrowser-safe requests six html5lib oauthlib pytz
> cartridge pisa
>
> mezzanine-project -a cartridge foobar
> cd foobar/
> python manage.py createdb --noinput
>
> And I get the same error as before. If I start the project with
> Mezzanine's default template (no -a cartridge option), I get another error
> from mezzanine_tags.py, but also related to Image.
>
> Can you reproduce the steps? Is it something only in my end?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Why is PIL/Pillow not a dependency?

2014-02-12 Thread Eduardo Rivas
I tried it without venvwrapper and still the same, no pillow when 
installing from pip.


virtualenv foobar
source foobar/bin/activate
pip install mezzanine

Could it be the version of virtualenv or the env's pip?
virtualenv --version
1.11.2
pip --version
pip 1.5.2 from foobar/local/lib/python2.7/site-packages (python 2.7)

BTW, the "--distribute" option has been deprecated. See the third list 
item here: 
http://www.virtualenv.org/en/latest/news.html?highlight=distribute#id5


--
You received this message because you are subscribed to the Google Groups "Mezzanine 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Why is PIL/Pillow not a dependency?

2014-02-12 Thread Stephen McDonald
Looks like my stuff is really out of date which might explain the
difference:

(lol2) $ pip --version
pip 1.0.2 from
/Users/steve/dev/lol2/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg
(python 2.7)
(lol2) $ deactivate
$ pip --version
pip 1.1 from /Library/Python/2.7/site-packages (python 2.7)
$ virtualenv --version
1.7




On Thu, Feb 13, 2014 at 10:25 AM, Eduardo Rivas wrote:

> I tried it without venvwrapper and still the same, no pillow when
> installing from pip.
>
> virtualenv foobar
> source foobar/bin/activate
> pip install mezzanine
>
> Could it be the version of virtualenv or the env's pip?
> virtualenv --version
> 1.11.2
> pip --version
> pip 1.5.2 from foobar/local/lib/python2.7/site-packages (python 2.7)
>
> BTW, the "--distribute" option has been deprecated. See the third list
> item here: http://www.virtualenv.org/en/latest/news.html?highlight=
> distribute#id5
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Why is PIL/Pillow not a dependency?

2014-02-12 Thread Stephen McDonald
I had to call in an expert, I guess we'll just make the pillow dependency
explicit:

The topic for #pypa is: The official PyPA channel. Channel logging courtesy
of #dcpython. Use !logs for a link. /msg pmxbot !help for commands.
11:04
Topic for #pypa set by jezdez!~jezdez@django/committer/jezdez at 04:57:39
on 02/12/14

11:05
stephenmcd
My Python package has a setup.py which modifies the requirements list
during install-time, is this still possible with wheel installs?
11:05
dstufft
stephenmcd: No, but you can do conditional dependencies

11:05
dstufft
why are you modifying it at runtime

11:06
stephenmcd
it only installs pillow if both PIL or pillow aren't installed

11:06
dstufft
oh
I don't think that's possible

11:06
stephenmcd
will I go to hell if I stop supporting wheel installs?

11:07
dstufft
No, but you'll make folks sad. PIL is effectively unmaintained, why not
just use Pillow?

11:08
stephenmcd
no good reason really, I'll probably just make the dep explicit. Thanks a
lot.


On Thu, Feb 13, 2014 at 10:54 AM, Stephen McDonald  wrote:

> Looks like my stuff is really out of date which might explain the
> difference:
>
> (lol2) $ pip --version
> pip 1.0.2 from
> /Users/steve/dev/lol2/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg
> (python 2.7)
> (lol2) $ deactivate
> $ pip --version
> pip 1.1 from /Library/Python/2.7/site-packages (python 2.7)
> $ virtualenv --version
> 1.7
>
>
>
>
> On Thu, Feb 13, 2014 at 10:25 AM, Eduardo Rivas 
> wrote:
>
>> I tried it without venvwrapper and still the same, no pillow when
>> installing from pip.
>>
>> virtualenv foobar
>> source foobar/bin/activate
>> pip install mezzanine
>>
>> Could it be the version of virtualenv or the env's pip?
>> virtualenv --version
>> 1.11.2
>> pip --version
>> pip 1.5.2 from foobar/local/lib/python2.7/site-packages (python 2.7)
>>
>> BTW, the "--distribute" option has been deprecated. See the third list
>> item here: http://www.virtualenv.org/en/latest/news.html?highlight=
>> distribute#id5
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to mezzanine-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Stephen McDonald
> http://jupo.org
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Why is PIL/Pillow not a dependency?

2014-02-12 Thread Tzu-ping Chung
The wheel bundler runs setup.py on the bundler's machine, and then archive 
the result with static lists of dependencies. pip doesn't run setup.py at 
all when it installs a wheel (the .whl archive doesn't even contain that 
file); all it does is unarchive and copy the files.

Dynamic requirement resolution wouldn't work unless pip offers a mechanism 
for runtime hooks during installation, which doesn't seem to be on PyPA's 
roadmap.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Custom Page Processor and render default Form content model

2014-02-12 Thread Danny flack
Is it possible to have a custom page processor yet render the default Form 
content model associated to the page?

I would like to intercept the posted form data, yet use the default 
rendering for the form itself. (The content model for the page is Form)

I tried the following but it doesn't work:

@processor_for('rsvp')
def rsvp_form(request, page):
return {'form': page.get_content_model()}

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Validate Page's Form content model with page processor

2014-02-12 Thread Danny flack
I would like to utilize the built-in Page content model "Form" and be able 
to intercept posted form data via a Page Processor to perform custom 
validation on it.

I know you can return a dictionary with extra response content, but I'm at 
a loss at how to force an "invalid" form submission.

In the example below, there is a Page slug with "rsvp" and it has a Form 
content model with a bunch of fields.

I'd like to do something like this which would be able to invalidate the 
form and prevent it from submitting successfully.

@processor_for('rsvp') 
def rsvp_form(request, page):  
if not request.POST.get('something'):
return {'errors': 'tons of them'}
return {}

Is that something that's possible?

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.