On 21/06/07, <b class="gmail_sendername">Aurélien Calonne</b> <<a href="mailto:aurel@nexedi.com">aurel@nexedi.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Shresth K a écrit :<br>> Site Error<br>><br>> An error was encountered while publishing this resource.<br>> Error Type: IOError<br>> Error Value: [Errno 2] No such file or directory:<br>> '/var/lib/zope/Constraint/Dupl
icateInventory.py'<br>><br>> As it is evident, it seems the latest erp5_trade bt has broken a few<br>> things as DuplicateInventory.py was removed. Even by manual addition, to<br>> advance forward, I landed up with several portal_workflow_chains missing.
<br>><br>> Have I done anything wrong or is the latest erp5_trade a bit<br>> broken(ulikely as I see that the Unit tests a going through fine)?<br>><br>For me, this look more like a typo error in your business template
<br>definition. Go to the "Details" tab and check that you have<br>DuplicateInventory.py in Constraint field and not Dupl icateInventory.py</blockquote><div><br>No, it wasn't the typo. May be the mistake was introduced while I wrote the mail.
<br>I have had a very hard time trying to upgrade from r14629 to the latest. r14733 <br>While upgrading and clicking on subversion, I faced some of these problems:<br>1. As explained above Constraint/DuplicateInventory.py was missing. So I added it manually.
<br>2. Then all Allowed Content Types, Hidden Content Types and PropertySheets for all the trade related portal types were missing.<br>I proceeded manually by correcting each of those with the hope that I could catch the 'ghost' but couldn't proceed further when it said that 'PropertySheet DuplicateInventory missing for portal type Inventory' as no such PropertySheet exists as per my findings.
<br><br></div></div>Hence, my plan to upgrade the BT failed miserably, so I tried the crude way again:<br><br>1. I un-installed erp5_trade. <br>2. Did an 'svn up' for the latest erp5_trade, downloaded it into portal_templates via URL and then installed it.
<br>3. Now by clicking on Subversion I should not be getting any modified files since it is the latest working copy that is installed. Yet there are many files that are listed there.<br>Now can anyone explain this or should I have updated other BTs as well?
<br><br>I am now going to make the changes to the BaseTrade*_FieldLibrary and try to generate the patches.<br><br>Thanks,<br>Shresth<br>