Jump to content
Korean Random

PjOrion ошибка


romka1608

Recommended Posts

Помогите пожалуйста решить проблему

import BigWorld
from notification.NotificationListView import NotificationListView

old_populate = NotificationListView._populate

def new_populate(self):

    message = {
        'typeID': 2,
        'message': {
            'bgIcon': '',
            'defaultIcon': '',
            'savedData': 0,
            'timestamp': -1,
            'filters': [],
            'message': 'Hello from the hell',
            'type': 'black',
            'icon': '',
        },
        'entityID': 9999,
        'auxData': ['GameGreeting']
    }
    old_populate(self)
    self.as_appendMessageS(message)

NotificationListView._populate = new_populate

Ошибка:

 Traceback (most recent call last):
***   File "F:\PjOrion 1.3.2 with P2.7\wottransmission.zip\wottransmission\transmitter.py", line 91, in orion_transfer_check
***     exec compile(code,'','exec') in sys.modules['__main__'].__dict__
***   File "<string>", line 7
*** SyntaxError: can't assign to literal
Edited by romka1608
Link to comment
Short link
Share on other sites

у тебя есть лишняя запятая

спасибо, исправил, но проблема не в этом. Эта ошибка появляеться во всем, что я пытаюсь импортировать.

Edited by romka1608
Link to comment
Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...