r252504 - in plonetheme.arnolfini/trunk: . docs plonetheme/arnolfini/browser plonetheme/arnolfini/profiles/default

"David Jonas Castanheira" <svn-changes-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.collective.cvs
Message-ID <[email protected]>
Author: davidjonas
Date: Mon Aug 19 15:15:48 2013
New Revision: 252504

Modified:
   plonetheme.arnolfini/trunk/docs/HISTORY.txt
   plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/document_view_custom.pt
   plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/views.py
   plonetheme.arnolfini/trunk/plonetheme/arnolfini/profiles/default/metadata.xml
   plonetheme.arnolfini/trunk/setup.py
Log:
Fixing donation forms and artist names are now ordered in the document view

Modified: plonetheme.arnolfini/trunk/docs/HISTORY.txt
==============================================================================
--- plonetheme.arnolfini/trunk/docs/HISTORY.txt	(original)
+++ plonetheme.arnolfini/trunk/docs/HISTORY.txt	Mon Aug 19 15:15:48 2013
@@ -1,5 +1,9 @@
 Changelog
 =========
+0.94 (2013-08-19)
+---------------------
+- Donation forms changed and ordering the related items on document view.
+
 0.93 (2013-07-08)
 ---------------------
 - Fix in the merged views that blocked the cropping interface.

Modified: plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/document_view_custom.pt
==============================================================================
--- plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/document_view_custom.pt	(original)
+++ plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/document_view_custom.pt	Mon Aug 19 15:15:48 2013
@@ -51,7 +51,7 @@
 			      <span class="price">Free</span> <span class="arrow">&rarr;</span>
                                     <form class="inlineForm" method="post" action="https://www.paypal.com/cgi-bin/webscr" tal:attributes="onSubmit  string: return Arnolfini.trackEcommerce('${context/Title}', '0.00', 'Donation')">
                                           <input type="hidden" value="[email protected]" name="business" />
-                                          <input type="hidden" value="" name="item_name" tal:attributes="value context/Title"/>
+                                          <input type="hidden" value="" name="item_name" tal:attributes="value python: '%s (Donations do not guarantee ticket booking.)'%context.Title()"/>
                                           <input type="hidden" value="GBP" name="currency_code">
                                           <input type="hidden" value="http://new.arnolfini.org.uk/++resource++plonetheme.arnolfini.images/arnolfiniLogo.png" name="cpp_header_image">
                                           <input type="hidden" value="http://new.arnolfini.org.uk/about/support/donation-thank-you/" name="return">

Modified: plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/views.py
==============================================================================
--- plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/views.py	(original)
+++ plonetheme.arnolfini/trunk/plonetheme/arnolfini/browser/views.py	Mon Aug 19 15:15:48 2013
@@ -304,7 +304,8 @@
         """
         result = []
         workflow = getToolByName(self.context,'portal_workflow')
-        for res in content:
+        sortedContent = sorted(content, key=lambda res: res.portal_type == 'Media Person' and self._normalizePersonName(res.title) or res.title)
+        for res in sortedContent:
             if self.checkPermission(res, 'View'):
                 if res.portal_type == 'Media Person':
                     result.append('<a href="%(link)s" class="%(state_class)s">%(title)s</a>'%{'link':res.absolute_url(), 'title':self._normalizePersonName(res.title), 'state_class': 'state-' + queryUtility(IIDNormalizer).normalize(workflow.getInfoFor(res,'review_state'))})

Modified: plonetheme.arnolfini/trunk/plonetheme/arnolfini/profiles/default/metadata.xml
==============================================================================
--- plonetheme.arnolfini/trunk/plonetheme/arnolfini/profiles/default/metadata.xml	(original)
+++ plonetheme.arnolfini/trunk/plonetheme/arnolfini/profiles/default/metadata.xml	Mon Aug 19 15:15:48 2013
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <metadata>
-  <version>0.93</version>
+  <version>0.94</version>
   <dependencies>
        <dependency>profile-plonetheme.intkBase:default</dependency>
  </dependencies>

Modified: plonetheme.arnolfini/trunk/setup.py
==============================================================================
--- plonetheme.arnolfini/trunk/setup.py	(original)
+++ plonetheme.arnolfini/trunk/setup.py	Mon Aug 19 15:15:48 2013
@@ -1,7 +1,7 @@
 from setuptools import setup, find_packages
 import os
 
-version = '0.93'
+version = '0.94'
 
 setup(name='plonetheme.arnolfini',
       version=version,

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.