Re: [mezzanine-users] Re: Mezzanine 3.1.10: Can't delete the media files in the admin page

2018-02-14 Thread Simon Bradley
For anyone else using windows. There was another small issue.

This line in views.py:

# CREATE FILEOBJECT
url_path = "/".join([s.strip("/") for s in
[get_directory(), path, file] if s.strip("/")])

Changed it to:

# CREATE FILEOBJECT
url_path = "/".join([s.strip("/") for s in
[get_directory(), path.replace("\\", "/"), 
file] if s.strip("/")])


This might not be the best way to solve the problem but if you just want to 
get it working on windows it does seem to do the trick.



On Tuesday, February 13, 2018 at 8:28:42 AM UTC, Simon Bradley wrote:
>
> Will do.
>
> On Monday, February 12, 2018 at 10:28:00 PM UTC, Stephen McDonald wrote:
>>
>> Could you create a pull request with your fix? That'd be great, thank you.
>>
>> On Tue, Feb 13, 2018 at 7:14 AM, Simon Bradley  
>> wrote:
>>
>>> OK def fixed it now
>>>
>>> This line in the views.py of filebrowser-safe:
>>>
>>> if not normalized.startswith(get_directory()) or ".." in normalized:
>>>
>>> It appears to be the problem.
>>>
>>> I changed it to:
>>>
>>> if not normalized.startswith(get_directory().strip("/")) or ".." in 
>>> normalized:
>>>
>>> Removed the FILEBROWSER_DIRECTORY entry from the local_settings.py 
>>> because i generally stick with the default path anyway.
>>>
>>> Tested everything. Looks like it's working. I know there was a bit of a 
>>> false alarm before but this time i'm fairly sure.
>>>
>>> If there's a simpler way to get around this though i'd like to know it.
>>>
>>> It's a bit of a faff having to have my own version of filebrowser-safe 
>>> for every mez proj.
>>>
>>>
>>>
>>>
>>>
>>> On Monday, February 12, 2018 at 7:54:20 PM UTC, Simon Bradley wrote:

 A!

 Now i can't navigate in the media library.

 LOL!

 Still. Bound to be able to figure it out from here!

 On Monday, February 12, 2018 at 7:47:15 PM UTC, Simon Bradley wrote:
>
> Also, thanks to Mathias.
>
> It was your advice that led me to it.
>
> - Uninstalled filebrowser-safe
> - Cloned a fresh one from the repo
> - did setup.py develop
> - fiddled with the messages from delete
> - found said problem
>
>
> On Monday, February 12, 2018 at 7:43:46 PM UTC, Simon Bradley wrote:
>>
>> Well i found the problem.
>>
>> Very silly. Silly windows user.
>>
>> filebrowser-safe get_directory() picks up the directory from 
>> settings.py or the default 'uploads/' and it's as simple as that it 
>> seams.
>>
>> Because for it to work on windows the path needs to be 'uploads\'
>>
>> A backslash. That's it.
>>
>> So i just added this:
>>
>> FILEBROWSER_DIRECTORY = 'uploads\\'
>>
>> To my local_settings.py and now we're good.
>>
>> Hope this helps some people.
>>
>>
>> On Saturday, February 10, 2018 at 7:12:02 PM UTC, Simon Bradley wrote:
>>>
>>> Yo!
>>>
>>> Does anyone have any idea about this? Googling it seems to suggest 
>>> it has lingered for several years. It's a real annoyance because 
>>> overall i 
>>> really like mezzanine and have developed a couple of sites with it now. 
>>> I'm 
>>> also using windows 10 and everything else works great.
>>>
>>> Would be great if i had any kind of workaround for this.
>>>
>>> Anyone any idea?
>>>
>>> Anyone at all?
>>>
>>> I mean i spent a fair amount of time fiddling with it. Looking here: 
>>> https://docs.python.org/3/library/os.html
>>>
>>> It says this: 
>>> Although Windows supports chmod() 
>>> , you can only 
>>> set the file’s read-only flag with it (via the stat.S_IWRITE and 
>>> stat.S_IREADconstants or a corresponding integer value). All other 
>>> bits are ignored.
>>>
>>> Now i'm not really all that knowledgeable in this area but is that 
>>> saying that because Mezzanine uses chmod that you can't actually change 
>>> the 
>>> file permissions on windows through mezzanine?
>>>
>>> If so could there be another way? Maybe changing the file 
>>> permissions in windows explorer somehow?
>>>
>>> Welcome a discussion here folks. I know someone out there knows more 
>>> about this than i do. In fact i suspect their number may be legion.
>>>
>>>
>>>
>>>
>>> On Wednesday, November 29, 2017 at 8:42:17 PM UTC, Alexander Yang 
>>> wrote:

 Hi. I'm trying Mezzanine on Windows 10 and facing this same issue. 
 I can't delete images from the media library in the admin interface. 
 Same 
 error message. Did you manage to solve this?

 Thanks,

 Alex


 On Friday, 27 March 2015 02:41:22 UTC+1, Wan Hsin Mao wrote:
