corresponding doc update

stix2.0
= 2018-04-13 15:07:49 -04:00
parent a614a78e22
commit 4734711137
1 changed files with 18 additions and 12 deletions

View File

@ -4,6 +4,7 @@
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": 1,
"metadata": { "metadata": {
"collapsed": true,
"nbsphinx": "hidden" "nbsphinx": "hidden"
}, },
"outputs": [], "outputs": [],
@ -24,6 +25,7 @@
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": 2,
"metadata": { "metadata": {
"collapsed": true,
"nbsphinx": "hidden" "nbsphinx": "hidden"
}, },
"outputs": [], "outputs": [],
@ -383,8 +385,10 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 7, "execution_count": 3,
"metadata": {}, "metadata": {
"collapsed": true
},
"outputs": [], "outputs": [],
"source": [ "source": [
"import sys\n", "import sys\n",
@ -415,7 +419,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 9, "execution_count": 6,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -428,11 +432,11 @@
"fs.source.filters.add(f)\n", "fs.source.filters.add(f)\n",
"\n", "\n",
"# attach multiple filters to FileSystemStore\n", "# attach multiple filters to FileSystemStore\n",
"fs.source.filters.update([f1,f2])\n", "fs.source.filters.add([f1,f2])\n",
"\n", "\n",
"# can also attach filters to a Source\n", "# can also attach filters to a Source\n",
"# attach multiple filters to FileSystemSource\n", "# attach multiple filters to FileSystemSource\n",
"fs_source.filters.update([f3, f4])\n", "fs_source.filters.add([f3, f4])\n",
"\n", "\n",
"\n", "\n",
"mem = MemoryStore()\n", "mem = MemoryStore()\n",
@ -442,7 +446,7 @@
"mem.source.filters.add(f)\n", "mem.source.filters.add(f)\n",
"\n", "\n",
"# attach multiple filters to a MemoryStore\n", "# attach multiple filters to a MemoryStore\n",
"mem.source.filters.update([f1,f2])" "mem.source.filters.add([f1,f2])"
] ]
}, },
{ {
@ -457,7 +461,9 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 10, "execution_count": 10,
"metadata": {}, "metadata": {
"collapsed": true
},
"outputs": [], "outputs": [],
"source": [ "source": [
"from stix2 import Campaign, Identity, Indicator, Malware, Relationship\n", "from stix2 import Campaign, Identity, Indicator, Malware, Relationship\n",
@ -719,21 +725,21 @@
], ],
"metadata": { "metadata": {
"kernelspec": { "kernelspec": {
"display_name": "Python 3", "display_name": "cti-python-stix2",
"language": "python", "language": "python",
"name": "python3" "name": "cti-python-stix2"
}, },
"language_info": { "language_info": {
"codemirror_mode": { "codemirror_mode": {
"name": "ipython", "name": "ipython",
"version": 3 "version": 2
}, },
"file_extension": ".py", "file_extension": ".py",
"mimetype": "text/x-python", "mimetype": "text/x-python",
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython2",
"version": "3.6.3" "version": "2.7.12"
} }
}, },
"nbformat": 4, "nbformat": 4,