Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: dev

Issue 170 in cherokee: dwriter add XML-RPC

 

 

Cherokee dev RSS feed   Index | Next | Previous | View Threaded


codesite-noreply at google

Oct 29, 2008, 4:36 AM

Post #1 of 18 (816 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

New issue report by ste...@konink.de:
I think something that implements XML-RPC, concatenation based not DOM,
would be a great extension for dwriter (and thus dbslayer). You can assign
me :)


Issue attributes:
Status: New
Owner: ----

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2008, 4:59 AM

Post #2 of 18 (790 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #1 by alobbs:
So.. you'd send the 'plain query' and expect to receive XML (as in XML-RPC)?



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2008, 7:01 AM

Post #3 of 18 (789 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #2 by ste...@konink.de:
Yes; I think I have it almost implemented (train trip was too short).

But the reason I added it has a completely different reason (not slayer
related); Tim
is working on something extremely cool, and XML-RPC is required for it.



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2008, 7:26 AM

Post #4 of 18 (790 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #3 by alobbs:
Sounds cool.. please send the patch when you finish it :)



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2008, 7:46 AM

Post #5 of 18 (793 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #4 by tahers:
+1
I would love to see the code for that :)



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2008, 8:21 AM

Post #6 of 18 (789 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #5 by ste...@konink.de:
It has code now; but I need to verify the correct output. Anyone has a
quick way to
do this in a qa test?



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2008, 8:44 AM

Post #7 of 18 (791 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #6 by ad...@optimizacionweb.es:
And, instead of a 'plain query' full XML-RPC compatibility wouldn't make
sense?

This way one could do (python):

import xmlrpclib
db = xmlrpclib.ServerProxy("http://host/dbslayer")

result = db.query("SELECT * FROM ....... ")


what do you think?



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2008, 8:48 AM

Post #8 of 18 (793 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #7 by ste...@konink.de:
It compiles but is *NOT* tested, so consider it less than alpha ;) Tahers
if you,
next to looking at it, also want to try it, be my guest.

Attachments:
xmlrpc.patch 12.8 KB



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2008, 9:08 AM

Post #9 of 18 (794 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #8 by tahers:
I will as soon as I get the chance :)



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2008, 10:12 AM

Post #10 of 18 (790 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #9 by alobbs:
Stefan, since you are the coder, it'd much more easy if you could send both
the patch and a working example. :-
)



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2008, 10:46 AM

Post #11 of 18 (792 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #10 by ste...@konink.de:
I have absolutely no problem using the unittest you must have created to
test the
dwriter code. If only I had it.



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2008, 10:55 AM

Post #12 of 18 (790 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #11 by alobbs:
DBslayer is the only handler using dwriter, so as long as it cannot be
automatically tested because its
dependency on MySQL, there are no QA tests for that class.

Anyway, the only thing you'd need at this stage is a proof of concept
client, don't you think? :-) Something like a
Python script that can receive the information and convert back to native
structures.



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2008, 11:05 AM

Post #13 of 18 (791 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #12 by ste...@konink.de:
My problem is that I don't have a dbslayer setup available to play with ;)
But I have
finally managed to create a small test.c to test any dwriter. Will provide
the code
later (because I noticed some 'this should not happen' things).



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2008, 7:49 PM

Post #14 of 18 (777 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #13 by ste...@konink.de:
Output:
[
"test",
0.0001,
"oeutest",
1.0001
]
{
"test": "test",
"hoi": "yessir"
}
<array>
<data>
<value><string>test</string></value>
<value><double>0.0001</double></value>
<value><string>oeutest</string></value>
<value><double>1.0001</double></value>
</data>
</array>
<struct>
<member>
<name>test</name>
<value><string>test</string></value>
</member>
<member>
<name>hoi</name>
<value><string>yessir</string></value>
</member>
</struct>
<array><data><value><string>test</string></value><value><double>0.0001</double></value><value><string>oeutest</string></value><value><double>1.0001</double></value></data></array><struct><member><name>test</name><value><string>test</string></value></member><member><name>hoi</name><value><string>yessir</string></value></member></struct>

Nifty code to test it:

cherokee_buffer_t tmp = CHEROKEE_BUF_INIT;
cherokee_buffer_t tmp2 = CHEROKEE_BUF_INIT;
cherokee_dwriter_t writer;

cherokee_dwriter_init (&writer, &tmp);
//writer.lang = dwriter_xmlrpc;
writer.pretty = TRUE;

cherokee_dwriter_set_buffer(&writer, &tmp2);
cherokee_dwriter_list_open (&writer);
cherokee_dwriter_string (&writer, "test", 4);
cherokee_dwriter_double (&writer, 0.0001f);
cherokee_dwriter_string (&writer, "oeutest", 7);
cherokee_dwriter_double (&writer, 1.0001f);
cherokee_dwriter_list_close (&writer);
cherokee_dwriter_dict_open (&writer);
cherokee_dwriter_string (&writer, "test", 4);
cherokee_dwriter_string (&writer, "test", 4);
cherokee_dwriter_string (&writer, "hoi", 3);
cherokee_dwriter_string (&writer, "yessir", 6);
cherokee_dwriter_dict_close (&writer);

cherokee_dwriter_mrproper(&writer);
cherokee_buffer_mrproper(&tmp);
cherokee_buffer_mrproper(&tmp2);


XML-RPC also supports Base64 and a Datetime field in ISO8601. Since this is
not yet
handled in DBSlayer, I cannot yet test Dbslayer code I'll leave the
addiction of
DATE_TYTE2S to the next brave young soul. In essence it would be
duplicating the
string function, and replace 'string' with 'dateTime.iso8601'.


Attachments:
xmlrpc-final.patch 15.7 KB



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 31, 2008, 6:06 AM

Post #15 of 18 (756 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #14 by ste...@konink.de:
(No comment was entered for this change.)


Issue attribute updates:
Labels: Type-Enhancement OpSys-All Component-Logic Usability Priority-Low

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 31, 2008, 7:14 AM

Post #16 of 18 (762 views)
Permalink
Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Issue 170: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Comment #15 by ste...@konink.de:
(No comment was entered for this change.)


Issue attribute updates:
Status: Started
Owner: ste...@konink.de

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Oct 20, 2011, 7:31 PM

Post #17 of 18 (320 views)
Permalink
Re: Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Updates:
Status: Fixed

Comment #16 on issue 170 by ste...@konink.de: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

https://github.com/skinkie/webserver/commit/0aa0b71f75d2edd59a22bab8f00963fb0291b99e

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Oct 21, 2011, 2:32 AM

Post #18 of 18 (317 views)
Permalink
Re: Issue 170 in cherokee: dwriter add XML-RPC [In reply to]

Updates:
Status: Started

Comment #17 on issue 170 by alobbs: dwriter add XML-RPC
http://code.google.com/p/cherokee/issues/detail?id=170

Stefan, let's not close the bugs until the features make it upstream or are
rejected.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev

Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.