this digression means your previous query has been answered?  and yeah python can do pretty much anything you want it to do. It is a programming language.



On Tue, Jan 17, 2012 at 10:08 AM, aki <aki275@gmail.com> wrote:
Hey @Martin, :-)

Thnks and a question for you. Does Python support programming inputs like TCP or sockets?  Does it support things like writing code to e.g. strip the metadata from a jpeg file? Does it support programming  to collect data from USB or Network Devices? 

Rgds. 





On Tue, Jan 17, 2012 at 9:44 AM, Martin Chiteri <martin.chiteri@gmail.com> wrote:
Happy new year @Aki! 

If I understood you correctly, you want something that would allow users to automatically publish content to your site, right? 

Well, if this is your case I can give you tips but from the framework I use when working on Web applications. This is django, written in Python. What normally happens is that you structure your page first in what are known as models [ https://docs.djangoproject.com/en/1.3/topics/db/models/ ]. Determine the kind of content or fields that it will support, like heading(s), body, publisher, submission date /  time, etc. After that you write methods (functions) to create the URL of the content in your site in case it needs to be referenced by a client (browser / spiders and search agents). This actually becomes part of your definition of data in the models.

Django supports what are known as generic views. These are of automated ways of retrieving the data stored in your system (dbs). What you can do is just include the necessary functions in a URL configuration file and then build templates that will utilise the generic views. I have skipped the details but you can see examples on this page [ https://docs.djangoproject.com/en/1.3/ref/class-based-views/ ] but in short every piece of content can be retrieved and listed for you in a page regardless of whether you explicitly specified its address for access. 

Lastly I think it might be necessary to employ the use of an javasctipt WYSIWYG editor like TinyMCE [ http://www.tinymce.com/ ] to allow the end users to edit content without having to write plain html. That also means that you will have to have a means of user authentication to control who does what as they work on the pages. All this is supported by django and I believe other Web-based frameworks out there. 

Hope that helps. 

Martin. 

 
 


_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke