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 =

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

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

[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

[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 > -

[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

[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

[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

[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

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

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

[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

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

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

[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

[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 ?

[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

[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] 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

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:

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