Permalink
Browse files

declare node as language neutral (und)

  • Loading branch information...
dgtlmoon committed Jan 17, 2012
1 parent beb17c4 commit f745946947ccab439e92d02f2d40f2dd3b0f9065
Showing with 4 additions and 0 deletions.
  1. +4 −0 drupal_services.py
View
@@ -215,8 +215,12 @@ def getInfo(self, method_name):
from config import config
drupal = DrupalServices(config)
+ # Create a language-neutral node, use the string 'und' to infer language-neutral node
+ # other languages, use other language strings
+
new_node = { 'type': 'page',
'title': 'Just a little test',
+ 'language' : 'und',
'body': { 'und' : { '0' : {'value' : '''Ordenar bibliotecas es ejercer de un modo silencioso el arte de la critica.
--- Jorge Luis Borges. (1899-1986) Escritor argentino.''' } }} ,
}

0 comments on commit f745946

Please sign in to comment.