Skip to content

Commit

Permalink
fix broken pacakge names
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjiang committed Oct 11, 2023
1 parent d36a66d commit 2f6bfe6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ezidapp/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def clean(self):
try:
s = ezidapp.models.shoulder.getAgentShoulder()
assert s.isArk, "Agent shoulder type must be ARK"
self.pid = "{}{}".format(s.prefix, impl.nog.minter.mint_id(s))
self.pid = "{}{}".format(s.prefix, impl.nog_sql.ezid_minter.mint_id(s))
except Exception as e:
impl.log.otherError("user.User.clean", e)
raise
Expand Down
5 changes: 2 additions & 3 deletions migrate_db_to_py3/diag-check-metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
import django.db.models
import django.db.transaction

import impl.nog.counter
import impl.nog.tb
import impl.nog_bdb.counter

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -72,7 +71,7 @@ def handle(self, *_, **opt):
class ViaORM:
def __init__(self):
self.exit_stack = contextlib.ExitStack()
self.counter = self.exit_stack.enter_context(impl.nog.counter.Counter())
self.counter = self.exit_stack.enter_context(impl.nog_bdb.counter.Counter())
self.page_size = django.conf.settings.QUERY_PAGE_SIZE

def list_blobs_all(self):
Expand Down
8 changes: 4 additions & 4 deletions migrate_db_to_py3/diag-create-fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
import impl.download
import impl.enqueue
import impl.log
import impl.nog.filesystem
import impl.nog.shoulder
import impl.nog.util
import impl.nog_sql.filesystem
import impl.nog_sql.shoulder
import impl.nog_sql.util
import impl.noid_egg

APP_LABEL = 'ezidapp'
Expand Down Expand Up @@ -57,7 +57,7 @@ def dump_models():


def create_fixtures():
fixture_dir_path = pathlib.Path(impl.nog.filesystem.abs_path('../../../ezidapp/fixtures'))
fixture_dir_path = pathlib.Path(impl.nog_sql.filesystem.abs_path('../../../ezidapp/fixtures'))
# populate_async_queue()
# ezidapp.DownloadQueue ezidapp_downloadqueue
# populate_async_queue()
Expand Down
4 changes: 2 additions & 2 deletions tools_dev/tag_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import re
import sys

import impl.nog.counter
import impl.nog_bdb.counter

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -86,7 +86,7 @@ def __init__(self, args):

def __enter__(self):
self.exit_stack = contextlib.ExitStack()
self.counter = self.exit_stack.enter_context(impl.nog.counter.Counter())
self.counter = self.exit_stack.enter_context(impl.nog_bdb.counter.Counter())
self.count = self.counter.count
return self

Expand Down

0 comments on commit 2f6bfe6

Please sign in to comment.