python

Events happening in the community are now at Drupal community events on www.drupal.org.

Neoprene - Using Fabric for Drupal deploys and workflows

Posted by bryan kennedy on April 14, 2013 at 6:19pm

Hey Folks,

I've been working on some deploy recipes for Drupal, built upon the great Python tool Fabric. Drush still does most of the heavy lifting, but Fabirc gives me a nice way of putting a several commands together into a single deploy or development workflow command.

I'm packaging these recipes together in a set of modules called Neoprene. It's pretty alpha code at this stage but someone on another group suggested some folks in this channel might find this useful.

https://github.com/scimusmn/neoprene

Read more
5 comments Categories: , , ,

A problem with python drupal services

Posted by dofbi on March 14, 2010 at 4:12pm

Hi i try to run this code on Drupal 6.x but i get an error :
A fault occurred
Fault code: 1
Fault string: Wrong username or password.
can some body already try python to access with Drupal xmlrpc and to get authentificate

#

import xmlrpclib, time

Put the URL for your Service in here. See admin/build/services.

config = {
'url': 'http://twitter.connexionservice.com/services/xmlrpc',
'username': 'developer',
'password': 'password',
}
s = xmlrpclib.Server(config['url'], allow_none=True)
class node:

Read more
2 comments Categories: , ,

Python code using XML-RPC to create a node and upload/attach a file.

Posted by pdumais42 on January 16, 2010 at 2:13am

I've searched the web looking for something more than a "create a node" example for Drupal Services. There are some good examples for Flash/Flex and some bits and pieces in Python or PHP but nothing that helps me to figure out what I am doing wrong.

Since my client is planning to develop a cross platform application that interacts with their Drupal site, I thought I would create a sample app in Python - just to show the Flash, iPhone, Droid, Blackberry developers how the Drupal Services API works.

Read more

Drupal Authorization

Posted by ilovedrupal-gdo on June 29, 2009 at 9:59am

Hello. I am trying to get services using authorization to work but I am running into an issue. I have services 6.x-1.x-dev installed, key authentication, json server and xmlrpc server. I have the node,search,system,user and views service turned on and I am running the latest stable drupal 6. I am trying to use the python script below to connect and return a node from services (I have also tried with a view and also using php but run into similar problems). If I go to site building -> services -> settings and remove the use keys and use sessid (and don't send the auth.

Read more

VPK (Virtual Python Kit)

Posted by dannz on June 16, 2009 at 2:05pm

What? The idea for this module is to add Python functionality to Drupal using 'virtual python', so enabling Drupal to make use of Python even in shared hosting which does not offer Python, and where user doesn't have SSH access - i.e. usable almost anywhere Drupal can be installed.

Is it feasible? Yes - for proof of concept I've tested setting this up manually in shared hosting which does not offer Python.

Read more
4 comments Categories:

Creating a node in Python

Posted by quentinsf on December 13, 2008 at 4:05pm

I've got a really simple example script showing how you can create a node in Python using XMLRPC.

It's here, in case anyone finds it useful!

Read more
1 comment Categories:

New Memetracker document: How to install the Python prerequisites for Memetracker (on Ubuntu Linux)

Posted by luchandy on September 8, 2008 at 7:36pm

Hi there folks,

I'm sure many of us are excited about the potential of the Memetracker module (I definitely am!).

Memetracker currently has some Python requirements, and many Drupal folks are not accustomed to installing Python/ Linux packages in general.
As a result, many of the issues in the Memetracker issue queue are about getting the Python packages installed correctly.
To help with this, I've written a document that's purely about installing the Python prerequisites:

Read more

Python Services API

Posted by jrbeeman on July 17, 2008 at 4:14pm

Just thought I'd let everyone know I've started the Python Services API project, which provides a set of classes and and tests that Python developers can use as a basis for integration with the Services module. It's fairly bare-bones at the moment, and I'm by no means and expert Python developer, so feedback and contributions are more than welcome.

Read more
Subscribe with RSS Syndicate content

AltStyle によって変換されたページ (->オリジナル) /