>

Re: [mezzanine-users] Re: Mezzanine 3.1.10: Can't delete the media files in the admin page

2018-02-13 Thread Simon Bradley
Will do.

On Monday, February 12, 2018 at 10:28:00 PM UTC, Stephen McDonald wrote:
>
> Could you create a pull request with your fix? That'd be great, thank you.
>
> On Tue, Feb 13, 2018 at 7:14 AM, Simon Bradley  > wrote:
>
>> OK def fixed it now
>>
>> This line in the views.py of filebrowser-safe:
>>
>> if not normalized.startswith(get_directory()) or ".." in normalized:
>>
>> It appears to be the problem.
>>
>> I changed it to:
>>
>> if not normalized.startswith(get_directory().strip("/")) or ".." in 
>> normalized:
>>
>> Removed the FILEBROWSER_DIRECTORY entry from the local_settings.py 
>> because i generally stick with the default path anyway.
>>
>> Tested everything. Looks like it's working. I know there was a bit of a 
>> false alarm before but this time i'm fairly sure.
>>
>> If there's a simpler way to get around this though i'd like to know it.
>>
>> It's a bit of a faff having to have my own version of filebrowser-safe 
>> for every mez proj.
>>
>>
>>
>>
>>
>> On Monday, February 12, 2018 at 7:54:20 PM UTC, Simon Bradley wrote:
>>>
>>> A!
>>>
>>> Now i can't navigate in the media library.
>>>
>>> LOL!
>>>
>>> Still. Bound to be able to figure it out from here!
>>>
>>> On Monday, February 12, 2018 at 7:47:15 PM UTC, Simon Bradley wrote:

 Also, thanks to Mathias.

 It was your advice that led me to it.

 - Uninstalled filebrowser-safe
 - Cloned a fresh one from the repo
 - did setup.py develop
 - fiddled with the messages from delete
 - found said problem


 On Monday, February 12, 2018 at 7:43:46 PM UTC, Simon Bradley wrote:
>
> Well i found the problem.
>
> Very silly. Silly windows user.
>
> filebrowser-safe get_directory() picks up the directory from 
> settings.py or the default 'uploads/' and it's as simple as that it seams.
>
> Because for it to work on windows the path needs to be 'uploads\'
>
> A backslash. That's it.
>
> So i just added this:
>
> FILEBROWSER_DIRECTORY = 'uploads\\'
>
> To my local_settings.py and now we're good.
>
> Hope this helps some people.
>
>
> On Saturday, February 10, 2018 at 7:12:02 PM UTC, Simon Bradley wrote:
>>
>> Yo!
>>
>> Does anyone have any idea about this? Googling it seems to suggest it 
>> has lingered for several years. It's a real annoyance because overall i 
>> really like mezzanine and have developed a couple of sites with it now. 
>> I'm 
>> also using windows 10 and everything else works great.
>>
>> Would be great if i had any kind of workaround for this.
>>
>> Anyone any idea?
>>
>> Anyone at all?
>>
>> I mean i spent a fair amount of time fiddling with it. Looking here: 
>> https://docs.python.org/3/library/os.html
>>
>> It says this: 
>> Although Windows supports chmod() 
>> , you can only 
>> set the file’s read-only flag with it (via the stat.S_IWRITE and 
>> stat.S_IREADconstants or a corresponding integer value). All other 
>> bits are ignored.
>>
>> Now i'm not really all that knowledgeable in this area but is that 
>> saying that because Mezzanine uses chmod that you can't actually change 
>> the 
>> file permissions on windows through mezzanine?
>>
>> If so could there be another way? Maybe changing the file permissions 
>> in windows explorer somehow?
>>
>> Welcome a discussion here folks. I know someone out there knows more 
>> about this than i do. In fact i suspect their number may be legion.
>>
>>
>>
>>
>> On Wednesday, November 29, 2017 at 8:42:17 PM UTC, Alexander Yang 
>> wrote:
>>>
>>> Hi. I'm trying Mezzanine on Windows 10 and facing this same issue. I 
>>> can't delete images from the media library in the admin interface. Same 
>>> error message. Did you manage to solve this?
>>>
>>> Thanks,
>>>
>>> Alex
>>>
>>>
>>> On Friday, 27 March 2015 02:41:22 UTC+1, Wan Hsin Mao wrote:

 I'm using the newest version of Mezzanine as my website CMS. There 
 is always "An error occurred" message after  I click the trash can 
 icon. Is there any way to find out what's going wrong or anything 
 suggested 
 that I can check to solve this error?

 p.s. I just want to delete the .ppt file in admin page.

