Re: [mezzanine-users] Forcing Page Link to open in new window
Nothing like that at the moment. On Mon, Jan 13, 2014 at 10:48 AM, John Barham wrote: > I have a Page Link that I'd like to open in a new window when the user > clicks the URL (i.e., the equivalent of ...) Is > there a way to require this from the Mezzanine admin interface? I > could achieve the same result by injecting the target attribute via > jQuery after the page has loaded, but am just wondering if Mezzanine > supports this. > > Cheers, John > > -- > 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.
[mezzanine-users] Forcing Page Link to open in new window
I have a Page Link that I'd like to open in a new window when the user clicks the URL (i.e., the equivalent of ...) Is there a way to require this from the Mezzanine admin interface? I could achieve the same result by injecting the target attribute via jQuery after the page has loaded, but am just wondering if Mezzanine supports this. Cheers, John -- 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] Mezzanine 3.0.5 released
Hi all, I've just pushed out Mezzanine 3.0.5 which contains a large number of minor fixes and enhancements since 3.0.4 (which was released very soon after 3.0). - Fixes for certain static admin files when running Python 3.3 on Windows - Further support for multi-lingual admin interface - Disqus SSO fixes for Python 3.3 - Increased font sizes through the admin interface - More HTML5 field types handled in admin dynamic inlines - Migration fixes for latest version of south with Django 1.6.1 - Automatic timezone guessing resolving issues with Django 1.6.1 - RSS feed "link" attribute now points to site instead of feed itself. - Gallery fixes when hosting on Amazon S3 - Libraries upgraded: requests/bleach (resolves today's dependency conflicts) - Restored bootstrap-extras.js fixing issues with drop-down menus on mobile devices - Fixed gallery zipfile uploads for homepage galleries - Fixed admin menu ordering for Python 3.3 -- 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] Buy Product fails if Product contains non ASCII chars
Hi All, I've started working with Mezzanine/Cartridge few weeks ago and they are very interesting projects for me. My testing app is deployed on Openshift (character_set_database in MySQL is utf8 ) And I faced with the following issue. When a product contains non ascii symbols (but URL is translitirated) I can open the Product in the shop but I can not Buy it because of an exception Traceback: File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Django-1.6.1-py2.7.egg/django/core/handlers/base.py" in get_response 107. response = middleware_method(request, callback, callback_args, callback_kwargs) File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/pages/middleware.py" in process_view 78. response = view_func(request, *view_args, **view_kwargs) File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Cartridge-0.9.1-py2.7.egg/cartridge/shop/views.py" in product 61. request.cart.add_item(add_product_form.variation, quantity) File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Cartridge-0.9.1-py2.7.egg/cartridge/shop/utils.py" in add_item 52. cart.add_item(*args, **kwargs) File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Cartridge-0.9.1-py2.7.egg/cartridge/shop/models.py" in add_item 567. item.save() File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Cartridge-0.9.1-py2.7.egg/cartridge/shop/models.py" in save 650. super(SelectedProduct, self).save(*args, **kwargs) File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Django-1.6.1-py2.7.egg/django/db/models/base.py" in save 545.force_update=force_update, update_fields=update_fields) File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Django-1.6.1-py2.7.egg/django/db/models/base.py" in save_base 573. updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields) File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Django-1.6.1-py2.7.egg/django/db/models/base.py" in _save_table 635. forced_update) File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Django-1.6.1-py2.7.egg/django/db/models/base.py" in _do_update 679. return filtered._update(values) > 0 File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Django-1.6.1-py2.7.egg/django/db/models/query.py" in _update 507. return query.get_compiler(self.db).execute_sql(None) File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Django-1.6.1-py2.7.egg/django/db/models/sql/compiler.py" in execute_sql 975. cursor = super(SQLUpdateCompiler, self).execute_sql(result_type) File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Django-1.6.1-py2.7.egg/django/db/models/sql/compiler.py" in execute_sql 781. cursor.execute(sql, params) File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Django-1.6.1-py2.7.egg/django/db/backends/util.py" in execute 69. return super(CursorDebugWrapper, self).execute(sql, params) File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Django-1.6.1-py2.7.egg/django/db/backends/util.py" in execute 53. return self.cursor.execute(sql, params) File "/var/lib/openshift/52d044ace0b8cdfcd400021b/python/virtenv/lib/python2.7/site-packages/Django-1.6.1-py2.7.egg/django/db/backends/mysql/base.py" in execute 124. return self.cursor.execute(query, args) File "/opt/rh/python27/root/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py" in execute 159. query = query % db.literal(args) File "/opt/rh/python27/root/usr/lib64/python2.7/site-packages/MySQLdb/connections.py" in literal 264. return self.escape(o, self.encoders) File "/opt/rh/python27/root/usr/lib64/python2.7/site-packages/MySQLdb/connections.py" in string_literal 197. return db.string_literal(obj) Exception Type: UnicodeEncodeError at /shop/product/noski-multik/ Exception Value: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128) Is it known issue? -- 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://grou
[mezzanine-users] Would some of you (Steve?) like to incorporate Pinax?
See discussion here https://groups.google.com/d/topic/pinax-core-dev/wKP_ZMRuI00/discussion -- 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] Possible bug in mezzanine.core.templatetags.mezzanine_tags.py
Thanks for the report - this is a bug with python 3. I've just made the fix for it which will go out with a new Mezzanine release within the next hour. Meanwhile, if for some reason you needed it resolved in your project prior to the fix, you could work around it by including your models in the ADMIN_MENU_ORDER setting: http://mezzanine.jupo.org/docs/admin-customization.html#navigation On Sun, Jan 12, 2014 at 9:30 PM, Moltra wrote: > I have been trying to make a copy of the blog model and use it for my site > with additional fields. I copied over the blog app folder and added > "media" to the front of everything that had blog in it. I kept getting a > TypeError "unorderable types: int() < str()" when I tried to go to the > 127.0.0.1/admin screen. > > Here is the post that shows all the error information > https://groups.google.com/d/msg/mezzanine-users/PGw973kHxIk/gpE8N7fV_LwJ > > I noticed that the error was coming from the app_list portion of the > mezzanine_tags.py file. I looked at the file and noticed that the app_list > was based off "django.contrib.admin.sites.AdminSite.index", so I started > comparing app_list line by line. I modified the mezzanine_tags.py file as > follows and I can now go to the 127.0.0.1/admin screen and my new > mediablog app is there. I am very new to python so I am not sure if I > broke something else, but I am no longer getting the TypeError and can > access the admin screen. > > > app_list = list(app_dict.values()) >> >> app_list.sort(key=lambda x: x['name']) >> >> >>> # Sort the models alphabetically within each app. >> >> for app in app_list: >> >> app['models'].sort(key=lambda x: x['name']) >> >> #sort = lambda x: x["name"] if x["index"] is None else x["index"] >> >> #for app in app_list: >> >> #app['models'].sort(key=sort) >> >> #app_list.sort(key=sort) >> >> return app_list >> >> > I just noticed that the mediablog does not show up under content, but > under its own section. So I am not sure now if this is a bug or not. > > -- > 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] mezzanine-project fails on html5lib version conflict
Thanks for the report. You've uncovered a conflict in the versions of dependencies, something that has unfortunately occurred outside of Mezzanine's codebase itself. Mezzanine specifies it requires a particular version of html5lib, in this case 0.95, and another of its dependencies, bleach, has recently been updated to specify it requires a conflicting version of html5lib, in this case >= 0.999. I'll be pushing a new version of Mezzanine shortly which should resolve the issue. On Mon, Jan 13, 2014 at 4:29 AM, Sebastian Heyden < sebastian.hey...@gmail.com> wrote: > hey there, > > i just tried to start a mezzanine project by typing > > pip install mezzanine > mezzanine-project myproject > > ... on ubuntu and fedora with python2.7 and python2.6 but always get this > output from the last command: > > Traceback (most recent call last): > > File "/usr/local/bin/mezzanine-project", line 5, in > > from pkg_resources import load_entry_point > > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2809, in > > > parse_requirements(__requires__), Environment() > > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 598, in > resolve > > raise VersionConflict(dist,req) # XXX put more info here > > pkg_resources.VersionConflict: (html5lib 0.95 > (/usr/local/lib/python2.7/dist-packages), > Requirement.parse('html5lib>=0.999')) > > > > I forced pip to install html5lib 0.999 and then i get the following error > message instead. > > Traceback (most recent call last): > > File "/usr/local/bin/mezzanine-project", line 5, in > > from pkg_resources import load_entry_point > > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2809, in > > > parse_requirements(__requires__), Environment() > > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 594, in > resolve > > raise DistributionNotFound(req) > > pkg_resources.DistributionNotFound: html5lib==0.95 > > > > Makes sense so far. But what am I supposed to do now? > > I have some experience with django projects and decided to take the > learning curve for mezzanine. > > i had a successful installation of mezzanine from a template once on my > development machine. when i wasn't able to deploy my project on the server > due to my messy project structure, i decided to start from scratch and copy > my code in piece for piece. i couldn't find the template anymore, and > therefore i try to go down the route with mezzanine-project. is it just me > or is setting up mezzanine slightly more complicated than average? > That all depends on what your subjective experience of "average" is I guess, but in my opinion Mezzanine actually goes to greater lengths than usual in making the install process and "out of the box" experience easier than usual. > > > cheers, > sebastian > > > -- > 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.
[mezzanine-users] mezzanine-project fails on html5lib version conflict
hey there, i just tried to start a mezzanine project by typing pip install mezzanine mezzanine-project myproject ... on ubuntu and fedora with python2.7 and python2.6 but always get this output from the last command: Traceback (most recent call last): File "/usr/local/bin/mezzanine-project", line 5, in from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2809, in parse_requirements(__requires__), Environment() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 598, in resolve raise VersionConflict(dist,req) # XXX put more info here pkg_resources.VersionConflict: (html5lib 0.95 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('html5lib>=0.999')) I forced pip to install html5lib 0.999 and then i get the following error message instead. Traceback (most recent call last): File "/usr/local/bin/mezzanine-project", line 5, in from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2809, in parse_requirements(__requires__), Environment() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 594, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: html5lib==0.95 Makes sense so far. But what am I supposed to do now? I have some experience with django projects and decided to take the learning curve for mezzanine. i had a successful installation of mezzanine from a template once on my development machine. when i wasn't able to deploy my project on the server due to my messy project structure, i decided to start from scratch and copy my code in piece for piece. i couldn't find the template anymore, and therefore i try to go down the route with mezzanine-project. is it just me or is setting up mezzanine slightly more complicated than average? cheers, sebastian -- 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] Possible bug in mezzanine.core.templatetags.mezzanine_tags.py
I have been trying to make a copy of the blog model and use it for my site with additional fields. I copied over the blog app folder and added "media" to the front of everything that had blog in it. I kept getting a TypeError "unorderable types: int() < str()" when I tried to go to the 127.0.0.1/admin screen. Here is the post that shows all the error information https://groups.google.com/d/msg/mezzanine-users/PGw973kHxIk/gpE8N7fV_LwJ I noticed that the error was coming from the app_list portion of the mezzanine_tags.py file. I looked at the file and noticed that the app_list was based off "django.contrib.admin.sites.AdminSite.index", so I started comparing app_list line by line. I modified the mezzanine_tags.py file as follows and I can now go to the 127.0.0.1/admin screen and my new mediablog app is there. I am very new to python so I am not sure if I broke something else, but I am no longer getting the TypeError and can access the admin screen. app_list = list(app_dict.values()) > > app_list.sort(key=lambda x: x['name']) > > >> # Sort the models alphabetically within each app. > > for app in app_list: > > app['models'].sort(key=lambda x: x['name']) > > #sort = lambda x: x["name"] if x["index"] is None else x["index"] > > #for app in app_list: > > #app['models'].sort(key=sort) > > #app_list.sort(key=sort) > > return app_list > > I just noticed that the mediablog does not show up under content, but under its own section. So I am not sure now if this is a bug or not. -- 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.