Re: Re: [svn-commits] r8515 - r3/trunk/binarycloud/node

"B. Kamer" <[email protected]> Sat, 21 May 2005 14:20:23 +0200
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
done

  #214


On May 21, 2005, at 0:16, Jean-Christophe Michel wrote:


> Hi Bas,
>
> I just realize this addition you made is wrong:
> it works only for included ndf placed in WORKSPACE. if you attempt to
> include ndf from vortex/ you get an error :(
>
> Strange, many things seem broken into NdfParser...
> I'll retry tomorrow.
>
> [email protected] wrote:
>
>
>> Author: bas
>> Date: 2005-05-11 15:07:31 +0100 (Wed, 11 May 2005)
>> New Revision: 8515
>>
>> Modified:
>>    r3/trunk/binarycloud/node/NdfContainer.php
>> Log:
>> added exception if ndf does not exists...
>>
>> Modified: r3/trunk/binarycloud/node/NdfContainer.php
>> ===================================================================
>> --- r3/trunk/binarycloud/node/NdfContainer.php    2005-05-11  
>> 13:09:55 UTC (rev 8514)
>> +++ r3/trunk/binarycloud/node/NdfContainer.php    2005-05-11  
>> 14:07:31 UTC (rev 8515)
>> @@ -89,6 +89,11 @@
>>          $timer =& Timer::getInstance();
>>          $timer->start("binarycloud.LoadNdf($filename)");
>>
>> +        if (!file_exists(BC_PATH_WORKSPACE . '/' . $filename)) {
>> +            bc_throw(new BcException(sprintf('Node definition  
>> file (%s) does not exists.', BC_PATH_WORKSPACE . '/' . $filename),  
>> 'Ndf.NdfDoesNotExists'));
>> +            return false;
>> +        }
>> +
>>          if ($this->cache_mode == BC_NDF_NOCACHE) {
>>              /* Caching is disabled, we simply create a parser. We  
>> have to store
>>               * a stack of parsers since NDF files can include NDF  
>> files
>>
>>
>
> -- 
> Jean-Christophe Michel
> _______________________________________________
> dev mailing list
> dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
> http://lists.binarycloud.com/mailman/listinfo/dev
>
>
>


_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev