Skip to content

Commit b0c28d0

Browse files
entry functions added
1 parent f582f8b commit b0c28d0

File tree

6 files changed

+4
-30
lines changed

6 files changed

+4
-30
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Contentstack
3+
Copyright (c) 2012 - 2019 Contentstack. All rights reserved.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

contentstack/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@
3030
from .asset import Asset
3131
from .asset_library import AssetLibrary
3232
from .config import Config
33-
from .sync_stack import SyncStack
3433
from .query_result import QueryResult
3534
from .content_type import ContentType
36-
from .entry_model import EntryModel
3735
from .errors import HTTPError, ConfigError
3836
from .group import Group
3937
from .http_request import HTTPRequestConnection

contentstack/asset_library.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def include_relative_url(self):
6262
def get_count(self) -> int:
6363
return self.count
6464

65+
# [PENDING], Need to add
6566
# order_by = Enum('ORDER_BY', 'ASCENDING DESCENDING')
6667
# def sort(self, key: str, order_by):
6768
# if ORDER_.ASCENDING:

contentstack/entry_model.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

contentstack/group.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@
2323
*
2424
"""
2525
import logging
26-
2726
from contentstack.stack import Stack
2827

2928

3029
class Group(Stack):
31-
32-
def __init__(self, stack: Stack, dictionary: dict):
30+
31+
def __init__(self, dictionary: dict):
3332
self._result_dict = dictionary
34-
self._stack_instance = stack
3533
logging.info('Group initialised')
3634

3735
def to_json(self) -> dict:
@@ -63,4 +61,3 @@ def get_groups(self, key: str) -> list:
6361

6462
def get_all_entries(self, key: str) -> list:
6563
pass
66-

contentstack/sync_stack.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)