>>> -- 
>> 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.
>>
>
>
>
> -- 
> Stephen McDonald
> http://jupo.org
>

-- 
You received this message because you are subscribed to the Google 

Re: [mezzanine-users] Re: Mezzanine 3.1.10: Can't delete the media files in the admin page

2018-02-12 Thread Stephen McDonald
Could you create a pull request with your fix? That'd be great, thank you.

On Tue, Feb 13, 2018 at 7:14 AM, Simon Bradley 
wrote:

> OK def fixed it now
>
> This line in the views.py of filebrowser-safe:
>
> if not normalized.startswith(get_directory()) or ".." in normalized:
>
> It appears to be the problem.
>
> I changed it to:
>
> if not normalized.startswith(get_directory().strip("/")) or ".." in
> normalized:
>
> Removed the FILEBROWSER_DIRECTORY entry from the local_settings.py because
> i generally stick with the default path anyway.
>
> Tested everything. Looks like it's working. I know there was a bit of a
> false alarm before but this time i'm fairly sure.
>
> If there's a simpler way to get around this though i'd like to know it.
>
> It's a bit of a faff having to have my own version of filebrowser-safe for
> every mez proj.
>
>
>
>
>
> On Monday, February 12, 2018 at 7:54:20 PM UTC, Simon Bradley wrote:
>>
>> A!
>>
>> Now i can't navigate in the media library.
>>
>> LOL!
>>
>> Still. Bound to be able to figure it out from here!
>>
>> On Monday, February 12, 2018 at 7:47:15 PM UTC, Simon Bradley wrote:
>>>
>>> Also, thanks to Mathias.
>>>
>>> It was your advice that led me to it.
>>>
>>> - Uninstalled filebrowser-safe
>>> - Cloned a fresh one from the repo
>>> - did setup.py develop
>>> - fiddled with the messages from delete
>>> - found said problem
>>>
>>>
>>> On Monday, February 12, 2018 at 7:43:46 PM UTC, Simon Bradley wrote:

 Well i found the problem.

 Very silly. Silly windows user.

 filebrowser-safe get_directory() picks up the directory from
 settings.py or the default 'uploads/' and it's as simple as that it seams.

 Because for it to work on windows the path needs to be 'uploads\'

 A backslash. That's it.

 So i just added this:

 FILEBROWSER_DIRECTORY = 'uploads\\'

 To my local_settings.py and now we're good.

 Hope this helps some people.


 On Saturday, February 10, 2018 at 7:12:02 PM UTC, Simon Bradley wrote:
>
> Yo!
>
> Does anyone have any idea about this? Googling it seems to suggest it
> has lingered for several years. It's a real annoyance because overall i
> really like mezzanine and have developed a couple of sites with it now. 
> I'm
> also using windows 10 and everything else works great.
>
> Would be great if i had any kind of workaround for this.
>
> Anyone any idea?
>
> Anyone at all?
>
> I mean i spent a fair amount of time fiddling with it. Looking here:
> https://docs.python.org/3/library/os.html
>
> It says this:
> Although Windows supports chmod()
> , you can only
> set the file’s read-only flag with it (via the stat.S_IWRITE and
> stat.S_IREADconstants or a corresponding integer value). All other
> bits are ignored.
>
> Now i'm not really all that knowledgeable in this area but is that
> saying that because Mezzanine uses chmod that you can't actually change 
> the
> file permissions on windows through mezzanine?
>
> If so could there be another way? Maybe changing the file permissions
> in windows explorer somehow?
>
> Welcome a discussion here folks. I know someone out there knows more
> about this than i do. In fact i suspect their number may be legion.
>
>
>
>
> On Wednesday, November 29, 2017 at 8:42:17 PM UTC, Alexander Yang
> wrote:
>>
>> Hi. I'm trying Mezzanine on Windows 10 and facing this same issue. I
>> can't delete images from the media library in the admin interface. Same
>> error message. Did you manage to solve this?
>>
>> Thanks,
>>
>> Alex
>>
>>
>> On Friday, 27 March 2015 02:41:22 UTC+1, Wan Hsin Mao wrote:
>>>
>>> I'm using the newest version of Mezzanine as my website CMS. There
>>> is always "An error occurred" message after  I click the trash can
>>> icon. Is there any way to find out what's going wrong or anything 
>>> suggested
>>> that I can check to solve this error?
>>>
>>> p.s. I just want to delete the .ppt file in admin page.
>>>
>> --
> 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.


