{ "info": { "author": "Giampaolo Spagoni", "author_email": "giampaolo.spagoni@infor.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Create Full BOD Wrapper for Scripting\n\nThis Python package contains some functions to create a BOD wrapper after converting JSON data to XML\n\nyou can find the code to this file\n\n```\ncreateFullBOD.py\n```\n\n### def createRoot(root):\nthe root parameter should be verb+noun like SyncItemMaster.\nIt creates the root of the BOD\n\ncreateRoot('Syncemployee')\n```\n\n\n```\n\n### def createApplArea(lid,compId):\nIt creates the ApplicationArea structure proving the LogicalID and ComponentID\n\ncreateApplArea('lid://infor.ln','erp')\n```\n \n \n lid://infor.ln\n erp\n OnError\n \n 2019-10-09T12:02:44:270Z\n b3c8437e-ea8c-11e9-aad9-ca7d09e7940e\n \n```\n\n### def createDataArea():\nit creates just the DataArea tag\n\n```\n \n```\n\n### def createVerb(verb,aev,locv,aexv):\nit creates the Verb structure of the BOD providing the VERB = [Sync|Process|Acknowldge|....] plus the AccountingEntity, Location and Action = [Add|Change|Replace]\n\ncreateVerb('Sync','AE','000','Add')\n```\n \n AE\n 000\n \n \n \n \n```\n\n### def renameTag(xml, oldtag,newtag):\nGiving an XML, it replaces the oldtag within the XML with the newtag\n\nrenameTag(XML,'element','employee')\n\nFrom here:\n```\n \n 1001\n John Doe \n 2009-08-28\n \n```\nTo here:\n```\n \n 1001\n John Doe \n 2009-08-28\n \n```\n\n### def createFullBOD(verb,noun,lid,erp,ae,loc,action,body):\n\n- verb = Sync\n- noun = employee\n- lid = lid://infor.ln.1\n- erp = erp\n- ae = AE\n- loc = 000\n- action = Add\n- body = see below\n\nthe body parameter should be the JSON data converted in XML\nif we consider as JSON this array\n\n```\n[\n\t{\n\t\t\"empnum\": 1001,\n\t\t\"fullname\": \"John Doe \",\n\t\t\"dateofhire\": \"2009-08-28\"\n\t},\n\t{\n\t\t\"empnum\": 1002,\n\t\t\"fullname\": \"Jane Doe \",\n\t\t\"dateofhire\": \"2009-08-28\"\n\t},\n\t{\n\t\t\"empnum\": 1003,\n\t\t\"fullname\": \"Tim Bone \",\n\t\t\"dateofhire\": \"2014-01-01\"\n\t}\n]\n```\n\nthe converted XML will be like this\n\n```\n\n \n 1001\n John Doe \n 2009-08-28\n \n \n 1002\n Jane Doe \n 2009-08-28\n \n \n 1003\n Tim Bone \n 2014-01-01\n \n\n```\n\nif the JSON data has the format as above after the convert, you can invoke the function\n\ncreateFullBOD('Sync','employee','lid://infor.ln.1','erp','AE','000','Add', body)\n\nthe result will be\n\n```\n\n \n \n lid://infor.ln.1\n erp\n OnError\n \n 2019-10-09T12:28:50:088Z\n 5902f98a-ea90-11e9-bfec-427e59ba50c3\n \n \n \n AE\n 000\n \n \n \n \n \n 1001\n John Doe \n 2009-08-28\n \n \n 1002\n Jane Doe \n 2009-08-28\n \n \n 1003\n Tim Bone \n 2014-01-01\n \n \n\n```\n\nContact: \n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gspagoni/createFullBODWrapper", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "createFullBOD", "package_url": "https://pypi.org/project/createFullBOD/", "platform": "", "project_url": "https://pypi.org/project/createFullBOD/", "project_urls": { "Homepage": "https://github.com/gspagoni/createFullBODWrapper" }, "release_url": "https://pypi.org/project/createFullBOD/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "create full structure of BOD dinamically", "version": "0.0.2" }, "last_serial": 5949650, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "626e075d9039e965086fd33d49436490", "sha256": "e85fa5c38cb2323a43c61717c7584bc4c39a19e22bff17a68e6aa6eb87b23455" }, "downloads": -1, "filename": "createFullBOD-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "626e075d9039e965086fd33d49436490", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 1935, "upload_time": "2019-10-09T12:55:35", "url": "https://files.pythonhosted.org/packages/04/e2/945d1faea3ba2eec0db78e978154ae2fba1872c0e5e2b958614dfd8294a8/createFullBOD-0.0.1-py3-none-any.whl" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "2a15e35b6decbb66dbdb33871c692d14", "sha256": "43ddb0ef42f912588024eae43f8411ffbc0fe03330987542a728404d485e26a8" }, "downloads": -1, "filename": "createFullBOD-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "2a15e35b6decbb66dbdb33871c692d14", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4228, "upload_time": "2019-10-09T13:01:01", "url": "https://files.pythonhosted.org/packages/03/e3/9d64165ef09db8998f11b50b7558207a04c0a01861c7983715d3c03eb736/createFullBOD-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2935dc3a23b167547701ecd3771ca879", "sha256": "926a07923860b96b0dc0b1fd101acedd94a0528f309b61aaf7a1e631f496acce" }, "downloads": -1, "filename": "createFullBOD-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2935dc3a23b167547701ecd3771ca879", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3386, "upload_time": "2019-10-09T13:01:02", "url": "https://files.pythonhosted.org/packages/98/83/9b9db5ac3f3b17f2e7a1f064a27f7fad939bc85389cfbbb508e369ac112f/createFullBOD-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2a15e35b6decbb66dbdb33871c692d14", "sha256": "43ddb0ef42f912588024eae43f8411ffbc0fe03330987542a728404d485e26a8" }, "downloads": -1, "filename": "createFullBOD-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "2a15e35b6decbb66dbdb33871c692d14", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4228, "upload_time": "2019-10-09T13:01:01", "url": "https://files.pythonhosted.org/packages/03/e3/9d64165ef09db8998f11b50b7558207a04c0a01861c7983715d3c03eb736/createFullBOD-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2935dc3a23b167547701ecd3771ca879", "sha256": "926a07923860b96b0dc0b1fd101acedd94a0528f309b61aaf7a1e631f496acce" }, "downloads": -1, "filename": "createFullBOD-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2935dc3a23b167547701ecd3771ca879", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3386, "upload_time": "2019-10-09T13:01:02", "url": "https://files.pythonhosted.org/packages/98/83/9b9db5ac3f3b17f2e7a1f064a27f7fad939bc85389cfbbb508e369ac112f/createFullBOD-0.0.2.tar.gz" } ] }