Removed test code.
This commit is contained in:
		
							parent
							
								
									bf98b2cdf2
								
							
						
					
					
						commit
						e0cef5eed5
					
				
					 2 changed files with 0 additions and 16 deletions
				
			
		
							
								
								
									
										13
									
								
								gen/ogone.py
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								gen/ogone.py
									
										
									
									
									
								
							|  | @ -2,17 +2,6 @@ | |||
| import sha | ||||
| from appy import Object | ||||
| from appy.gen import Type | ||||
| from appy.px import Px | ||||
| 
 | ||||
| view = Px(''' | ||||
| <p>Hello PX world.</p> | ||||
| <x for="x in value.keys()"> | ||||
|   <div if="len(x) < 5"> | ||||
|    <x>:x</x> : <x>:value[x]</x> | ||||
|   </div> | ||||
|   <a href=":'http://www.cetic.be/%s' % value[x]">:x</a> | ||||
| </x> | ||||
| ''') | ||||
| 
 | ||||
| # ------------------------------------------------------------------------------ | ||||
| class OgoneConfig: | ||||
|  | @ -157,6 +146,4 @@ class Ogone(Type): | |||
|         # some URL, use it. Else, use the view page of p_obj. | ||||
|         if not url: url = obj.absolute_url() | ||||
|         obj.goto(url) | ||||
| 
 | ||||
|     def getPx(self, context): return view(context).encode('utf-8') | ||||
| # ------------------------------------------------------------------------------ | ||||
|  |  | |||
|  | @ -14,9 +14,6 @@ | |||
|     <input type="image" id="submit2" name="submit2" | ||||
|            tal:attributes="src string: $appUrl/ui/ogone.gif; title python: _('custom_pay')"/> | ||||
|   </form> | ||||
|   <tal:comment replace="nothing">Ogone PX test</tal:comment> | ||||
|   <div>PX</div> | ||||
|   <tal:px replace="structure python: contextObj.callField(name, 'getPx', {'obj': contextObj, 'value': value})"/> | ||||
| </metal:view> | ||||
| 
 | ||||
| <tal:comment replace="nothing">Edit macro (none)</tal:comment> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gaetan Delannay
						Gaetan Delannay