[mezzanine-users] Re: Mezzanine 3.1.10: Can't delete the media files in the admin page

2018-02-12 Thread Simon Bradley
OK def fixed it now

This line in the views.py of filebrowser-safe:

if not normalized.startswith(get_directory()) or ".." in normalized:
   
It appears to be the problem.

I changed it to:

if not normalized.startswith(get_directory().strip("/")) or ".." in 
normalized:
   
Removed the FILEBROWSER_DIRECTORY entry from the local_settings.py because 
i generally stick with the default path anyway.

Tested everything. Looks like it's working. I know there was a bit of a 
false alarm before but this time i'm fairly sure.

If there's a simpler way to get around this though i'd like to know it.

It's a bit of a faff having to have my own version of filebrowser-safe for 
every mez proj.





On Monday, February 12, 2018 at 7:54:20 PM UTC, Simon Bradley wrote:
>
> A!
>
> Now i can't navigate in the media library.
>
> LOL!
>
> Still. Bound to be able to figure it out from here!
>
> On Monday, February 12, 2018 at 7:47:15 PM UTC, Simon Bradley wrote:
>>
>> Also, thanks to Mathias.
>>
>> It was your advice that led me to it.
>>
>> - Uninstalled filebrowser-safe
>> - Cloned a fresh one from the repo
>> - did setup.py develop
>> - fiddled with the messages from delete
>> - found said problem
>>
>>
>> On Monday, February 12, 2018 at 7:43:46 PM UTC, Simon Bradley wrote:
>>>
>>> Well i found the problem.
>>>
>>> Very silly. Silly windows user.
>>>
>>> filebrowser-safe get_directory() picks up the directory from settings.py 
>>> or the default 'uploads/' and it's as simple as that it seams.
>>>
>>> Because for it to work on windows the path needs to be 'uploads\'
>>>
>>> A backslash. That's it.
>>>
>>> So i just added this:
>>>
>>> FILEBROWSER_DIRECTORY = 'uploads\\'
>>>
>>> To my local_settings.py and now we're good.
>>>
>>> Hope this helps some people.
>>>
>>>
>>> On Saturday, February 10, 2018 at 7:12:02 PM UTC, Simon Bradley wrote:

 Yo!

 Does anyone have any idea about this? Googling it seems to suggest it 
 has lingered for several years. It's a real annoyance because overall i 
 really like mezzanine and have developed a couple of sites with it now. 
 I'm 
 also using windows 10 and everything else works great.

 Would be great if i had any kind of workaround for this.

 Anyone any idea?

 Anyone at all?

 I mean i spent a fair amount of time fiddling with it. Looking here: 
 https://docs.python.org/3/library/os.html

 It says this: 
 Although Windows supports chmod() 
 , you can only set 
 the file’s read-only flag with it (via the stat.S_IWRITE and 
 stat.S_IREADconstants or a corresponding integer value). All other 
 bits are ignored.

 Now i'm not really all that knowledgeable in this area but is that 
 saying that because Mezzanine uses chmod that you can't actually change 
 the 
 file permissions on windows through mezzanine?

 If so could there be another way? Maybe changing the file permissions 
 in windows explorer somehow?

 Welcome a discussion here folks. I know someone out there knows more 
 about this than i do. In fact i suspect their number may be legion.




 On Wednesday, November 29, 2017 at 8:42:17 PM UTC, Alexander Yang wrote:
>
> Hi. I'm trying Mezzanine on Windows 10 and facing this same issue. I 
> can't delete images from the media library in the admin interface. Same 
> error message. Did you manage to solve this?
>
> Thanks,
>
> Alex
>
>
> On Friday, 27 March 2015 02:41:22 UTC+1, Wan Hsin Mao wrote:
>>
>> I'm using the newest version of Mezzanine as my website CMS. There is 
>> always "An error occurred" message after  I click the trash can 
>> icon. Is there any way to find out what's going wrong or anything 
>> suggested 
>> that I can check to solve this error?
>>
>> p.s. I just want to delete the .ppt file in admin page.
>>
>

