So Many Forks
Hi guaka,
Nice work! This is a great start for Python developers using services. I found the two following forks that seem to have a little more recent updates, but have not been merged into this repo.
Supposed to be official D7 Repo:
https://github.com/dgtlmoon/python_drupal_services
Another recently updated repo: https://github.com/valsteen/python_drupal_services
Could you please advise as to what to use moving forward?
Hi Martin, I don't know. I haven't touched this in a while and I don't have specific plans for this.
But only now I'm starting to grok github and it could be a good idea to pull back some changes. What do you think?
Also, I came to think that a more permissive license might make sense for this piece of code. This might complicate merging changes, but I guess I can contact dgtlmoon and valsteen about this.
I also think it would be good to consolidate around a single version... I have my own too. :-)
@dsnopek - I'm fine with point folks at your version if you promise to be a better maintainer than me ;)
What do you think about the license? Should it stay AGPL, or become GPL or even MIT?
Heh, I'm not saying we should use my version! But I think we should all talk and come up with a way to collaborate. I'm not personally worried about the license so long as it's Open Source... Drupal itself is all GPL, so that has a sort of logic. But I'm not worried about it.
Adding everyone here seemed the easiest way to get to a canonical version again. @dsnopek, I've added you and everyone I found in the network graph as collaborators to the repo: @guneysus, @dgtlmoon,@valsteen, @metajon, welcome!
I'm unlikely to actually use the code myself anytime soon on a project but I'm happy to look at the code again and any issues here.
Thanks, by the way, I can not run "node.update" command. I tested retrieve, create and index commands successfully, and created 3030 content for my Drupal site.
I will not be available about 6 months for army. I writed a small interface for nodes that contains date_field (text select widget) guide with http://drupal.stackexchange.com/a/78925/17190
With this way, I created 3030 nodes and date_fields successfully.
The source code of interface is, and complete project is
https://github.com/guneysus/arsiv/tree/master/markdown
drupal.py is the content generator gets file content from year/month-day.markdown
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#
#import datetime
from services import *
from config import config
def node(year, month, day, title, body, summary=''):
"""docstring for nodecreate"""
#timestamp = int(datetime.date(year, month, day).strftime('%s'))
node = {'type': 'takvim',
'title': title,
'language': 'und',
'summary': summary,
'field_date': {"und":[{"value":{"month":month,"year":year,"day":day}}]},
'body': {'und': {'0': {'value': body,
'format' : 'markdown'
}}},
}
return node
if __name__ == '__main__':
new_node = node(year=1988, month=1, day=31,
title='__TITLE',
body='_BODY',
summary='_Summary')
drupal = DrupalServices(config)
drupal.call('node.create', new_node)
print 'TIME STAMP %s' % new_node['field_date']
Actually I am the original author of this module, I dont know why guaka has credited to her/him
Started this in 2009, haven't much looked at it since then.
Pull requests welcome, also for an deprecated/alternatives section in README.md
sent from my mobile phone On Mar 27, 2015 2:53 PM, "Leigh" [email protected] wrote:
Actually I am the original author of this module, I dont know why guaka has credited to her/him
— Reply to this email directly or view it on GitHub https://github.com/guaka/python_drupal_services/issues/2#issuecomment-86945833 .
(@dgtlmoon I may have been credited because I started it? https://github.com/dgtlmoon/python_drupal_services/commits/master)
I don't understand, it says my first commit was 6 years ago and yours was 5
https://github.com/guaka/python_drupal_services https://github.com/dgtlmoon/python_drupal_services
forked from...
