[mezzanine-users] Issue with groups and page-level access control

2015-02-10 Thread Christoph H. Larsen
Dear All,
First of all, thanks a lot for this nifty little, yet ever so essential app.
What I would like to achieve, look reasonable simple, but I have had some 
issues:
I have a landing page (done with Botostrap Caerousel, using Mezzanine's 
dedicated index.html) that has links to several pages. I want that these 
pages that are linked to can be viewed by all users (anonymous access), but 
edited only by page-specific groups, which is why I used the 
mezzanine_page_auth app.
So, when a logged-in member of the group that has edit access to a link 
clicks on the link that appears on the landing page, all is fine.
However, anonymous users find themselves with a white page of death (log 
says: 401, access denied), even though they are supposed to have read 
access.
If I just define a plain mezzanine group without page-level access control, 
this error does NOT appear.
What am I doing wrong?
Thank you so much for any pointers!
Chris

-- 
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/d/optout.


[mezzanine-users] Re: Adding forms to admin

2015-02-10 Thread wongo888
I'd recommend that you take a look at the Django docs for creating a custom 
user model if you are creating a new site.

https://docs.djangoproject.com/en/1.7/topics/auth/customizing/#substituting-a-custom-user-model

At some point in the life of an app you will outgrow contrib.auth and a 
custom user model is an alternate approach to one-to-one Profile models.

K

On Monday, February 9, 2015 at 3:25:05 PM UTC-8, Jörg Maier-Rothe wrote:
>
> Hi everybody,
>
> I'm a complete newbie to django and mezzanine so please excuse my obvious 
> question, but I really couldn't find the right answers on google.
>
> We are trying to build a website where users should be able
> 1. to register, they then should automatically get a user ID assigned
> 2. When a user is registered he/she can fill in a simple application form 
> with three or four text fields.
> 3. The form should save to the database
> 4. In admin view all filled in forms should be listed with following 
> attributes:
> user name, user id, user group, email, timestamp (all of this preferably 
> sortable and searchable) and when you click on them of course one should 
> see the filled in form fields.
>
> I have successfully set up django and mezzanine with user registration, 
> which wasn't difficult. Adding a form and making it accessible to a user is 
> no problem. I'm still having trouble to save these filled in forms to the 
> database and make them viewable in the admin. Any hint or help would be 
> great.
>
> cheers,
> Jörg
>

-- 
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/d/optout.


[mezzanine-users] Cartridge payment

2015-02-10 Thread Wesley
Hi guys,
   I have a question about payment.
Currently, I see that, during payment process, user only enter card 
number/name .etc that are required on the page.

So, is it easy to interact with some other payment system, e.g. directly 
with back system or something like Paypal .etc

Thanks.
Wesley

-- 
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/d/optout.


Re: [mezzanine-users] Re: Alternate Fabfile for deploying to VPS

2015-02-10 Thread Josh Cartmell
Thanks for working on this Ed!  I use Mercurial whenever I can (learned it
first because of free private repos at Bitbucket).

I updated your Webfaction fabfile to work with Mercurial (took out the git
direct push parts and put back the VCS stuff from the original fabfile).
Let me know if you'd want to take a look at that.

Thanks


On Mon, Feb 9, 2015 at 11:57 PM, Stephen McDonald  wrote:

> Presumably the whole project directory wouldn't be much bigger than the
> static directory, so that sounds worth trying at least.
>
> On Tue, Feb 10, 2015 at 3:02 PM, Eduardo Rivas 
> wrote:
>
>>  Gotcha. Well, guess we better support hg for completeness sake (and
>> it'll be useful for me to learn).
>>
>> The rollback task will work as usual for VCS users, but I don't really
>> know what to do in case of rsync. Ideas:
>>
>>- No rollback support if DEPLOY_METHOD = "rsync"
>>- Gzip the whole project folder (like we do with static files) on
>>every deploy with rsync and have it laying around for rollback.
>>
>> What do you think?
>>
>> --
>> 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/d/optout.
>>
>
>
>
> --
> 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/d/optout.
>

-- 
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/d/optout.


Re: [mezzanine-users] Settings.use_editable()

2015-02-10 Thread Josh Cartmell
Gotcha, sorry about the confusion.  I'm not sure exactly why it's done the
way it is right now.  You might be able to attach to the post save signal
of the settings model,
https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/conf/models.py,
and call use editable whenever it is saved.

On Tue, Feb 10, 2015 at 1:49 AM, Sreedhar Bukya 
wrote:

> Hi Josh ,
>
> I understood that that is for getting new user settings.
> But can't it be automated rather I say settings.use_editable() in my view
>
> regards,
>
> Sreedhar
>
>
> On Monday, 9 February 2015 21:33:20 UTC+5:30, Josh Cartmell wrote:
>>
>> Hi Sreedhar, if you want any changes you made to admin editable settings
>> to be reflected in your view then you do need to call use_editable()
>>
>> On Mon, Feb 9, 2015 at 4:13 AM, Sreedhar Bukya 
>> wrote:
>>
>>> Is it compulsory to use settings.use_editable() in my view for
>>> customized admin register_setting
>>>
>>> Why do we need to flush the db cache to pick up new settings ?
>>> I think it should automatically pick up the new settings without me
>>> mentioning it in my view.
>>>
>>> Regards,
>>>
>>> Sreedhar
>>>
>>> --
>>> 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/d/optout.
>>>
>>
>>  --
> 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/d/optout.
>

-- 
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/d/optout.


[mezzanine-users] Re: Cartridge payment

2015-02-10 Thread Josh B
Hi Wesley,

Its really easy. Take a look 
at https://github.com/stephenmcd/cartridge/tree/master/cartridge/shop/payment 
to see the integrations people have already done. They are good examples if 
you need to write your own.

On Tuesday, February 10, 2015 at 5:44:28 AM UTC-7, Wesley wrote:
>
> Hi guys,
>I have a question about payment.
> Currently, I see that, during payment process, user only enter card 
> number/name .etc that are required on the page.
>
> So, is it easy to interact with some other payment system, e.g. directly 
> with back system or something like Paypal .etc
>
> Thanks.
> Wesley
>

-- 
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/d/optout.