-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2018-02-12 Thread Simon Bradley
A!

Now i can't navigate in the media library.

LOL!

Still. Bound to be able to figure it out from here!

On Monday, February 12, 2018 at 7:47:15 PM UTC, Simon Bradley wrote:
>
> Also, thanks to Mathias.
>
> It was your advice that led me to it.
>
> - Uninstalled filebrowser-safe
> - Cloned a fresh one from the repo
> - did setup.py develop
> - fiddled with the messages from delete
> - found said problem
>
>
> On Monday, February 12, 2018 at 7:43:46 PM UTC, Simon Bradley wrote:
>>
>> Well i found the problem.
>>
>> Very silly. Silly windows user.
>>
>> filebrowser-safe get_directory() picks up the directory from settings.py 
>> or the default 'uploads/' and it's as simple as that it seams.
>>
>> Because for it to work on windows the path needs to be 'uploads\'
>>
>> A backslash. That's it.
>>
>> So i just added this:
>>
>> FILEBROWSER_DIRECTORY = 'uploads\\'
>>
>> To my local_settings.py and now we're good.
>>
>> Hope this helps some people.
>>
>>
>> On Saturday, February 10, 2018 at 7:12:02 PM UTC, Simon Bradley wrote:
>>>
>>> Yo!
>>>
>>> Does anyone have any idea about this? Googling it seems to suggest it 
>>> has lingered for several years. It's a real annoyance because overall i 
>>> really like mezzanine and have developed a couple of sites with it now. I'm 
>>> also using windows 10 and everything else works great.
>>>
>>> Would be great if i had any kind of workaround for this.
>>>
>>> Anyone any idea?
>>>
>>> Anyone at all?
>>>
>>> I mean i spent a fair amount of time fiddling with it. Looking here: 
>>> https://docs.python.org/3/library/os.html
>>>
>>> It says this: 
>>> Although Windows supports chmod() 
>>> , you can only set 
>>> the file’s read-only flag with it (via the stat.S_IWRITE and 
>>> stat.S_IREADconstants or a corresponding integer value). All other bits 
>>> are ignored.
>>>
>>> Now i'm not really all that knowledgeable in this area but is that 
>>> saying that because Mezzanine uses chmod that you can't actually change the 
>>> file permissions on windows through mezzanine?
>>>
>>> If so could there be another way? Maybe changing the file permissions in 
>>> windows explorer somehow?
>>>
>>> Welcome a discussion here folks. I know someone out there knows more 
>>> about this than i do. In fact i suspect their number may be legion.
>>>
>>>
>>>
>>>
>>> On Wednesday, November 29, 2017 at 8:42:17 PM UTC, Alexander Yang wrote:

 Hi. I'm trying Mezzanine on Windows 10 and facing this same issue. I 
 can't delete images from the media library in the admin interface. Same 
 error message. Did you manage to solve this?

 Thanks,

 Alex


 On Friday, 27 March 2015 02:41:22 UTC+1, Wan Hsin Mao wrote:
>
> I'm using the newest version of Mezzanine as my website CMS. There is 
> always "An error occurred" message after  I click the trash can icon. 
> Is there any way to find out what's going wrong or anything suggested 
> that 
> I can check to solve this error?
>
> p.s. I just want to delete the .ppt file in admin page.
>


-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2018-02-12 Thread Simon Bradley
Also, thanks to Mathias.

It was your advice that led me to it.

- Uninstalled filebrowser-safe
- Cloned a fresh one from the repo
- did setup.py develop
- fiddled with the messages from delete
- found said problem


On Monday, February 12, 2018 at 7:43:46 PM UTC, Simon Bradley wrote:
>
> Well i found the problem.
>
> Very silly. Silly windows user.
>
> filebrowser-safe get_directory() picks up the directory from settings.py 
> or the default 'uploads/' and it's as simple as that it seams.
>
> Because for it to work on windows the path needs to be 'uploads\'
>
> A backslash. That's it.
>
> So i just added this:
>
> FILEBROWSER_DIRECTORY = 'uploads\\'
>
> To my local_settings.py and now we're good.
>
> Hope this helps some people.
>
>
> On Saturday, February 10, 2018 at 7:12:02 PM UTC, Simon Bradley wrote:
>>
>> Yo!
>>
>> Does anyone have any idea about this? Googling it seems to suggest it has 
>> lingered for several years. It's a real annoyance because overall i really 
>> like mezzanine and have developed a couple of sites with it now. I'm also 
>> using windows 10 and everything else works great.
>>
>> Would be great if i had any kind of workaround for this.
>>
>> Anyone any idea?
>>
>> Anyone at all?
>>
>> I mean i spent a fair amount of time fiddling with it. Looking here: 
>> https://docs.python.org/3/library/os.html
>>
>> It says this: 
>> Although Windows supports chmod() 
>> , you can only set 
>> the file’s read-only flag with it (via the stat.S_IWRITE and 
>> stat.S_IREADconstants 
>> or a corresponding integer value). All other bits are ignored.
>>
>> Now i'm not really all that knowledgeable in this area but is that saying 
>> that because Mezzanine uses chmod that you can't actually change the file 
>> permissions on windows through mezzanine?
>>
>> If so could there be another way? Maybe changing the file permissions in 
>> windows explorer somehow?
>>
>> Welcome a discussion here folks. I know someone out there knows more 
>> about this than i do. In fact i suspect their number may be legion.
>>
>>
>>
>>
>> On Wednesday, November 29, 2017 at 8:42:17 PM UTC, Alexander Yang wrote:
>>>
>>> Hi. I'm trying Mezzanine on Windows 10 and facing this same issue. I 
>>> can't delete images from the media library in the admin interface. Same 
>>> error message. Did you manage to solve this?
>>>
>>> Thanks,
>>>
>>> Alex
>>>
>>>
>>> On Friday, 27 March 2015 02:41:22 UTC+1, Wan Hsin Mao wrote:

 I'm using the newest version of Mezzanine as my website CMS. There is 
 always "An error occurred" message after  I click the trash can icon. 
 Is there any way to find out what's going wrong or anything suggested that 
 I can check to solve this error?

 p.s. I just want to delete the .ppt file in admin page.

>>>

-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2018-02-12 Thread Simon Bradley
Well i found the problem.

Very silly. Silly windows user.

filebrowser-safe get_directory() picks up the directory from settings.py or 
the default 'uploads/' and it's as simple as that it seams.

Because for it to work on windows the path needs to be 'uploads\'

A backslash. That's it.

So i just added this:

FILEBROWSER_DIRECTORY = 'uploads\\'

To my local_settings.py and now we're good.

Hope this helps some people.


On Saturday, February 10, 2018 at 7:12:02 PM UTC, Simon Bradley wrote:
>
> Yo!
>
> Does anyone have any idea about this? Googling it seems to suggest it has 
> lingered for several years. It's a real annoyance because overall i really 
> like mezzanine and have developed a couple of sites with it now. I'm also 
> using windows 10 and everything else works great.
>
> Would be great if i had any kind of workaround for this.
>
> Anyone any idea?
>
> Anyone at all?
>
> I mean i spent a fair amount of time fiddling with it. Looking here: 
> https://docs.python.org/3/library/os.html
>
> It says this: 
> Although Windows supports chmod() 
> , you can only set 
> the file’s read-only flag with it (via the stat.S_IWRITE and 
> stat.S_IREADconstants 
> or a corresponding integer value). All other bits are ignored.
>
> Now i'm not really all that knowledgeable in this area but is that saying 
> that because Mezzanine uses chmod that you can't actually change the file 
> permissions on windows through mezzanine?
>
> If so could there be another way? Maybe changing the file permissions in 
> windows explorer somehow?
>
> Welcome a discussion here folks. I know someone out there knows more about 
> this than i do. In fact i suspect their number may be legion.
>
>
>
>
> On Wednesday, November 29, 2017 at 8:42:17 PM UTC, Alexander Yang wrote:
>>
>> Hi. I'm trying Mezzanine on Windows 10 and facing this same issue. I 
>> can't delete images from the media library in the admin interface. Same 
>> error message. Did you manage to solve this?
>>
>> Thanks,
>>
>> Alex
>>
>>
>> On Friday, 27 March 2015 02:41:22 UTC+1, Wan Hsin Mao wrote:
>>>
>>> I'm using the newest version of Mezzanine as my website CMS. There is 
>>> always "An error occurred" message after  I click the trash can icon. 
>>> Is there any way to find out what's going wrong or anything suggested that 
>>> I can check to solve this error?
>>>
>>> p.s. I just want to delete the .ppt file in admin page.
>>>
>>

-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2018-02-10 Thread Simon Bradley
Yo!

Does anyone have any idea about this? Googling it seems to suggest it has 
lingered for several years. It's a real annoyance because overall i really 
like mezzanine and have developed a couple of sites with it now. I'm also 
using windows 10 and everything else works great.

Would be great if i had any kind of workaround for this.

