I don't know php, but your code is beautifully presented!

It seems you have two important public methods, get and set. Get functions
for values, directories and presence, but I'm unsure if it needs an explicit
flag to distinguish the subtype. If som it would be more elegant to simply
split the function into separate methods.

Is there some explanation of the code?

Paul Alfille

Also, I'd suggest calling it ownet.php, to keep the parallels with Peter
Kropf's ownet.py

It looks like each language will get a full owlanguage and a lighter
(owserver-only) ownet.lang


On 12/19/06, Roberto Spadim <[EMAIL PROTECTED]> wrote:

sorry, last version after 2006-12-20 03:50

Roberto Spadim escreveu:
> i changed the ownet code and i don't think that's broken, i just wrote
> another module to php to don't use swig and dl('ow.so') everytime i need
> ow :) python is running ok from cvs my old version was broken cause i
> changed it without know what i'm doing
>
> Peter Kropf escreveu:
>
>> Was this originally a problem with the Python ownet module? Or
something else?
>>
>> It would be good to understand what you were originally trying to do
>> and fix any problems that may exist in any of the ow code.
>>
>> - Peter
>>
>>
>> On 12/19/06, Roberto Spadim <[EMAIL PROTECTED]> wrote:
>>
>>
>>> can anyone try it and check if it's an good piece of code?
>>>
>>> Roberto Spadim escreveu:
>>>
>>>
>>>> cancel my thread i made an owphp to work with it :)
>>>>
>>>> Gregg Levine escreveu:
>>>>
>>>>
>>>>
>>>>> On 12/19/06, Paul Alfille <[EMAIL PROTECTED]> wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Is this a question about owserver or the python ownet?
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>>
>>>>>> On 12/19/06, Roberto Spadim <[EMAIL PROTECTED] > wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> hello
>>>>>>> i can't understand the DIR list
>>>>>>>
>>>>>>> i'm sending :
>>>>>>> path='/'
>>>>>>>
>>>>>>> version=0
>>>>>>> payload=2
>>>>>>> type=msg_dir
>>>>>>> sg=258
>>>>>>> size=0
>>>>>>> offset=0
>>>>>>> variable payload="/"+chr(0)
>>>>>>>
>>>>>>> and i get an return:
>>>>>>>
>>>>>>> version=0
>>>>>>> payload=42
>>>>>>> ret=0
>>>>>>> sg=258
>>>>>>> size=5
>>>>>>> offset=0
>>>>>>> variable payload=""   (this shouldn't be 5 characters?! )
>>>>>>>
>>>>>>> i'm using ownet
>>>>>>>
>>>>>>> thankx, if you can tellme what to send and what return from a dir
read,
>>>>>>> maybe an example with real values like
>>>>>>> client send:    [0][0][0][0][send message hex]
>>>>>>> server send: [][][send message hex]
>>>>>>>
>>>>>>> thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
-------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
share
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> your
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> opinions on IT & business topics through brief surveys - and earn
cash
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Owfs-developers mailing list
>>>>>>> [email protected]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>>>>>
>>>>>>
-------------------------------------------------------------------------
>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
share your
>>>>>> opinions on IT & business topics through brief surveys - and earn
cash
>>>>>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>>>>
>>>>>> _______________________________________________
>>>>>> Owfs-developers mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> Hello!
>>>>> Paul, the question should be asked is, "What is wrong here, and what
>>>>> can we do to help?". Also one of, "What is your setup? And what did
>>>>> you add or subtract from it before continuing your work?".
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
-------------------------------------------------------------------------
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
share your
>>>> opinions on IT & business topics through brief surveys - and earn
cash
>>>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________
>>>> Owfs-developers mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>>>
>>>> Esta mensagem foi verificada pelo E-mail Protegido Terra.
>>>> Scan engine: McAfee VirusScan / Atualizado em 19/12/2006 / Versão:
4.4.00/4922
>>>> Proteja o seu e-mail Terra: http://mail.terra.com.br/
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
-------------------------------------------------------------------------
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to
share your
>>> opinions on IT & business topics through brief surveys - and earn cash
>>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Owfs-developers mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>>
>>>
>>>
>>
-------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
>> opinions on IT & business topics through brief surveys - and earn cash
>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Owfs-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>
>> Esta mensagem foi verificada pelo E-mail Protegido Terra.
>> Scan engine: McAfee VirusScan / Atualizado em 19/12/2006 / Versão:
4.4.00/4922
>> Proteja o seu e-mail Terra: http://mail.terra.com.br/
>>
>>
>>
>>
>>
>
>
>
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
> Esta mensagem foi verificada pelo E-mail Protegido Terra.
> Scan engine: McAfee VirusScan / Atualizado em 19/12/2006 / Versão:
4.4.00/4922
> Proteja o seu e-mail Terra: http://mail.terra.com.br/
>
>
>
>



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to