Anyone any idea?

Anyone at all?

I mean i spent a fair amount of time fiddling with it. Looking 
here: https://docs.python.org/3/library/os.html

It says this: 
Although Windows supports chmod() 
, you can only set the 
file’s read-only flag with it (via the stat.S_IWRITE and stat.S_IREADconstants 
or a corresponding integer value). All other bits are ignored.

Now i'm not really all that knowledgeable in this area but is that saying 
that because Mezzanine uses chmod that you can't actually change the file 
permissions on windows through mezzanine?

If so could there be another way? Maybe changing the file permissions in 
windows explorer somehow?

Welcome a discussion here folks. I know someone out there knows more about 
this than i do. In fact i suspect their number may be legion.




On Wednesday, November 29, 2017 at 8:42:17 PM UTC, Alexander Yang wrote:
>
> Hi. I'm trying Mezzanine on Windows 10 and facing this same issue. I can't 
> delete images from the media library in the admin interface. Same error 
> message. Did you manage to solve this?
>
> Thanks,
>
> Alex
>
>
> On Friday, 27 March 2015 02:41:22 UTC+1, Wan Hsin Mao wrote:
>>
>> I'm using the newest version of Mezzanine as my website CMS. There is 
>> always "An error occurred" message after  I click the trash can icon. Is 
>> there any way to find out what's going wrong or anything suggested that I 
>> can check to solve this error?
>>
>> p.s. I just want to delete the .ppt file in admin page.
>>
>

-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2017-11-29 Thread Alexander Yang
Hi. I'm trying Mezzanine on Windows 10 and facing this same issue. I can't 
delete images from the media library in the admin interface. Same error 
message. Did you manage to solve this?

Thanks,

Alex


On Friday, 27 March 2015 02:41:22 UTC+1, Wan Hsin Mao wrote:
>
> I'm using the newest version of Mezzanine as my website CMS. There is 
> always "An error occurred" message after  I click the trash can icon. Is 
> there any way to find out what's going wrong or anything suggested that I 
> can check to solve this error?
>
> p.s. I just want to delete the .ppt file in admin page.
>

-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-30 Thread Mathias Ettinger
Why searching for a filebrowser_safe issue in the mezzanine code base?

The issue is thrown by the delete function in filebrowser_safe.views but 
there are 2 possible situations that can lead to this message. Either the 
path of the file failed to be normalized or the OS failed to delete the 
file properly.

Can you modify the error messages of the views.py file of filebrowser_safe 
so we know which one is occuring?


Le vendredi 27 mars 2015 07:47:29 UTC+1, Graham Oliver a écrit :

 yes I was just wondering if there was anything more helpful with the error 
 message.
 I have searched the code base and I can only find the text 'An error 
 occurred' in one place

 https://github.com/orotau/mezzanine/blob/master/mezzanine/core/static/mezzanine/js/editable.js#L19

 I don't know if that is where the error message is coming from?
 g

 On 27 March 2015 at 19:03, Wan Hsin Mao cindy5...@gmail.com javascript:
  wrote:

 Do u mean this page?


 https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xfa1/v/t1.0-9/11100235_915791538441828_6765449119291652476_n.jpg?oh=c5460dffae23740a2f845ea8e4b1f93foe=55B73673__gda__=1436814405_303eb83f26420ae34f0a1ccbb5b792bb

  -- 
 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 javascript:.
 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] Re: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-30 Thread Graham Oliver
Just ignorance on my part Mathias
I thought in my head 'I am searching the *total* Mezzanine code base', when
in fact I neglected to include the other parts such as filebrowser_safe.
Thanks for the heads up.
g

On 31 March 2015 at 00:38, Mathias Ettinger mathias.ettin...@gmail.com
wrote:

 Why searching for a filebrowser_safe issue in the mezzanine code base?

 The issue is thrown by the delete function in filebrowser_safe.views but
 there are 2 possible situations that can lead to this message. Either the
 path of the file failed to be normalized or the OS failed to delete the
 file properly.

 Can you modify the error messages of the views.py file of filebrowser_safe
 so we know which one is occuring?


 Le vendredi 27 mars 2015 07:47:29 UTC+1, Graham Oliver a écrit :

 yes I was just wondering if there was anything more helpful with the
 error message.
 I have searched the code base and I can only find the text 'An error
 occurred' in one place
 https://github.com/orotau/mezzanine/blob/master/mezzanine/core/static/
 mezzanine/js/editable.js#L19

 I don't know if that is where the error message is coming from?
 g

 On 27 March 2015 at 19:03, Wan Hsin Mao cindy5...@gmail.com wrote:

 Do u mean this page?


 https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xfa1/v/t1.0-9/11100235_915791538441828_6765449119291652476_n.jpg?oh=c5460dffae23740a2f845ea8e4b1f93foe=55B73673__gda__=1436814405_303eb83f26420ae34f0a1ccbb5b792bb

  --
 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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-27 Thread Wan Hsin Mao


Do u mean this page?

https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xfa1/v/t1.0-9/11100235_915791538441828_6765449119291652476_n.jpg?oh=c5460dffae23740a2f845ea8e4b1f93foe=55B73673__gda__=1436814405_303eb83f26420ae34f0a1ccbb5b792bb

-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-27 Thread Graham Oliver
I also found this in the mailing list
http://grokbase.com/p/gg/mezzanine-users/1326ek5pna/commenting-gives-me-an-error-when-debug-is-set-to-off

On 27 March 2015 at 19:07, Wan Hsin Mao cindy55212...@gmail.com wrote:

 I use Apache2.2, so there shouldn't be file permission problems if I set
 my upload directory Order allow,deny / Allow from all ? (I'm not sure if
 it's right)

 --
 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] Re: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-27 Thread Graham Oliver
yes I was just wondering if there was anything more helpful with the error
message.
I have searched the code base and I can only find the text 'An error
occurred' in one place
https://github.com/orotau/mezzanine/blob/master/mezzanine/core/static/mezzanine/js/editable.js#L19

I don't know if that is where the error message is coming from?
g

On 27 March 2015 at 19:03, Wan Hsin Mao cindy55212...@gmail.com wrote:

 Do u mean this page?


 https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xfa1/v/t1.0-9/11100235_915791538441828_6765449119291652476_n.jpg?oh=c5460dffae23740a2f845ea8e4b1f93foe=55B73673__gda__=1436814405_303eb83f26420ae34f0a1ccbb5b792bb

  --
 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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-27 Thread Wan Hsin Mao
I use Apache2.2, so there shouldn't be file permission problems if I set my 
upload directory Order allow,deny / Allow from all ? (I'm not sure if 
it's right)

-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-26 Thread Pushkar Paranjpe
Hi!

Also a user of Mezzanine 3.1.10 here. I do not see that error.
I tried deleting stuff from the admin media section. I was able to delete 
individual image files as well as I tried deleting entire folder and that 
worked fine too.
Could this be some kind of file system permissions issue ? Taking a wild 
guess here...

Cheers!
Pushkar
On Friday, 27 March 2015 09:19:17 UTC+5:30, Wan Hsin Mao wrote:

 No, I can't. No matter what the type of the file is, the error message is 
 always the same.


-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-26 Thread Wan Hsin Mao
I got this message when I run the manage.py runserver command:

https://lh3.googleusercontent.com/-Q4yAS7J6OCM/VRTJeQT4ZHI/CBI/Jlk8oso1kjI/s1600/%E6%93%B7%E5%8F%96.JPG

-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-26 Thread Wan Hsin Mao
No, I can't. No matter what the type of the file is, the error message is 
always the same.

-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-26 Thread Wan Hsin Mao


Wan Hsin Mao於 2015年3月27日星期五 UTC+8上午9時41分22秒寫道:

 I'm using the newest version of Mezzanine as my website CMS. There is 
 always An error occurred message after  I click the trash can icon. Is 
 there any way to find out what's going wrong or anything suggested that I 
 can check to solve this error?

 p.s. I just want to delete the .ppt file in admin page.


I got this message when I run the manage.py runserver command:

https://lh3.googleusercontent.com/-EGLzgGmeLZw/VRTI8_Sdj5I/CBA/FFJIjqAyjvo/s1600/%E6%93%B7%E5%8F%96.JPG
 

-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-26 Thread Graham Oliver
Can you delete an image file ok? Like a jpg or a png?


On 27 March 2015 at 16:07, Wan Hsin Mao cindy55212...@gmail.com wrote:

 I got this message when I run the manage.py runserver command:


 https://lh3.googleusercontent.com/-Q4yAS7J6OCM/VRTJeQT4ZHI/CBI/Jlk8oso1kjI/s1600/%E6%93%B7%E5%8F%96.JPG

  --
 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] Re: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-26 Thread Graham

can u send a screen shot of the front end error message.
Thanks
g

On 27/03/15 16:49, Wan Hsin Mao wrote:
No, I can't. No matter what the type of the file is, the error message 
is always the same.

--
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 
mailto: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.